Skip to content

Instantly share code, notes, and snippets.


Bodo Tasche bitboxer

View GitHub Profile
toluju / delicious2google.rb
Created Dec 17, 2010
Delicious is shutting down, so here's a script to load the exported delicious bookmarks into Google Bookmarks.
View delicious2google.rb
require 'net/http'
require 'uri'
require 'cgi'
text = "<html><head><title>Delicious2Google</title></head><body>" +
"<h1>Upload</h1>" +
"<form action='{rand(65535)}' method='POST'>" +
"<input type='submit'/><input type='hidden' id='data'></form>" +
"<textarea id='xml' style='display:none'>\n<bookmarks>"
nanoant / fl
Last active Oct 8, 2015
Open folder in from console
View fl
# Open folder in from console
# Author: Adam Strzelecki
# Usage:
# fl [<folder>]
# Opens specified directory or current working directory in
fhemberger /
Last active Dec 27, 2015
Get rid of content farms and W3Schools in search results.
polarblau /
Created Jan 14, 2016
Work days / Berlin, Germany (2016)
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Days: 20 21 21 21 20 22 21 23 22 20 22 21
Hours: 150 157,5 157,5 157,5 150 165 157,5 172,5 165 150 165 157,5

(Hours calculations are based on 7.5 hour days.)

SteveBenner / macfix1-install-nokogiri.rb
Last active Aug 13, 2019
Mac fix - Install Nokogiri gem on OS X 10.9 Mavericks
View macfix1-install-nokogiri.rb
#!/usr/bin/env ruby
# Mac fix 1 - Install the Nokogiri gem on Mac OS 10.9 Mavericks
# Usage: to configure and install using Bundler, pass in 'bundle' as an argument to the script.
# Nokogiri works at a very low level, so it has many issues on various platforms.
# As a result, the command `install gem nokogiri` often will fail. This fix is for
# errors involving 'libiconv', such as the following one I encountered:

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
  • NBC
jbgo /
Created Jan 9, 2013
debug SystemStackError in ruby 1.9

This is how I debug SystemStackError when there is no stack trace.

My first attempt was:

rescue SystemStackError
  puts caller
View css-layout-hack.js
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit:
javascript: (function() {
var domStyle = document.createElement("style");
'* { color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }\
* * { background-color: rgba(0,255,0,.2) !important; }\
* * * { background-color: rgba(0,0,255,.2) !important; }\
* * * * { background-color: rgba(255,0,255,.2) !important; }\
* * * * * { background-color: rgba(0,255,255,.2) !important; }\
stevenschobert / load_remote_content_mail_dot_app.scpt
Last active Sep 14, 2020
Apple Script to click the "Load Remote Content" button. I like to disable all remote content in, and then bind this script to a keyboard shortcut using Keyboard Maestro.
View load_remote_content_mail_dot_app.scpt
tell application "System Events" to tell process "Mail"
set mainWindow to a reference to the first window
set rootSplitter to a reference to the first splitter group of the mainWindow
set firstSplitter to a reference to the last splitter group of the rootSplitter
set scrollArea to a reference to the last scroll area of the firstSplitter
set scrollGroup to a reference to the first group of the scrollArea
if number of groups of the scrollGroup is greater than 1 then
set maybeRemoteContentGroup to a reference to the first group of the scrollGroup
You can’t perform that action at this time.