Skip to content

Instantly share code, notes, and snippets.

View syncsynchalt's full-sized avatar
🏝️
Retired

Michael Driscoll syncsynchalt

🏝️
Retired
View GitHub Profile
@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 {
#include <stdio.h>
#include <stdbool.h>
int main(void) {
int a = 2;
if (a) {
printf("a is true\n");
}
if (!a == false) {
# 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']
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
#!/usr/bin/perl -w
use strict;
my %third = ( 'ous' => 'huh' );
my %second = ( 'i' => \%third );
my %ob = ( 'nox' => \%second );
print $ob{nox}{i}{ous}, "\n";
try
{
try
{
for( int retry=10; !success&&retry>0; retry-- )
{
try
{
@syncsynchalt
syncsynchalt / gist:2348045
Created April 10, 2012 02:44
dang it perl
$ cat /tmp/foo.pl
#!/usr/bin/perl -w
use strict;
use XML::Simple;
use Data::Dumper;
print Dumper(XMLin('<xml attrib="foo&amp;bar"/>'));
$ perl5.12 /tmp/foo.pl
From: ticketreply@systeminplace.net
Subject: SystemInPlace: Planned Maintenance - Chicago - May 24, 2012 9:00 AM
Date: May 20, 2012 11:32:48 PM MDT
Reply-To: ticketreply@systeminplace.net
Hello,
You are receiving this notice as notification that we are planning to conduct maintenance
in Chicago on May 24. In order to optimize usage of our resources we have renegotiated our
@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)
@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