Skip to content

Instantly share code, notes, and snippets.

! 5/3/2016, 1:19:20 PM http://www.smh.com.au/federal-politics/political-news/malcolm-turnbull-to-become-the-first-sitting-pm-to-attend-sydney-mardi-gras-20160305-gnbaa1.html
www.smh.com.au###video-player-content > .module--inline-player.module
||ffxapm-a.akamaihd.net^
||ffxapm-b.akamaihd.net^
||ffxapm-c.akamaihd.net^
||ffxapm-d.akamaihd.net^
||ffxapm-e.akamaihd.net^
! 18/06/2016, 2:15:21 pm oreilly.com
@@||d1v9u0bgi1uimx.cloudfront.net/sso.js$script,domain=members.oreilly.com

Keybase proof

I hereby claim:

  • I am thelibrarian on github.
  • I am tony (https://keybase.io/tony) on keybase.
  • I have a public key ASDHC6USRoYwwq0v0PYO3QJWThm6wGEF08r7bWRO7EJPhgo

To claim this, I am signing this object:

@thelibrarian
thelibrarian / tt_to_org.rb
Last active April 23, 2016 06:01
Time Tracker.app to org-mode Converter
#!/usr/bin/env ruby
#
# Converts a Time Tracker.app <https://github.com/rburgst/time-tracker-mac> CSV export
# to org-mode clock entries.
#
# Simply call like so:
# ./tt_to_org.rb Time\ Tracker\ Data.csv
#
# This will output an Org file in the same directory, with same name
# as the input file, but with a ".org" extension.
@thelibrarian
thelibrarian / Fixing XCode Command Line Tools.md
Last active November 6, 2017 03:28
How to fix compile errors with the XCode command line tools on Mac OS X. Solves problems such as failing to find Framework header files (e.g. ruby.h).

The Problem

If you have installed the standalone Command Line Tools for XCode on your Mac (i.e. without having XCode.app installed), some of these tools can get a bit confused due to a couple of oversights on Apple's part in finalising the setup.

Note: all commands below will need to be run from an Administrator account, or by an account with appropriate permission in /etc/sudoers.

The Solution

1. Failing to Find Frameworks

Sometime when compiling against the preinstalled Frameworks (e.g. Ruby or Python), various tools will inexplicable fail to find header files that are quite clearly there. This is caused by the fact that no XCode has been selected for the command-line tools. Wait, I hear you cry, I don't have XCode installed! Indeed, but you nonetheless need to select one, and point it somewhere where the command line tools exist, like so

@thelibrarian
thelibrarian / gist:2962909
Created June 20, 2012 23:31
Nice CSS buttons
a.button {
text-decoration: none;
}
.button {
display: inline-block;
color: white;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#C1FA3B), color-stop(0.02, #8FCA05), to(#5A7F03));
-webkit-border-radius: .2em;
-webkit-box-shadow: #7EB105 0 0 .03em 0.03em inset, rgba(0, 0, 0, 0.4) 0px 0.1em .2em;
text-shadow: rgba(0, 0, 0, .2) 0 .05em .02em;
@thelibrarian
thelibrarian / gist:706035
Created November 19, 2010 02:13
Convert a docfile to a stripped html file (body only, no styling)
textutil -convert html -excludedelements "(head, body, html, xml, font)" -stdout Abst_1.doc | sed -e 's/ style="[^"]*"//g' -e 's/b>/strong>/g' -e 's/i>/em>/g' -e '/<p><br><\/p>/d' > $(echo 'Abst_1.doc' | sed 's/\.doc$/.html/')
@thelibrarian
thelibrarian / Wombat.tmtheme
Created February 15, 2010 23:46
Wombat theme for TextMate, based on the original Vim theme (http://dengmao.wordpress.com/2007/01/22/vim-color-scheme-wombat/)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Lars H. Nielsen (translated by Tony Kemp)</string>
<key>name</key>
<string>Wombat</string>
<key>settings</key>
<array>