Skip to content

Instantly share code, notes, and snippets.

View ahmadvaroqua's full-sized avatar
😀

Ahmad Varoqua ahmadvaroqua

😀
View GitHub Profile
@ahmadvaroqua
ahmadvaroqua / planter.rb
Created May 13, 2016 20:56 — forked from ttscoff/planter.rb
Create directory trees from indented text input
#!/usr/bin/ruby
=begin
Planter v1.3
Brett Terpstra 2013
ruby script to create a directory structure from indented data.
Three ways to use it:
- Pipe indented (tabs or 2 spaces) text to the script
- e.g. `cat "mytemplate" | planter.rb
- Create template.tpl files in ~/.planter and call them by their base name
@ahmadvaroqua
ahmadvaroqua / CopyURL
Created May 6, 2016 22:04 — forked from kliker/CopyURL
Alfred app workflow: Get Safari current tab URL to clipboard
on alfred_script(q)
-- Copies URL of the current tab to the clipboard
-- Requires Alfred PowerPack
tell application "Safari"
set theURL to URL of front document
set the clipboard to theURL as string
end tell
end alfred_script

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
<?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.0</real>
<key>Green Component</key>
<real>0.0</real>