Skip to content

Instantly share code, notes, and snippets.

View sarumont's full-sized avatar
:shipit:

Richard Kolkovich sarumont

:shipit:
View GitHub Profile
@sarumont
sarumont / 90-display.rules
Created September 14, 2012 20:34
xrandr fun
ACTION=="change", SUBSYSTEM=="drm", ENV{HOTPLUG}=="1", RUN+="/bin/su -l sarumont -c /home/sarumont/.common/base/bin/display_switch"
int len = s.length();
byte[] b = new byte[len];
s.getBytes( 0, len, b, 0 );
write( b );
@sarumont
sarumont / gist:1317645
Created October 26, 2011 20:06
Javadocs
# Open javadocs.org to the given item
jd() {
links http://javadocs.org/$1
}
public static void main( String[] args ) throws Exception {
Map<String,String> sm = new HashMap(3);
//barf1( sm ); // compile-time error
barf2( sm );
barf3( sm );
for ( String s : sm.keySet()) {
System.out.println( "key: "+s+" "+s.getClass());
}
}
@sarumont
sarumont / vimrc
Created May 19, 2011 17:06
Where is my vim cursor?!
:hi CursorLine cterm=none ctermbg=243
:map <silent> <leader>l :set cursorline<cr>:sleep 250m<cr>:set nocursorline<cr>
:set nocursorline
:let NERDTreeHighlightCursorline=0