Skip to content

Instantly share code, notes, and snippets.

Avatar
🍼
Parenting

Bodo Tasche bitboxer

🍼
Parenting
View GitHub Profile
@toluju
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='https://www.google.com/bookmarks/mark?op=upload&zx=#{rand(65535)}' method='POST'>" +
"<input type='submit'/><input type='hidden' id='data'></form>" +
"<textarea id='xml' style='display:none'>\n<bookmarks>"
View a.md

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
@nanoant
nanoant / fl
Last active Oct 8, 2015
Open folder in ForkLift.app from console
View fl
#!/bin/bash
#
# Open folder in ForkLift.app from console
# Author: Adam Strzelecki nanoant.com
#
# Usage:
# fl [<folder>]
#
# Opens specified directory or current working directory in ForkLift.app
#
@jbgo
jbgo / debug_system_stack_error.md
Created Jan 9, 2013
debug SystemStackError in ruby 1.9
View debug_system_stack_error.md

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

My first attempt was:

begin
  a_method_that_causes_infinite_recursion_in_a_not_obvious_way
rescue SystemStackError
  puts caller
end
@fhemberger
fhemberger / README.md
Last active Dec 27, 2015
Get rid of content farms and W3Schools in search results.
View README.md
@SteveBenner
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:
#
@polarblau
polarblau / work_days_2016.md
Created Jan 14, 2016
Work days / Berlin, Germany (2016)
View work_days_2016.md
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.)

@stevenschobert
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 Mail.app, and then bind this script to a keyboard shortcut using Keyboard Maestro. https://www.keyboardmaestro.com
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
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: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var domStyle = document.createElement("style");
domStyle.append(
'* { 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; }\
You can’t perform that action at this time.