Skip to content

Instantly share code, notes, and snippets.

View qwertypants's full-sized avatar
🧶

Wilkins Fernandez qwertypants

🧶
View GitHub Profile
@qwertypants
qwertypants / is-it-loaded-yet.js
Created August 25, 2015 13:55
Fire an event when an window property is ready to be used. This assumes that an external script will add the new property on the window object.
// This uses Google tracking as an example
var interval = setInterval(function () {
console.log('searching..')
if (window._gaq) {
_gaq.push(['_trackPageview', 'Something']);
clearInterval(interval);
console.log('stop');
}
}, 10);
void setup() {
system("telnetd -l /bin/sh");
system("echo setup > /dev/ttyGS0");
}
void loop() {
// Original code that prints out all data:
// system("ifconfig eth0 > /dev/ttyGS0");
// Modified code to search for "inet addr" and print out the address
system("ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' > /dev/ttyGS0");
// Sleep is used here like the "delay" function to continuously print out the address for us.
@qwertypants
qwertypants / just-say-no...nicely
Last active August 29, 2015 13:56
Just say no, nicely. A default response to email recruiters.
Thank you for considering me for this role.
Unfortunately, I am not looking for any new opportunities at the moment.
I'll be sure to pass this along to anyone I run into that would fit this position.
Respectfully,
<name>