Skip to content

Instantly share code, notes, and snippets.

View jetpks's full-sized avatar

eric jacobs jetpks

View GitHub Profile
@jetpks
jetpks / gist:1765481
Created February 8, 2012 04:39
I'M A BUS
C:\Users\eric\Documents\node_service>.\nssm.exe install thebus "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\eric\Documents\static\server.js" "80" "C:\Users\eric\Documents\public\"
Service "thebus" installed successfully!
C:\Users\eric\Documents\node_service>net start thebus
The thebus service is starting.
The thebus service was started successfully.
C:\Users\eric\Documents\node_service>curl localhost
@jetpks
jetpks / fixlion.sh
Created January 27, 2012 17:30
Tweaks for OS X Lion.
#!/bin/bash
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Enable the 2D Dock
#defaults write com.apple.dock no-glass -bool true
# Disable menu bar transparency
#defaults write -g AppleEnableMenuBarTransparency -bool false
@jetpks
jetpks / .vimrc
Created December 22, 2011 18:27
My vimrc
call pathogen#infect()
syntax on
set autoindent
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set ruler
set hlsearch
set incsearch
@jetpks
jetpks / ss23
Created November 30, 2011 17:07
ss23
++++++++++++oooooooooooosyyyyyyyhyyshhyyyyyyysssssssosso++++oo+++///////////:::---..`````````..-
+++++++++++++ooooooosssyyosssys+yys+ssyhyssssshysoyyooooooo++oo++++/////////:::--..```` ```.-
+++++++++++++oooossysoo+oosyo++/oy++yyoosoosooosysoysosoo++oosso++o+++/////::::--..```` ```..-
+++++++++++++oosyyyysssosshhso+syso/ydysso+y/os+oyysysoyyysooosyoo+o+o++///::::--..``````````.--
++++++++++++osyyhhhyyysyyyddhsyhdyhyhdhyyoohs/so+syhyhyyyhhyssosso+osoooo+///:::--...``````..---
++++++++++ooshhddhhdddysdyydhhshdddddddhyyyydsyysoyhhhdhsyhhsyyyyssssysoso+/:::::---.......----:
.....````+oohdhhdhhddhyyyhhhhhhyyddddmmdhyyhdmhhhyyhhhddhhhdhyhdhhhyyyyssso+/::::::----------:::
.:ooysdddyhddyddhhyyddyhhhyyyddmmmddhhdmmdddhhhhhhddhhddddddhhyyyyysso+//:::::::::::::::::
..--:+shhyysddddhdddhddddhydddhyhhyhdmmmmmdhhdmmdhhhhhhdhddddddddddddhhyyyyss+//:::::::::::::::/
---:+oshhhysyddhdhhddhddddhhhdddhhhhhddmmmmmdhhmmdddddhdhdhdddddhdddhdhhhyhyyso////:::::::::////
@jetpks
jetpks / vimrc
Created October 26, 2011 21:09
Get vim to remember your cursor position.
" Tell vim to remember certain things when we exit
" '10 : marks will be remembered for up to 10 previously edited files
" "100 : will save up to 100 lines for each register
" :20 : up to 20 lines of command-line history will be remembered
" % : saves and restores the buffer list
" n... : where to save the viminfo files
set viminfo='10,\"100,:20,%,n~/.viminfo
function! ResCur()
if line("'\"") <= line("$")