I hereby claim:
- I am drboyer on github.
- I am drboyer (https://keybase.io/drboyer) on keybase.
- I have a public key ASCWxCpccDA_rxa1I9Q8f3E2uwruYyXTBtrGzWMe5kMkTAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
quad | val | |
---|---|---|
nw | 0 | |
ne | 1 | |
se | 2 | |
sw | 3 |
function getDroughtMonStream(outStream) { | |
var pass = new stream.PassThrough() | |
req('http://droughtmonitor.unl.edu/data/shapefiles_m/USDM_' + dates.getDroughtMonDate() + '_M.zip') | |
.pipe(pass) | |
toJSON(pass).pipe(outStream) | |
} |
install | |
text | |
cdrom | |
lang en_US.UTF-8 | |
keyboard us | |
network --onboot yes --bootproto dhcp --noipv6 |
{ | |
"selector": "source.perl", | |
"cmd": ["perl", "-c", "$file"], | |
"variants": [ | |
{ "name": "Run", | |
"cmd": ["perl", "$file"] | |
} | |
] |
#!/bin/bash | |
privatestr="Private (local) IP:\t" | |
privatestr+=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
echo -e $privatestr | |
publicstr="Public IP:\t\t" | |
publicstr+=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | |
echo -e $publicstr |
yum install nfs-utils | |
chkconfig nfs on | |
service rpcbind start | |
service nfs start | |
vi /etc/sysconfig/iptables # (see iptables edit for changes to make) | |
service iptables restart | |
# Add entires to /etc/exports | |
exportfs -a(v) |
# Do imports of these modules somewhere up top | |
import time, datetime | |
# timestring is a string containing the time and/or date you want to parse | |
# format is the time format to parse. | |
# Reference: https://docs.python.org/2.6/library/datetime.html#strftime-and-strptime-behavior | |
mydatetime = datetime.datetime(*(time.strptime(timestring, format)[0:6])) |
* Take a floating-point (decimal) number as a parameter and returns a truncated integer (with no decimal point) | |
function int(num) | |
outnum = '' | |
i = 1 | |
while(i < strlen(num)) | |
char = subwrd(num,i) | |
if(char = '.') | |
break | |
else | |
outnum = outnum%subwrd(num,i) |