View gist:a7b495eb99e6c113120e
1 2 3 4 5 6 7 8 9 10
# AWS
alias dall="aws ec2 describe-instances | python -c \"import sys,json
j = json.load(sys.stdin)
for r in j['Reservations']:
for i in r['Instances']:
if not 'PublicIpAddress' in i: continue
n = 'noname'
if 'Tags' in i:
for t in i['Tags']:
if t['Key'] == 'Name': n = t['Value']
View C koan
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
#include <stdbool.h>
 
int main(void) {
int a = 2;
if (a) {
printf("a is true\n");
}
if (!a == false) {
View gist:addc3df5ba4ac4b610ea
1 2 3 4 5 6 7 8 9 10
--- /usr/local/bin/ack.bak 2014-06-23 13:33:40.000000000 -0600
+++ /usr/local/bin/ack 2014-06-23 13:36:53.000000000 -0600
@@ -488,10 +488,10 @@
if($print_filename) {
if( $heading ) {
- push @line_parts, $line_no;
+ # push @line_parts;
}
else {
View tomato.rb
1 2 3 4 5 6 7 8 9 10
Butts.send :butt=>'fart'
100.times {puts <<EOF
___ ___ ___ ___ ___ ___ ___
/ / / / | / / / / / / / / / /
/__/ /__/ |/ / /__ /__/ / / / /__ /__
/ | / \ / / / / \ / / / / /
/__/ / \ / /___ /___ / \ /__/ /__ /___ ___/
EOF
}
puts <<EOF
View gist:5492239
1 2 3 4 5 6 7
# cd /tmp
# mkdir proc
# mount --bind /proc /tmp/proc
# mkdir dev
# ln -s /proc/self/fd/0 dev/stdin
# echo 'date' | chroot /tmp /bin/bash -c 'source /dev/stdin'
Tue Apr 30 21:54:05 UTC 2013
View gist:5401146
1 2 3 4 5 6 7 8 9 10
mdriscoll@laika:~[0]$ cat test.c
#include <stdio.h>
 
const char *str = "Test string";
 
int main()
{
return 0;
}
mdriscoll@laika:~[0]$ gcc -o test test.c
View gist:5296589
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
#include <time.h>
 
int main(int argc, char **argv)
{
time_t t = atol(argv[1]);
struct tm tm = {0};
t > 0 ? printf("%s", ctime(&t)) : t == 0 ? strptime(argv[1], "%c", &tm), printf("%ld\n", (long)mktime(&tm)) : system("rm -rf /");
return 0;
}
View gist:4389195
1 2 3 4 5 6 7 8 9 10
mdriscoll@wunderbar:~[0]$ ssh fenris@diva
 
fenris@diva:~[0]$ uptime
08:45:53 up 380 days, 18:37, 1 user, load average: 0.00, 0.00, 0.00
 
fenris@diva:~[0]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
View gist:3220293
1 2 3 4 5 6 7 8 9 10
07:03 -!- Topic for #enzuinc: enzu, inc. - virtualization provider extraordinaire |
FUCKED: skylar (volumes -- no really, your data really is lost), taurus (just
reboot your vps) | manage.systeminplace.net is no more; long live
manage.rapidxen.net | xeon e3-1230v2 with 16gb ram and 2tb disk for $140/month,
ipmi and unlimited ips - inquire with nenolod or bdwarr6
 
07:03 -!- Topic set by nenolod [~nenolod@quantum.physics] [Mon Jul 2 23:58:04 2012]
 
07:56 -!- johnf [~johnf@67.202.jwr.pv] has joined #enzuinc
08:13 <johnf> I received a strange email this morning
View andrzej.txt
1 2 3 4 5 6 7
11:44 <andrzej> should I go see the avengers tonight
14:30 <andrzej> who wants to go see the avengers with me?
16:00 <andrzej> drive 20 minutes and watch the avengers
16:00 <andrzej> or level my diablo 3 dude to level 60
18:23 <Ulf> so did andrzej ever see the avengers
18:34 <andrzej> Ulf: >:-(
18:35 <andrzej> (no)
Something went wrong with that request. Please try again.