This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# this script copies iterates the VMs of a GCP project and copies | |
# the labels of a machine to the disks attached to it | |
# you can pass a filter (the same as in gcloud command line) | |
# eg: to exclude some machines with fufu in the name 'name!~.*fufu.*' | |
if [ $# -eq 0 ] | |
then | |
echo "Need to supply project ID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"regexp" | |
"time" | |
"cloud.google.com/go/bigquery" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.extend(StackMob, { | |
'ajax': function(model, params, method) { | |
var oauth = new OAuth({ | |
consumerKey: 'XXXXXXXXXXXXXXXXXXXXXX', | |
consumerSecret: 'XXXXXXXXXXXXXXXXXXXXXXX'} | |
); | |
var success = params['success']; | |
var defaultSuccess = function(response, options) { |