Skip to content

Instantly share code, notes, and snippets.

View larssmit's full-sized avatar

Lars Smit larssmit

  • Gouda, The Netherlands
View GitHub Profile
@larssmit
larssmit / compare_yaml.rb
Created November 10, 2015 07:00 — forked from joost/compare_yaml.rb
Compare two YAML files
def compare_yaml_hash(cf1, cf2, context = [])
cf1.each do |key, value|
unless cf2.key?(key)
puts "Missing key : #{key} in path #{context.join(".")}"
next
end
value2 = cf2[key]
if (value.class != value2.class)
@larssmit
larssmit / .gvimrc.before
Last active August 29, 2015 14:03
My .gvimrc.before
" -----------------------------------------------------------------------------
" VIM Configuration for Janus (https://github.com/carlhuda/janus.git)
" Lars Smit [email protected]
" -----------------------------------------------------------------------------
" -----------------------------------------------------------------------------
" Basics
" -----------------------------------------------------------------------------
set encoding=utf8
@larssmit
larssmit / settings.txt
Last active August 29, 2015 13:58
My Sublime Text 3 settings
# Github Theme
# GitGutter
# SidebarEnhancements
# Alignment
# SASS
{
"bold_folder_labels": true,
"color_scheme": "Packages/Github Color Theme/GitHub.tmTheme",
@larssmit
larssmit / styles.less
Last active August 29, 2015 13:57
My Atom editor styles.less
.btn {
background-image: linear-gradient(#537178, #537178);
box-shadow:0px px 0px 0px rgba(255,254,255,0.60), inset 0px 0px 0px 1px rgba(255,254,255,0.50);
color: #BDD6DB;
}
.tree-view {
.entry.directory.status-modified > .header,
.entry.file.status-modified {
color: orange;
@larssmit
larssmit / tm2iterm.rb
Created March 5, 2014 13:45
Builds an itermcolors scheme file for iTerm2 from a Textmate tmTheme
#!/usr/bin/env ruby
#
# This script is an astonishing feat of top notch
# rockstar craftsmanship. It totally uses artificial
# intelligence to extract colors out of tmTheme and
# build an itermcolors scheme file for iTerm2.
#
# I know this sounds crazy, but it actually knows
# approximately what colors should be used in the
# ANSI list, and tries to find nearest colors from

Capybara

save_and_open_page

Matchers

have_button(locator)
@larssmit
larssmit / .tm_properties
Created January 30, 2013 06:19
TextMate 2 .tm_properties with default settings for each RoR project.
projectDirectory = '$CWD'
windowTitleProject = '${projectDirectory:+ — ${projectDirectory/^.*\///}}'
windowTitleFramework = '${TM_DIRECTORY/.*\/Frameworks\/([^\/]+)\/.*|.*/${1:+ ($1)}/}'
windowTitle = '$TM_DISPLAYNAME$windowTitleFramework$windowTitleProject$windowTitleSCM'
excludeFiles = "{destroy,tmtags,tmtagsHistory,tags,.tm_properties,.htaccess,.gitignore,dump.rdb,*rid,*lock,*log,*sh}"
excludeInFolderSearch = "{destroy,tmtags,tmtagsHistory,tags,.tm_properties,.htaccess,.gitignore,dump.rdb,*rid,*lock,*log,*sh}"
@larssmit
larssmit / README.md
Created December 26, 2012 11:21 — forked from dergachev/README.md

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@larssmit
larssmit / .gitconfig
Created November 24, 2012 14:35
My .gitconfig
[user]
name = Lars Smit
email = [email protected]
[push]
default = current
[alias]
st = status
ci = commit
br = branch
df = diff
@larssmit
larssmit / .zshrc
Created October 27, 2012 14:44
My .zshrc
ZSH=$HOME/.oh-my-zsh
ZSH_THEME ="lsmit"
CASE_SENSITIVE ="false"
plugins=(git autojump brew bundler cap encode64 extract gem heroku jira jruby node npm osx python rails rails3 rake rbenv redis-cli ruby ssh-agent sublime textmate vagrant)
source $ZSH/oh-my-zsh.sh
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH="$HOME/.rbenv/bin:$PATH"