Skip to content

Instantly share code, notes, and snippets.

View SethMilliken's full-sized avatar

Seth Milliken SethMilliken

View GitHub Profile
@SethMilliken
SethMilliken / .bashrc
Created May 12, 2011 00:05
.bashrc with vcs
# bash shell initilization {{{
#
# files involved in bash initilization
#
# file bash? sh? login? !login? inter? !inter?
# --------------------------------------------------------------------------------
# /etc/profile o o o o o o
# /etc/bashrc o x o x o o
# .profile o o o o o o
# .bash_profile o x o o o x
@SethMilliken
SethMilliken / .pentadactylrc
Created September 13, 2011 23:52
araxia .pentadactylrc
"2.1 (created: 2009/05/21 13:13:06)
silent colorscheme araxia
set activate=downloads,help,tabopen,homepage,extoptions,bookmarks,addons
" set activate-=paste,diverted,links
set editor="~/bin/vimperator +<line> <file>"
set guioptions=BMNs
set hinttimeout=500
set incfind
set hlfind
@SethMilliken
SethMilliken / git-world.rb
Created September 15, 2011 04:51
git command to apply same command to multiple work trees
#!/usr/bin/env ruby
require 'open3'
include Open3
# TODO: use colors in output
def gitworld(command)
home = ENV["HOME"]
paths = [ \
"", \
testin
" Tab-page newly created with <D-t> shouldn't be in insert mode
" just because we happen to be in it on invocation.
if has("gui_macvim")
inoreme 10.295 &File.New\ Tab <Esc>:tabnew<CR>
endif
function! TestFunction(option)
exec "let original = &" . a:option
exec "set " . a:option . "&"
exec "let default = &" . a:option
exec "set " . a:option . "=" . original
if original == default
echo "heck yeah!"
endif
endfunction
command! -nargs=* Checkin :call Checkin(<q-args>)
function! Checkin(...) " {{{
let message = a:000[0]
let g:last_commit_message = message
if CheckinCheckup()
call Herenow()
if len(message) > 0
exe ":Gcommit % -m\"" . message . "\""
else
exe ":Gcommit -v %" | wincmd T
@SethMilliken
SethMilliken / gist:3758987
Created September 20, 2012 23:42
trinidad 1.4.3 issues
Starting service Tomcat
Starting Servlet Engine: Apache Tomcat/7.0.30
Error configuring application listener of class com.janrain.workerbee.WorkerbeeInvalidator
java.lang.ClassNotFoundException: com.janrain.workerbee.WorkerbeeInvalidator
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
@SethMilliken
SethMilliken / slate config
Created January 28, 2013 18:55
My current `.slate` configuration. Some of this is already outdated. For example, slate recently learned how to use regexes for `TITLE_ORDER`.
# Configs
config checkDefaultsOnLoad false
config orderScreensLeftToRight true
config defaultToCurrentScreen true
config focusCheckWidthMax 3000
config focusPreferSameApp true
config gridBackgroundColor 0;0;0;0.5
config gridCellBackgroundColor 0;128;255;0.9
config gridCellRoundedCornerSize 3
config gridCellSelectedColor 255;200;100;1.0
tell application "System Preferences"
reveal pane id "com.apple.preference.network"
tell application "System Events" to tell process "System Preferences"
tell window 1
select (row 1 of table 1 of scroll area 1 whose value of static text 1 contains "Bluetooth PAN")
click button 1 of group 1
end tell
end tell
end tell