Skip to content

Instantly share code, notes, and snippets.

@mkhl
mkhl / any2mp3
Created February 22, 2011 17:43
Convert media files to MP3 using ffmpeg and lame. With automatic tagging.
#!/usr/bin/env ruby
require 'tempfile'
opts = Hash[*%w[--tt title
--ta artist
--tl album
--ty year
--tc comment
@stefanfoulis
stefanfoulis / osx_developer_installation.rst
Last active May 5, 2025 05:14
Instructions on how to setup an OSX developer machine for (python/django) development

OSX Developer System installation

This guide assumes a fresh install of Mac OSX 10.7 Lion.

Brew User

@joe-pindell
joe-pindell / ExportThingsToTaskPaper.scpt
Created April 8, 2011 20:18
An Applescript to export from Things to TaskPaper
set thePath to (path to desktop as Unicode text) & "ThingsToDo.txt"
set thingsToDoFile to (open for access file thePath with write permission)
set eof of thingsToDoFile to 0
set cr to ASCII character 10
tell application "Things"
-- Export to-dos from Inbox
write "Inbox:" & return to thingsToDoFile as «class utf8»
repeat with td in to dos of list "Inbox"
@140bytes
140bytes / LICENSE.txt
Created May 9, 2011 16:13
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@elidupuis
elidupuis / bookmarklet.js
Created May 13, 2011 17:19
How to create a bookmarklet with an external js file.
// use this code as your href attribute on your 'Install this bookmarklet' anchor tag.
// borrowed from http://net.tutsplus.com/tutorials/javascript-ajax/create-bookmarklets-the-right-way/
javascript:(function(){var jsCode = document.createElement('script');jsCode.setAttribute('src', 'http://example.com/path/to/file.js');document.body.appendChild(jsCode);}());
@pksunkara
pksunkara / config
Last active July 10, 2025 20:05
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
# vi: ft=dosini
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[column]
@bthemad
bthemad / quix
Created June 2, 2011 14:07
Quix expansion
#kill-defaults
@Google stuff
g http://www.google.com/search?q=%s Google Search
gl http://www.google.com/search?q=%s&btnI=I%27m+Feeling+Lucky Google Lucy Search
gs http://www.google.com/search?q=site:%d%20%s Search the current site with Google
gma https://mail.google.com:443/mail/?ui=2#search/%s Search Gmail
gde http://www.google.com/search?q=define:%s Google Define a word
gd http://www.google.com/dictionary?langpair=en%7Cen&q=%s&hl=en&aq=f Google Dictionary for a word
gbl http://blogsearch.google.com/blogsearch?q=%s Google Blog Search
@heisters
heisters / Solarized High Contrast Dark.itermcolors
Created June 8, 2011 21:49
Solarized High Contrast Dark theme for iTerm2
<?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>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
@kn0ll
kn0ll / bookmarklet.js
Created June 11, 2011 04:31
advanced bookmarklet template
javascript:(function() {
if(!window.your_bookmarklet) {
var doc = document,
js = doc.createElement('script');
js.type = 'text/javascript';
js.src = 'loader.js';
js.async = true;
@michaelfox
michaelfox / quix.txt
Created June 20, 2011 20:57
Quix Commands
>
> Author: Michael Fox
> Website: http://www.michaelfox.name
>
> Quix: http://quixapp.com
>
@Quixearches Quick Searches
acronym javascript:q%20=%20""%20+%20(window.getSelection%20?%20window.getSelection()%20:%20document.getSelection%20?%20document.getSelection()%20:%20document.selection.createRange().text);%20if%20(!q)%20q%20=%20prompt("You%20didn't%20select%20any%20text.%20%20Enter%20a%20search%20phrase:",%20"");%20if%20(q!=null)%20location="http://www.acronymfinder.com/af-query.asp?Find=find&string=exact&Acronym="%20+%20escape(q);%20void%200 Acronym Search