Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
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
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# Background definitions
# ID 1
rounded = 0
border_width = 1
background_color = #1D1F21 60
border_color = #1D1F21 11
[chef_server] Box opscode-ubuntu-12.04 was not found. Fetching box from specified URL...
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Downloading box: https://opscode-vm.s3.amazonaws.com/vagrant/opscode-ubuntu-12.04_chef-10.18.2.box
Bad status code: 403
Please verify that the box exists and is accessible. Also verify that
this computer is properly connected to the internet.
[chef_server] VM already created. Booting if it's not already running...
[test_server] Importing base box 'opscode_ubuntu-12.04'...
[test_server] Matching MAC address for NAT networking...
[test_server] Clearing any previously set forwarded ports...
[test_server] Fixed port collision for 22 => 2222. Now on port 2200.
[test_server] Forwarding ports...
[test_server] -- 22 => 2200 (adapter 1)
[Berkshelf] uploading cookbooks to 'https://chef-server-berkshelf'
[Berkshelf] Installing chef-server (2.0.0) from git: 'git://github.com/opscode-cookbooks/chef-server.git' with branch: 'f5f9600c07533593de29a0d00eebdcf990194609'
[Berkshelf] Uploading chef-server (2.0.0) to: 'https://chef-server-berkshelf'
[Berkshelf] uploading cookbooks to 'https://chef-server-berkshelf'
[Berkshelf] ssl setting is 'false'
[Berkshelf] other settings: '#<Berkshelf::Config:0x007fccc15bac80 @path="/Users/sme/.berkshelf/config.json", @attributes=#<Hashie::Mash chef=#<Hashie::Mash chef_server_url="https://localhost:4443" client_
key="/Users/sme/src/chef-server-playground/.chef/../cache/root.pem" node_name="root" validation_client_name="chef-validator" validation_key_path="/Users/sme/src/chef-server-playground/.chef/../cache/chef-
validator.pem"> ssl=#<Hashie::Mash verify=false> vagrant=#<Hashie::Mash vm=#<Hashie::Mash box="Berkshelf-CentOS-6.3-x86_64-minimal" box_url="https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-m
inimal.box" forward_port=#<Hashie::Mash> network=#<Hashie::Mash bridged=false hostonly="33.33.33.10"> provision="chef_solo">>>>'
[Berkshelf] Installing chef-server (2.0.0) from git: 'git://github.com/opscode-cookbooks/chef-server.git' with branch: 'f5f9600c07533593de29a0d00eebdcf990194609'
[Berkshelf] Uplo
@webframp
webframp / erc-settings.el
Last active December 12, 2015 10:18
Working ERC settings used with IRCRelay. Securely stores password and provides growl notifications for mentions.
(require 'erc)
(require 'netrc)
(setq erc-user-full-name "Sean Escriva"
erc-part-reason-various-alist '(("^$" "Leaving"))
erc-quit-reason-various-alist '(("^$" "Leaving"))
erc-quit-reason 'erc-part-reason-various
erc-part-reason 'erc-quit-reason-various)
(add-hook 'erc-mode-hook (lambda () (auto-fill-mode 0)))
;; growl notify
(defvar growlnotify-command (executable-find "growlnotify") "The path to growlnotify")
(defun growl (title message)
"Shows a message through the growl notification system using
`growlnotify-command` as the program."
(cl-flet ((encfn (s) (encode-coding-string s (keyboard-coding-system))))
(let* ((process (start-process "growlnotify" nil
growlnotify-command
(encfn title)