Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
@webframp
webframp / .tmux.conf
Created June 28, 2012 18:23
tmux config
# basic settings
#set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
setw -g xterm-keys on
set -g base-index 1
set -s escape-time 0
setw -g mode-mouse off
set -g default-command "reattach-to-user-namespace -l zsh"
# bindings
| Part | Brand | Description | Part-No | Price | url |
|-------------+-------------+----------------------------------------+-------------------+-------+------------------------------------------|
| Case | Thermaltake | V3 Black, No PS ATX | cas-the-020 | 46 | http://enuinc.com/cas-the-020.html |
| Power sup | Thermaltake | TR2-600 600w EPS | pow-the-600w | 61 | http://enuinc.com/pow-the-600w.html |
| CPU | Intel i3 | i3 2100 3.1GHz | cpu-1155-2100-i3 | 133 | http://enuinc.com/cpu-1155-2100-i3.html |
| Motherboard | Asus | P8H61-M LE | mb-1155-asu-018 | 75 | http://enuinc.com/mb-1155-asu-018.html |
| Memory | Crucial | 8g DDR3, matched pair | m-08g-133-c-k2-d3 | 52 | http://enuinc.com/m-08g-133-c-k2-d3.html |
| Harddrive | WD |
@webframp
webframp / org-outlook.el
Created September 7, 2012 13:56
Directly link to Outlook 2007 email from emacs org-mode
;;; org-outlook.el - Support for links to Outlook items in Org
;; via: http://superuser.com/questions/71786/can-i-create-a-link-to-a-specific-email-message-in-outlook
;;
;; use (require 'org-outlook) in init.el
(require 'org)
(org-add-link-type "outlook" 'org-outlook-open)
@webframp
webframp / copy_cached_repo.rb
Created November 2, 2012 18:12
copy_cached_repo.rb
Chef::Log.info '** Patching deploy resource copy method to use rsync **'
class Chef::Provider::Deploy
def copy_cached_repo
FileUtils.mkdir_p(@new_resource.deploy_to + "/releases")
run_command(:command => "rsync -a --exclude '.git*' #{::File.join(@new_resource.destination, ".")}/ #{release_path}")
Chef::Log.info "#{@new_resource} copied the cached checkout to #{release_path} using rsync"
release_created(release_path)
end
end
@webframp
webframp / copy_cached_repo.rb
Created November 2, 2012 18:41
copy_cached_repo.rb take two
Chef::Log.info '** Patching deploy resource copy method to use rsync **'
class Chef::Provider::Deploy
def copy_cached_repo
target_dir_path = @new_resource.deploy_to + "/releases"
if self.respond_to?(:converge_by)
converge_by("deploy from repo to #{@target_dir_path} ") do
copy_cached_repo_command_action(target_dir_path)
end
else
copy_cached_repo_command_action(target_dir_path)
function e() { emacs -nw $@ }
function ed() { emacs --daemon }
function ec() { emacsclient -t $@ }
function es() { e --daemon=$1 && ec -s $1 }
function el() { ps ax | egrep '[Ee]macs' }
function ek() { ec -e '(kill-emacs)' -s $1 }
@webframp
webframp / shokunin.md
Created November 13, 2012 21:49
Shokunin

“The Japanese word shokunin is defined by both Japanese and Japanese-English dictionaries as ‘craftsman’ or ‘artisan’, but such a literal description does not fully express the deeper meaning. The Japanese apprentice is taught that shokunin means not only having technical skill, but also implies an attitude and social consciousness. These qualities are encompassed in the word shokunin, but are seldom written down . . . . The shokunin demonstrates knowledge of tools and skills with them, the ability to create beauty and the capacity to work with incredible speed . . . . The shokunin has a social obligation to work his/her best for the general welfare of the people. This obligation is both spiritual and material, in that no matter what it is, the shokunin’s responsibility is to fulfill the requirement.”

@webframp
webframp / .tmux.conf
Last active October 13, 2015 07:58
OS X tmux config
# basic settings
set -g default-terminal "screen-256color"
setw -g xterm-keys on
set -g base-index 1
set -s escape-time 0
setw -g mode-mouse off
# brew install reattach-to-user-namespace
set -g default-command "reattach-to-user-namespace -l zsh"
# bindings
@webframp
webframp / systemd-startup
Created December 1, 2012 07:43
Startup finished in 1328ms (kernel) + 16335ms (userspace) = 17663ms
767ms upower.service
296ms console-kit-log-system-start.service
239ms systemd-binfmt.service
126ms console-kit-daemon.service
115ms systemd-logind.service
110ms systemd-remount-fs.service
103ms systemd-vconsole-setup.service
86ms systemd-udev-trigger.service
83ms systemd-modules-load.service
69ms dev-hugepages.mount