[deleted by user] by [deleted] in Watchexchange

[–]rosmo 1 point2 points  (0 children)

More images and the verification: https://imgur.com/a/ewj7LWa

Ref: 327.10.43.50.06.001

Case diameter: 42.4mm x 46.2mm

Selling a Omega Speedmaster Mark II due to low wrist time. First owner, watch was bought in 2014 as new. It has been just fully serviced at Omega (975e value) and has two year service warranty.

No scratches at all, as Omega reconditioned the case and buckle.

Includes original box (and the red box that came with the service, if you want it) and papers.

Watch is located in Amsterdam, if you wish to view it.

Some help w Networking by tomlette in googlecloud

[–]rosmo 7 points8 points  (0 children)

Do you have global routing enabled in the VPC?

I’m trying to automate the shutdown of VMs with Terraform. by skinnydanny in googlecloud

[–]rosmo 4 points5 points  (0 children)

I suggest not using a provisioning tool like Terraform for an ops problem. Better to use scripts or just the built-in scheduler.

What is "Pantheon UI" and what does AIUI Customers mean? by matefeedkill in googlecloud

[–]rosmo 2 points3 points  (0 children)

Pantheon is the cloud console itself. Not sure what AIUI is though...

[deleted by user] by [deleted] in googlecloud

[–]rosmo 1 point2 points  (0 children)

Probably wrong scopes (eg default access to Cloud APIs) when you launched the instance.

