- garmin upload
- icloud mail forwarding settings
- print to pdf
- java swing
- vmware fusion / windows
- pass mjolnir config
- excel to csv
- batch banktoestanden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var delay = (function() { | |
var timer = 0; | |
return function(ms, callback) { | |
clearTimeout(timer); | |
return timer = setTimeout(callback, ms); | |
}; | |
})(); | |
USAGE: |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`wget http://www.kids-n-fun.nl/kleurplaten/prinses%20en%20de%20kikker/prinsess_en_kikker_#{sprintf("%02d", i)}.jpg` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "hpricot" | |
doc = Hpricot.XML(`tumblr read num=10`) | |
(doc/"post").each do |p| | |
puts `tumblr delete post-id=#{p.attributes['id']}` | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; As seen on | |
;; http://lucky-dip.net/articles/2009/08/06/restart-passenger-from-emacs-using-rinari/ | |
;; Anyway, here is a small snippet of emacs lisp to easily restart the | |
;; Passenger server for the project you are currently working on. It | |
;; assumes you have Rinari installed. | |
(defun restart-passenger () | |
"Restart passenger using the current rinari root" (interactive) | |
(shell-command (concat "touch " (rinari-root) "tmp/restart.txt")) | |
(message "Passenger restarted")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "hpricot" | |
doc = Hpricot.XML(`tumblr read num=10`) | |
(doc/"post").each do |p| | |
puts `tumblr delete post-id=#{p.attributes['id']}` | |
end |