I hereby claim:
- I am esell on github.
- I am esell (https://keybase.io/esell) on keybase.
- I have a public key ASCKW4jugW5g1nPffpIAcF86XmYVLt-17H6BNjNOfqxRbgo
To claim this, I am signing this object:
response = client.describe_tags( | |
Filters=[ | |
{ | |
'Name': 'key', | |
'Values': [ | |
val1, | |
] | |
}, | |
{ | |
'Name': 'key', |
#!/bin/bash | |
################################################## | |
# Bash script to replace the powershell script referenced at: | |
# https://blogs.msdn.microsoft.com/visualstudioalm/2015/10/04/automating-azure-resource-group-deployment-using-a-service-principal-in-visual-studio-online-buildrelease-management/ | |
# Assumptions are: | |
# - you have the xplat CLI installed and are logged into the subscription | |
# - you have the jq tool installed | |
# - you don't value safe bash scripts :) | |
################################################## |
I hereby claim:
To claim this, I am signing this object:
#[derive(Deserialize, Debug)] | |
struct GDAXMsg { | |
#[serde(rename="type")] | |
type_: MsgType, | |
time: String, | |
product_id: String, | |
sequen |
#!/bin/bash | |
# jq is needed for this to work: https://stedolan.github.io/jq/ | |
# full blob path to copy including SAS key | |
fromURL="https://stgacct.blob.core.windows.net/containername/filename?sv=YOUR_SAS_KEY" | |
# destination storage acct name | |
toAcctName="toStgAcct" | |
# destination storage acct SAS key |
#!/usr/bin/env node | |
var Web3 = require('web3'); | |
var web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); | |
var fromAddress = "0x9e9e6b41a1959325371fd9a8c47ad5b5d761dbe7"; | |
// md5 hash of a file |
#!/usr/bin/env node | |
var Web3 = require('web3'); | |
var web3 = new Web3(); | |
function getBinarySize(string) { | |
return Buffer.byteLength(string, 'utf8'); | |
} | |
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); |
#!/bin/bash | |
# get list of VMs | |
VMLIST=`azure vm list --json |jq '. | .[].name'` | |
for v in $VMLIST | |
do | |
v=`echo $v | sed 's/"//g'` | |
echo "looking up $v..." |
#!/bin/sh | |
dmesg | awk ' | |
/sd[a-z].*logical blocks/ { | |
gsub(/\[|\]/, "", $5) | |
gsub(/[aA-zZ]/, "", $11) | |
gsub(/\//, "", $11) | |
print $5, "-", $11 | |
} | |
' |
req, _ = http.NewRequest("POST", "", body) | |
req.Header.Add("Content-Type", writer.FormDataContentType()) | |
w = httptest.NewRecorder() | |
router.ServeHTTP(w, req) | |
if w.Code != http.StatusOK { | |
t.Errorf("uploadHandler POST returned %v, should be %v", w.Code, http.StatusOK) | |
} | |
err = deleteTestImage(sampleImgPath) | |
if err != nil { | |
fmt.Println("unable to delete test image") |