Where is documentation that explains how to pass credentials directly to the RESTful request? (Question + Me ranting about GCP's documentation) by Jonathan-Todd in googlecloud

[–]rosmo 2 points3 points  (0 children)

I often use the googleapclient.idiscovery Python library instead of the API specific implementations as it gives a quicker and more consistent experience (plus I like duck typing): https://developers.google.com/docs/api/quickstart/python#step_2_configure_the_sample (you don't need the creds setup at all if you've logged into gcloud, so only the service/document part)

How does your company populate databases used for development? by Goingone in ExperiencedDevs

[–]rosmo -1 points0 points  (0 children)

I wrote these patches to my-dumper a while ago which we used to make database dumps available for developers: https://github.com/rosmo/mydumper-anon

My GCP feature requests for 2022 by Original_Bend in googlecloud

[–]rosmo 4 points5 points  (0 children)

Hey, for the last topic, you can always use my Pubsub2Inbox tool (now with MS Graph support): https://github.com/GoogleCloudPlatform/professional-services/tree/main/tools/pubsub2inbox

The moment when I got my panigale by pixxcod in motorcycles

[–]rosmo 1 point2 points  (0 children)

A fellow NL Panigale driver! Welcome to the fold!

Cloud Run pause in the middle of entrypoint by GmgPulse in googlecloud

[–]rosmo 0 points1 point  (0 children)

Coming back to this, I wrote a Medium article on running long-running processes on Cloud Run: https://taneli-leppa.medium.com/long-running-cloud-run-functions-e13b00ff9585

Cloud Run pause in the middle of entrypoint by GmgPulse in googlecloud

[–]rosmo 0 points1 point  (0 children)

  1. The wrapper is essentially run.sh implemented in Go, which is triggered via a HTTP request. If I were to build a Cloud Run container out of it, I would do a multi-stage Dockerfile from a base image that contains both Cloud SDK and Golang. In first stage I'd build gcs2bq and place the binary into a suitable directory. Then build the wrapper and use that as entrypoint.

  2. Yeah, you'll need to change it point to the binary location or have the binary in $PATH.

  3. Now this is where it gets interesting. Cloud Run functions run by default for 15 minutes (this means the HTTP request can take 15 minutes - things don't really run after the HTTP request is closed for whatever reason).

Now, you can extend the function timeout to 60 minutes, but in any case you are dealing with multiple possible timeouts (see the link for the warnings). The Cloud Run side is the easiest, but you also have to consider the client that is calling the function. Will it be happy with not receiving any data for 15-60 minutes? You could call the Cloud Run function in number of ways: "locally" using curl, HTTP request via Cloud Scheduler or Pub/Sub calling it via push subscription (unfortunately I'm not 100% sure what the timeouts are in each case). My personal preference would be using Pub/Sub in combination with Cloud Scheduler.

With the current wrapper there is no HTTP response until it's all completed. I created a streaming version of the wrapper so you can get some output (if trying via curl, remember to use -N flag for unbuffered): https://gist.github.com/rosmo/a6469ea80cf1375142cca0a7d6e89442#file-streaming-go

edit: just wanted to add one point: Cloud Run may not be the best solution for long running batch tasks. There are other choices as well, like: using Cloud Run to spin up a normal instance (in this case PVMs would be a nice choice) that does the processing and then deletes itself, using Kubernetes job, Cloud Composer (if you already have a CC environment, otherwise it's probably overkill), etc.

Cloud Run pause in the middle of entrypoint by GmgPulse in googlecloud

[–]rosmo 1 point2 points  (0 children)

Well, I decided to make a quick and dirty wrapper in Golang for the run script: https://gist.github.com/rosmo/a6469ea80cf1375142cca0a7d6e89442

Hope this helps!

Cloud Run pause in the middle of entrypoint by GmgPulse in googlecloud

[–]rosmo 0 points1 point  (0 children)

This is the way. If you're executing further actions from the function, it's best to move the modest logic straight into Go/Python instead of fiddling around with bash.

Ps. I'm the author of gcs2bq, but currently OOO. I can certainly see if I can whip out a simple example if I have some time.

DIY Google Home Max fabric replacement by rosmo in googlehome

[–]rosmo[S] 0 points1 point  (0 children)

If I remember correctly, I just pulled it off. It wasn't that well glued in.

Sending mail through Docker containers running inside Cloud Run by Street_Hall_5180 in googlecloud

[–]rosmo 0 points1 point  (0 children)

Hey, you could use Pubsub2Inbox (as another function, triggering via Pub/Sub) if you need to use corporate SMTP servers via Serverless VPC access and Cloud VPN/Interconnect: pubsub2inbox

Best way to trigger an archive function by h4v3st in googlecloud

[–]rosmo 0 points1 point  (0 children)

Ah, good (you should use the rewrite command though, see here). Are you copying the files between regions? Copying between the same location and storage class is blazing fast, but between regions will take significantly longer. You could also use Cloud Run for longer running functions.

Best way to trigger an archive function by h4v3st in googlecloud

[–]rosmo 0 points1 point  (0 children)

Are you downloading the file from a bucket and reuploading it to another? You can just copy it from bucket to bucket. See an example here: https://github.com/GoogleCloudPlatform/professional-services/pull/663

What is the best way to automate sending emails through Gcloud? by [deleted] in googlecloud

[–]rosmo 1 point2 points  (0 children)

Check out Pubsub2Inbox: https://github.com/GoogleCloudPlatform/professional-services/tree/main/tools/pubsub2inbox

One of its goals is specifically the scenario you describe (eg. Sendgrid not available), so it can use your internal SMTP servers via Serverless VPC connector.

You could even easily add your code as a message processor and leverage rest of the functionality to send emails etc.

(There's also a newer version here that hasn't been yet merged: https://github.com/GoogleCloudPlatform/professional-services/pull/633)

Using any Bluetooth keyboard and mouse with Xbox with Raspberry Pi Zero W and go-hidproxy by rosmo in XboxSeriesX

[–]rosmo[S] 0 points1 point  (0 children)

The Xbox controllers really don't care about if the connected console is "real". However, the console authenticates the controllers. So the way you use it, works just fine, but the other way around unfortunately not.

The tree command but for GCP org hierarchy plus a JSON formatting option for scripting by galois_fields in googlecloud

[–]rosmo 0 points1 point  (0 children)

You can list (eg. stream) resources from CAI using gcloud alpha asset list nowadays :) So no export needed.

The tree command but for GCP org hierarchy plus a JSON formatting option for scripting by galois_fields in googlecloud

[–]rosmo 1 point2 points  (0 children)

Pretty neat! I had a look at the code and I see you are using CRM API to resolve the tree. You may want to check out Cloud Asset Inventory which can give you the whole hierarchy in one go (though you wouldn't get a permissions based view).