Skip to content

Instantly share code, notes, and snippets.

View mogamin's full-sized avatar

mogamin mogamin

  • ulsystems, Inc.
  • tokyo
View GitHub Profile
#stackdriver profile
import "cloud.google.com/go/profiler"
profiler.Start(profiler.Config{
Service: "webapp",
ServiceVersion: "1.0.0",
ProjectID: "my-project",
})
@mogamin
mogamin / export_import_gce_image_to_gcs
Created August 5, 2019 06:27
export/import gce image to gcs
$ gcloud compute images export --destination-uri gs://${backet}/mogamin-aix-base4.tar.gz --image mogamin-aix-base5 --project ${project}
$ gcloud compute images create mogamin-aix-base6 --source-uri gs://${backet}/mogamin-aix-base4.tar.gz