This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn go-right [[x y]] {:pos [(inc x) y]}) | |
(defn go-left [[x y]] {:pos [(dec x) y]}) | |
(defn go-down [[x y]] {:pos [x (inc y)]}) | |
(defn go-up [[x y]] {:pos [x (dec y)]}) | |
;; I'm pretty (cool) and I know it! | |
(defn enterprise-buzz | |
"To infinity and beyond!" | |
[look {[x y] :pos}] | |
(println (look [ x y])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
user root; | |
error_log logs/error.log; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
server { | |
listen 8080; | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export HOST="http://10.251.76.43:9201" | |
echo \ | |
#deletes index | |
curl -XDELETE "$HOST/article-light/" | |
echo \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vi ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Project\ Side\ Bar/Project\ Side\ Bar.py | |
import sublime | |
import sublime_plugin | |
class SideBarListener(sublime_plugin.EventListener): | |
def on_activated(self, view): | |
view.window().run_command('reveal_in_side_bar') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Antonio Terreno | |
email = antonio.terreno@example.com | |
[alias] | |
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g' | |
up = !git pull --rebase --autostash | |
co = checkout | |
br = branch | |
ci = commit | |
st = status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
*~ | |
\#*\# | |
.\#* | |
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'posterous' | |
require 'time' | |
module Posterous | |
module Connection | |
def default_options | |
@default_options ||= { | |
#:username => Posterous.config['username'], | |
#:password => Posterous.config['password'] | |
:userpwd => Posterous.config['username']+":"+Posterous.config['password'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'jekyll' | |
require 'fileutils' | |
require 'posterous' | |
require 'net/http' | |
require 'URI' | |
puts ARGV, "IS ARGV" | |
module Posterous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Launch iTerm and log into multiple servers using SSH | |
tell application "iTerm" | |
activate | |
-- Read serverlist from file path below | |
set Servers to paragraphs of (do shell script "/bin/cat $HOME/Serverslist") | |
repeat with nextLine in Servers | |
-- If line into file is not empty (blank line) do the rest | |
if length of nextLine is greater than 0 then | |
set server to "nextLine" | |
set term to (current terminal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -a / | sort -n -r | head -n 10 |