Skip to content

Instantly share code, notes, and snippets.

View syncsynchalt's full-sized avatar
🏝️
Retired

Michael Driscoll syncsynchalt

🏝️
Retired
View GitHub Profile
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
@syncsynchalt
syncsynchalt / Makefile
Last active August 19, 2016 03:03
Your makefile should be this simple
SOURCE=$(wildcard *.cpp)
OBJS=$(patsubst %.cpp,%.o,$(SOURCE))
all: yourbin
.cpp.o:
$(CXX) $(CXXFLAGS) -o $@ $<
yourbin:
$(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS)
var result;
if (dev.isBored() || job.sucks()) {
result = searchJobs({flexibleHours: true, companyCulture: "💯"});
}
result.then(function(newJob) {
headHunter.reply(newJob, "Thanks but no.");
});
// A career site that's by developers, for developers
---.-- Thinking of Maud you forget everything else.--More--
|{.... Michael Driscoll <fenris@lightspeed.net>
|.d.@| Student of ChemEng at CSM typedef ipv4 long;
------ ipv4 **home_page_pointer = (ipv4 **)http://frob.base.org/;
< wpo> you're a typical cynical computerman goon with taste, rapidly evolving into an ulf in both life and your job
< wpo> you get promoted to senior software engineer
< wpo> and your wife, who you married years ago because you thought she could hang and she knew more about (insert sperghole here), buys you that shirt unironically
< wpo> what do you do
< wpo> you consider that maybe she bought it ironically but she wrapped it with a card saying "so proud hun!!". it confuses you because not two days prior she went on an extended rant about her coworker, and how she has it in her headcanon that "he's into vore and it should be okay because it's 2017 but he did it for all the wrong reasons" and you can't reconcile
< wpo> the woman you love with the fact that she bought this shirt
< wpo> actually come to think of it, this is probably the reaction she was after
< wpo> thinking it must be a joke, you walk into your garage and are shocked to see a stick figure family on your back windshield. is this real? is anythin
Hello, Michael Driscoll
You sent $xxx.00 USDto First Last
YOUR NOTE TO First Last
Happy Birthday!
Transaction Details
echo '+LN4B+BA$mgA/B+'\
'BAjnbjnA.B+BAfdzscA$'\
'BovgAtbxAAB+BAA*opdg'\
'feA$B+BD#A)fqpiAjA$B'\
'+BD#A2B+LN4L"' |perl -ne '
@_=map{ord($_)-33}/\S/g;
while(@_){$a=pop@_;$a
<32&&$a!=10&&($l=$a,$a=pop
@_);$l=print chr($a)x$l}'