I hereby claim:
- I am scjody on github.
- I am firetiger (https://keybase.io/firetiger) on keybase.
- I have a public key ASBEDo8uV5GusW0YPudA5zXkSUqBsN-0PLU1IjAhkxY9fAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
;; TRAMP gcloud ssh | |
(add-to-list 'tramp-methods | |
'("gssh" | |
(tramp-login-program "gssh") | |
(tramp-login-args (("%h"))) | |
(tramp-async-args (("-q"))) | |
(tramp-remote-shell "/bin/sh") | |
(tramp-remote-shell-args ("-c")) | |
(tramp-gw-args (("-o" "GlobalKnownHostsFile=/dev/null") | |
("-o" "UserKnownHostsFile=/dev/null") |
function gscp { | |
gcloud config list |grep 'Your active' | |
for arg in "$@"; do | |
if echo "$arg" | grep -q : - ; then | |
break | |
fi | |
done | |
INST=$(echo "$arg" | cut -f1 -d:) |
#!/bin/bash | |
if [[ -z "$1" ]]; then | |
gcloud config configurations list; | |
else | |
case "$1" in | |
# These clauses implement aliases for my most commonly used configurations. | |
# Change them to support your needs or remove them. | |
prod) | |
gcloud config configurations activate default |
#!/bin/bash | |
HOST="$1" | |
if [[ $HOST = *"@"* ]] ; then | |
USER=$(echo $HOST | cut -d'@' -f1) | |
HOST=$(echo $HOST | cut -d'@' -f2) | |
fi | |
gcloud config list | grep 'Your active' |
import socket | |
import re | |
PORT = 1075 | |
LINE_VALIDATOR = re.compile(r"(0|1)(0|1)(0|1)(0|1)(0|1)") | |
def main(): | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.bind(("0.0.0.0", PORT)) |
var default_value = parseInt(details.default_value); | |
function bar_class(d) { | |
if (default_value >= d.x && default_value < d.x + d.dx) { | |
return "default"; | |
} else if (median >= d.x && median < d.x + d.dx) { | |
return "median"; | |
} | |
return "standard"; | |
} |
# Python 2.7.3 (default, Apr 20 2012, 23:04:22) [GCC 4.6.3] | |
# Use plot() to plot lists or arrays | |
# Use print to show results in the command line history | |
from numpy import matrix | |
import random | |
# Define probabilities, multiplication matrices, and transforms | |
p1 = 0.01 |
# Python 2.7.3 (default, Apr 20 2012, 23:04:22) [GCC 4.6.3] | |
# Use plot() to plot lists or arrays | |
# Use print to show results in the command line history | |
from numpy import sin, cos, pi | |
def f(s,itr): | |
xo=0 | |
yo=0 | |
a=0 |
#!/usr/bin/env ruby | |
# coding: utf-8 | |
# @todo Properly case the organization name. | |
# @todo Handle case where the organization has >1 contact but no email | |
# address on the first contact, e.g. CSSS DE CHICOUTIMI. | |
# @todo For organizations without any email address, HTML-ify their | |
# postal address and put it in the notes section. | |
# @todo Investigate why we get BAIEJAMES in some cases. | |
require 'csv' |