Skip to content

Instantly share code, notes, and snippets.

hello
This file has been truncated, but you can view the full file.
2012-12-21 00:15:13.785 [info] <0.64.0>@riak_core_sysmon_handler:handle_event:85 monitor long_gc <0.63.0> [{name,timer_server},{initial_call,{timer,init,1}},{almost_current_function,{gen_server,loop,6}},{message_queue_len,2}] [{timeout,150},{old_heap_block_size,0},{heap_block_size,233},{mbuf_size,0},{stack_size,19},{old_heap_size,0},{heap_size,22}]
2012-12-21 00:40:05.177 [info] <0.64.0>@riak_core_sysmon_handler:handle_event:85 monitor long_gc <0.27921.126> [{initial_call,{mochiweb_acceptor,init,3}},{almost_current_function,{mochijson2,json_encode_string_unicode,3}},{message_queue_len,0}] [{timeout,102},{old_heap_block_size,0},{heap_block_size,514229},{mbuf_size,0},{stack_size,84},{old_heap_size,0},{heap_size,247227}]
@igorgue
igorgue / gist:4349616
Created December 20, 2012 23:42
Riak search schema for my bucket, it's the default and I always store JSON data.
%% Schema for 'objects'
{
schema,
[
{version, "1.1"},
{n_val, 3},
{default_field, "value"},
{analyzer_factory, {erlang, text_analyzers, whitespace_analyzer_factory}}
if key is None:
obj = bucket.new(
data = data
)
else:
obj = bucket.new(
key,
data = data
)
@igorgue
igorgue / .bash_profile
Created September 5, 2012 06:18
YouTube video aliases
alias happydance="open http://youtube.googleapis.com/v/pAKVJIZHLdo?autoplay=1"
alias fcwm="open http://youtube.googleapis.com/v/r5vMkV2OqvY?autoplay=1"
alias whatsup="open http://youtube.googleapis.com/v/ZZ5LpwO-An4?autoplay=1"
alias dayman="open http://youtube.googleapis.com/v/S_JUlXh7sP8?autoplay=1"
alias peepee="open http://youtube.googleapis.com/v/h9hGc1bc610?autoplay=1"
alias guilekfc="open http://youtube.googleapis.com/v/FXRAsUOblV4?autoplay=1"
#!/usr/bin/env python
import pickle
def pow2(number):
return number * number
if __name__ == '__main__':
# Serializing (you could also save this to a file)
serialized_value = pickle.dumps(pow2)
/*
* Button Object
*/
/*
* 1. Corrects inability to style clickable 'input' types in iOS
* 2. Remove excess padding in IE6/7
* 3. IE6/7 inline-block hack for native block-level elements
*/
# Compiled source
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages
#
"set guifont=Anonymous\ Pro:h16
"set guifont=Menlo:h16
"set guifont=Bitstream\ Vera\ Sans\ Mono:h16
"set guifont=Bitstream\ Vera\ Sans\ Mono\ for\ Powerline:h18
"set background=dark
"colorscheme danger
set nonumber
function PresentationMode()
set background=dark
colorscheme danger
au BufNewFile,BufRead js_templates.html set ft=javascript
if has('python')
" Disabled features
let g:pymode_doc = 0
let g:pymode_rope = 0
let g:pymode_rope_vim_completion = 0