Skip to content

Instantly share code, notes, and snippets.

View Pok3r

Pok3r Custom Mapping

DIP switch config for QWERTY with Caps Lock FN

1: off
2: off
3: on
4: off
View lytol.zsh-theme
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr '%F{green}●%f'
zstyle ':vcs_info:*' unstagedstr '%F{red}●%f'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' formats '[%F{027}%b%f%c%u] '
zstyle ':vcs_info:*' enable git
theme_precmd () {
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
zstyle ':vcs_info:*' formats '[%F{027}%b%f%c%u] '
View tmux.conf
# terminal with 256 color
set -g default-terminal "screen-256color"
# Clipboard fix for iterm + OS X
set-option -g default-command "reattach-to-user-namespace -l zsh"
# command prefix (like screen)
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
View test.rake
Rake::Task['test'].clear do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
Lytol / layer1.kll
Created Apr 21, 2015
Lytol's Keyboard Layout for Infinity Keyboard
View layer1.kll
Name = Layer1;
Version = 0.1.0;
Author = "Brian Smith <";
KLL = 0.3;
# Modified Date
Date = 2015-03-05;
# Number row
View Makefile
SHELL = /bin/bash
all: build
cp *.kll controller/kll/layouts/
cd build; cmake ../controller; cd ..
build: prepare
cd build; make; cd ..
View rails-application-template.rb
# Replace the Gemfile wholesale, it's just easier
remove_file "Gemfile"
create_file "Gemfile", <<-EOF
source ''
ruby '2.1.5'
gem 'rails', '4.2.0'
gem 'pg'
View dev
SESSION=`basename $PWD`
tmux new-session -d -s $SESSION -n 'Shell'
tmux split-window -h
if [[ -e Procfile ]]; then
tmux new-window -t $SESSION:1 -n 'Foreman'

Keybase proof

I hereby claim:

  • I am lytol on github.
  • I am lytol ( on keybase.
  • I have a public key whose fingerprint is 3DB8 E053 0DA6 9360 051D 0293 DF0D 5FC9 FD91 1F24

To claim this, I am signing this object:

View parse
#!/usr/bin/env ruby
require 'csv'
abort("You must specify a CSV file") unless ARGV.length == 1
CSV do |out|
CSV.foreach(ARGV[0], encoding: 'ISO-8859-1') do |row|
out << { |c| c.nil? ? nil : c.encode('UTF-8') }