This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/vundle.vim' | |
" A Buffer/file/mru/tag explorer with fuzzy text matching | |
Plugin 'kien/ctrlp.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015-02-06 21:50:04,232 ERROR GlobalExceptionMapper PATCH /api/process exception: | |
java.lang.NullPointerException | |
at com.mapr.installer.model.Process.addNewGroup(Process.java:462) | |
at com.mapr.installer.model.Process.provision(Process.java:384) | |
at com.mapr.installer.model.Process.patch(Process.java:343) | |
at com.mapr.installer.controller.ProcessController.patch(ProcessController.java:55) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:483) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open('/my/log.log', 'w') as f: | |
f.write("Hello World") | |
f = open('/my/log', 'w') | |
f.write("1") | |
f.write("2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# End of file | |
foo - renice -10 | |
bar - memlock unlimited | |
foo - core unlimited | |
bar - nofile 32768 | |
foo - nproc unlimited | |
bar - nice -10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
"rand" | |
"runtime" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
"rand" | |
"sync" | |
"runtime" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go func(ws *websocket.Conn, ch chan bool) { | |
var prev []string | |
var vals []string | |
for ;; { | |
f,e := os.Open("/proc/stat") | |
if e != nil { | |
return | |
} | |
defer f.Close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simplejson as json | |
from encoder.MetadataEncoder import MetadataJSONEncoder | |
def main(): | |
r = Raaga() | |
ids = r.get_movie_ids() | |
m = [] | |
for i in xrange(0, len(ids)): | |
try: | |
m.append(r.get_movie_info(ids[i])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prudhvi@SUN ~ λ ➔ /sbin/ifconfig | grep -E '^\S' | awk '{ print $1, $NF }' | |
br0 00:00:00:00:00:01 | |
eth1 3e:f2:8c:56:63:f2 | |
eth2 76:84:89:59:78:42 | |
eth3 3a:91:d0:3c:f6:04 | |
eth4 e6:0f:6c:0d:db:e2 | |
lo Loopback | |
tap0 00:00:00:00:00:01 | |
tap1 00:00:00:00:00:02 | |
tun0 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g status-bg black | |
set -g status-fg white | |
set -g status-utf8 on | |
set -g status-left '#[fg=green] @#H#[default]' | |
set-window-option -g window-status-current-bg red | |
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg) #[fg=green]%H:%M#[default]' | |
bind | split-window -h | |
bind - split-window -v | |
bind h select-pane -L | |
bind j select-pane -D |