Skip to content

Instantly share code, notes, and snippets.

View atog's full-sized avatar

Koen Van der Auwera atog

View GitHub Profile
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@atog
atog / local_ip.rb
Created November 9, 2012 11:14
Get your local IP address
require 'socket'
def local_ip
orig, Socket.do_not_reverse_lookup = Socket.do_not_reverse_lookup, true # turn off reverse DNS resolution temporarily
UDPSocket.open do |s|
s.connect '64.233.187.99', 1
s.addr.last
end
ensure
Socket.do_not_reverse_lookup = orig
@atog
atog / example.txt
Created November 30, 2012 14:13
Example prettify_json
curl http://api.twitter.com/1/statuses/user_timeline.json\?screen_name\=atog | prettify_json.rb
-- via https://speakerdeck.com/jeg2/10-things-you-didnt-know-ruby-could-do

Keybase proof

I hereby claim:

  • I am atog on github.
  • I am atog (https://keybase.io/atog) on keybase.
  • I have a public key whose fingerprint is 947D 3BC6 3C3F A68E 0437 2140 E63E 0B9D 1B81 8B66

To claim this, I am signing this object:

var delay = (function() {
var timer = 0;
return function(ms, callback) {
clearTimeout(timer);
return timer = setTimeout(callback, ms);
};
})();
USAGE:
@atog
atog / missing.md
Last active August 29, 2015 14:15
iPad experiment
  • garmin upload
  • icloud mail forwarding settings
  • print to pdf
  • java swing
  • vmware fusion / windows
  • pass mjolnir config
  • excel to csv
  • batch banktoestanden
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 8c04cb5..132d803 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -104,6 +104,9 @@
have_func("SSLv2_method")
have_func("SSLv2_server_method")
have_func("SSLv2_client_method")
+have_func("SSLv3_method")
+have_func("SSLv3_server_method")
# install the 't' gem: httjp://sferik.github.io/t/
# set the path to the executable
t_cmd = '~/.rbenv/shims/t'
followings = `#{t_cmd} followings`.split /\s/
whois_cmd = "#{t_cmd} whois "
activity = {}
<?xml version="1.0"?>
<opml version="1.1">
<head>
<title>Castro 2 Podcast Feeds</title>
</head>
<body>
<outline xmlUrl="https://rss.art19.com/ctrl-walt-delete" text="Ctrl-Walt-Delete" title="Ctrl-Walt-Delete" type="rss" version="RSS"/>
<outline xmlUrl="https://www.relay.fm/upgrade/feed" text="Upgrade" title="Upgrade" type="rss" version="RSS"/>
<outline xmlUrl="http://www.tech45.eu/wordpress/feeds/tech45_podcast.xml" text="Tech45" title="Tech45" type="rss" version="RSS"/>
<outline xmlUrl="http://feeds.soundcloud.com/users/soundcloud:users:46838518/sounds.rss" text="De Correspondent" title="De Correspondent" type="rss" version="RSS"/>
@atog
atog / alacritty_seagull.txt
Created February 1, 2018 10:39
Alacritty Seagull Color Scheme
# https://github.com/nightsense/seabird
# Colors (Seagull)
colors:
# Default colors
primary:
background: '0xffffff'
foreground: '0x61707a'
# Normal colors