Skip to content

Instantly share code, notes, and snippets.

@markstinson
markstinson / set-LVDS1-scale
Created February 9, 2013 17:09
script to change x11 scaling to fit on Dell Mini 9 screen
#!/bin/bash
foo=`xrandr | grep LVDS`
lvds=`echo $foo | cut -d' ' -f1`
size=`echo $foo | cut -d' ' -f3`
if [ $1 ]
then
xrandr --output $lvds --mode 1024x600 --scale ${1}x${1}
elif [ $2 ]
Host *
ForwardAgent yes
ProxyCommand ~/bin/ssh-proxy.sh %h %p username@jump-host
ServerAliveInterval 10
ServerAliveCountMax 600
@markstinson
markstinson / server.js
Created June 18, 2012 17:00 — forked from mixonic/server.js
Node.js + Socket.io + Bash. A collaborative terminal for your browser.
//
// This server will start a bash shell and expose it
// over socket.io to a browser. See ./term.html for the
// client side.
//
// You should probably:
//
// npm install socket.io
// curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js
//
@markstinson
markstinson / tm_to_subl.rb
Created June 5, 2012 04:07 — forked from sandboxws/tm_to_subl.rb
Convert TextMate snippets to Sublime Text 2 snippets
require 'nokogiri'
require 'fileutils'
require 'active_support/inflector'
def friendly_filename(filename)
filename.gsub(/[^\w\s_-]+/, '')
.gsub(/(^|\b\s)\s+($|\s?\b)/, '\\1\\2')
.gsub(/\s/, '_')
end