|
Configs, Code, and Screenshots:
Here are some various configurations, screenshots and code tidbits that I've created over the years:
|
( + -- ) vimrc
| VIM, The greatest editor on the planet. |
set smartindent "printable code at 80 columns" set textwidth=80 set tw=80 syntax on "I use vertically split windows 24/7" set splitright set background=dark "insert a line break with CTRL-o without going into insert mode" nmap <C-o> i<CR><Space><Esc>x "VIM has built-in cscope support for quick code searches" if has("cscope") set cscopetag set csto=0 set cscopeverbose nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR> nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR> nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR> nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR> nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR> nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR> nmap <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR> nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR> nmap <C-@>s :scs find s <C-R>=expand("<cword>")<CR><CR> nmap <C-@>g :scs find g <C-R>=expand("<cword>")<CR><CR> nmap <C-@>c :scs find c <C-R>=expand("<cword>")<CR><CR> nmap <C-@>t :scs find t <C-R>=expand("<cword>")<CR><CR> nmap <C-@>e :scs find e <C-R>=expand("<cword>")<CR><CR> nmap <C-@>f :scs find f <C-R>=expand("<cfile>")<CR><CR> nmap <C-@>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR> nmap <C-@>d :scs find d <C-R>=expand("<cword>")<CR><CR> nmap <C-@><C-@>s :vert scs find s <C-R>=expand("<cword>")<CR><CR> nmap <C-@><C-@>g :vert scs find g <C-R>=expand("<cword>")<CR><CR> nmap <C-@><C-@>c :vert scs find c <C-R>=expand("<cword>")<CR><CR> nmap <C-@><C-@>t :vert scs find t <C-R>=expand("<cword>")<CR><CR> nmap <C-@><C-@>e :vert scs find e <C-R>=expand("<cword>")<CR><CR> nmap <C-@><C-@>f :vert scs find f <C-R>=expand("<cfile>")<CR><CR> nmap <C-@><C-@>i :vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR> nmap <C-@><C-@>d :vert scs find d <C-R>=expand("<cword>")<CR><CR> endif
|
( + -- ) bashrc
| Setup for CVS over SSH using public keys, and solves those annoying path problems =) |
# .bashrc if [ -f /etc/bashrc ]; then . /etc/bashrc fi export PATH=:.:$PATH:/sbin/:/usr/sbin:/usr/local/sbin:/usr/local/bin export CVSROOT=osnet1.cs.binghamton.edu:/var/cvs export CVS_RSH=ssh # some bashes dont do this right export PS1="[\[\e[36;1m\]\u@\[\e[32;1m\]\H \W \[\e[0m\]]$ "
|
( + -- ) toprc
| Ever wish the TOP command acted differently? Well, it can! Try this one |
RCfile for "top with windows" # shameless braggin' Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=2.000, Curwin=0 Def fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX winflags=32568, sortindx=10, maxtasks=0 summclr=2, msgsclr=1, headclr=1, taskclr=3 Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX winflags=64825, sortindx=0, maxtasks=0 summclr=6, msgsclr=6, headclr=7, taskclr=6 Mem fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX winflags=64825, sortindx=13, maxtasks=0 summclr=5, msgsclr=5, headclr=4, taskclr=5 Usr fieldscur=ABDECGfhijlopqrstuvyzMKNWX winflags=64825, sortindx=4, maxtasks=0 summclr=3, msgsclr=3, headclr=2, taskclr=3
|
( + -- ) xbindkeysrc
| X Keybindings. I mostly use them to for XMMS so I can avoid the mouse |
#previous "xmms -r&" Alt + x #play "xmms -p&" Alt + c #stop "xmms -s&" Alt + v #forward "xmms -f&" Alt + b #pause "xmms -u&" Alt + z #sound up "aumix -v+1" Alt + Up #sound down "((val=$(aumix -q | grep vol | grep -Eo '[0-9]+' | uniq)-1)); aumix -v$val" Alt + Down
|
( + -- ) lircrc
| Infrared Remote Control For MythTV, Xine, Mplayer, and XMMS |
# ~/.mythtv/lircrc # # MythTV native LIRC config file for # the new grey Hauppauge remote # # Here we have the jump point commands. They only work if you have # defined function keys for these jump points. For me the most # common command is the menu of recordings, so I put that on "videos" # even though that's counter-intuitive begin prog = mythtv button = TV repeat = 3 config = F5 end begin prog = mythtv button = Videos repeat = 3 config = F2 end # Not yet defined begin prog = mythtv button = Music repeat = 3 config = Up end # Given another function for now, I don't use mythgallery begin prog = mythtv button = Pictures repeat = 3 config = F end begin prog = mythtv button = Guide repeat = 3 config = O end # Radio brings up menu begin prog = mythtv button = Go repeat = 3 config = I end begin prog = mythtv button = Radio repeat = 3 config = F4 end begin prog = mythtv button = UP repeat = 3 config = Up end begin prog = mythtv button = DOWN repeat = 3 config = Down end begin prog = mythtv button = LEFT repeat = 3 config = Left end begin prog = mythtv button = RIGHT repeat = 3 config = Right end # Commercial skip forward begin prog = mythtv button = SKIP repeat = 3 config = PgDown end #Commercial skip back begin prog = mythtv button = REPLAY repeat = 3 config = PgUp end # Channel Up begin prog = mythtv button = Channel-UP repeat = 3 config = Up end # Channel Down begin prog = mythtv button = Channel-DOWN repeat = 3 config = Down end # OKSelect begin prog = mythtv button = Ok repeat = 3 config = Space end # Play begin prog = mythtv button = Play repeat = 3 config = Return end # Stop begin prog = mythtv button = Stop repeat = 3 config = Esc end # Escape/Exit/Back begin prog = mythtv button = Back-Exit repeat = 3 config = Esc end # Power Off/Exit begin prog = mythtv button = Power repeat = 3 config = Esc end # Pause begin prog = mythtv button = Pause repeat = 3 config = P end # Mute begin prog = mythtv button = Mute repeat = 3 config = | end # Fast forward begin prog = mythtv button = Rewind repeat = 3 config = < end # Rewind begin prog = mythtv button = Forward repeat = 3 config = > end # Skip forward (10 min default) begin prog = mythtv button = Next repeat = 3 config = End end # Skip backward (10 min default) begin prog = mythtv button = Previous repeat = 3 config = Home end # Record begin prog = mythtv button = Record repeat = 3 config = R end # Display EPG while in live TV, # View selected show while in EPG begin prog = mythtv button = Menu repeat = 3 config = M end # Scroll up begin prog = mythtv button = Volume-UP repeat = 3 config = F11 end # Scroll down begin prog = mythtv button = Volume-DOWN repeat = 3 config = F10 end # Bring up OSD info begin prog = mythtv button = Go repeat = 3 config = I end # Change display aspect ratio begin prog = mythtv button = Prev-Channel repeat = 3 config = H end # change tuners begin prog = mythtv button = hash repeat = 3 config = Y end # Numbers 0-9 begin prog = mythtv button = 0 repeat = 3 config = 0 end begin prog = mythtv button = 1 repeat = 3 config = 1 end begin prog = mythtv button = 2 repeat = 3 config = 2 end begin prog = mythtv button = 3 repeat = 3 config = 3 end begin prog = mythtv button = 4 repeat = 3 config = 4 end begin prog = mythtv button = 5 repeat = 3 config = 5 end begin prog = mythtv button = 6 repeat = 3 config = 6 end begin prog = mythtv button = 7 repeat = 3 config = 7 end begin prog = mythtv button = 8 repeat = 3 config = 8 end begin prog = mythtv button = 9 repeat = 3 config = 9 end # MPlayer lirc setup # Show OSD begin prog = mplayer button = MENU repeat = 3 config = osd end # Pause playback begin prog = mplayer button = PAUSE repeat = 3 config = pause end # Skip ahead a minute if playing # If paused, resume playing begin prog = mplayer button = PLAY repeat = 3 config = seek +1 end begin prog = audacious button = Stop repeat = 3 config = STOP end # Stop playback and exit begin prog = mplayer button = STOP repeat = 3 config = quit end # Mute begin prog = mplayer button = MUTE repeat = 3 config = mute end begin prog = mplayer button = LEFT repeat = 3 config = seek -10 end # Seek back 10 seconds begin prog = mplayer button = Rewind repeat = 3 config = seek -10 end begin prog = mplayer button = RIGHT repeat = 3 config = seek +30 end # Seek forward 30 seconds begin prog = mplayer button = Forward repeat = 3 config = seek +30 end # Quit begin prog = mplayer button = Back-Exit repeat = 3 config = quit end # Seek forward 10 minutes begin prog = mplayer
|