Skip to content

Instantly share code, notes, and snippets.

{:timestamp=>"2014-05-08T04:49:21.066000+0000", :message=>"config LogStash::Outputs::ElasticSearch/@action = \"index\"", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-05-08T04:49:28.311000+0000", :message=>"Starting lumberjack input listener", :address=>"0.0.0.0:12345", :level=>:info, :file=>"logstash/inputs/lumberjack.rb", :line=>"38"}
{:timestamp=>"2014-05-08T04:49:28.721000+0000", :message=>"Pipeline started", :level=>:info, :file=>"logstash/pipeline.rb", :line=>"78"}
{:timestamp=>"2014-05-08T04:49:35.001000+0000", :message=>"New Elasticsearch output", :cluster=>nil, :host=>"localhost", :port=>"9201", :embedded=>false, :protocol=>"http", :level=>:info, :file=>"logstash/outputs/elasticsearch.rb", :line=>"240"}
{:timestamp=>"2014-05-08T04:49:35.013000+0000", :message=>"Automatic template management enabled", :manage_template=>"true", :level=>:info, :file=>"logstash/outputs/elasticsearch.rb", :line=>"259"}
{:timestamp=>"2014-05-08T04:49:35.015000+0000", :message=>"Using m
* 62a233a (HEAD, heroku/master, master)
* 79e11da
| * 40d2177 (origin/av/78576752, av/78576752)
|/
* c448b7f (origin/master)
$ git pull --rebase origin master
From github.com:...
* branch master -> FETCH_HEAD
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = true
$ GIT_TRACE=1 git pull --rebase origin master
trace: exec: 'git-pull' '--rebase' 'origin' 'master'
trace: run_command: 'git-pull' '--rebase' 'origin' 'master'
trace: built-in: git 'rev-parse' '--git-dir'
trace: built-in: git 'rev-parse' '--is-bare-repository'
trace: built-in: git 'rev-parse' '--show-toplevel'
trace: built-in: git 'ls-files' '-u'
trace: built-in: git 'symbolic-ref' '-q' 'HEAD'
trace: built-in: git 'config' 'pull.ff'
trace: built-in: git 'rev-parse' '-q' '--verify' 'HEAD'
@mschulkind
mschulkind / gist:942829
Created April 26, 2011 18:42
ERB output
defaults: &defaults
host: localhost
persist_in_safe_mode: true
# slaves:
# - host: slave1.local
# port: 27018
# - host: slave2.local
# port: 27019
development:
Note that there are some tricks to make special keys work and escape CSI bytes
in the text. The |:map| command also does this, thus you must avoid that it
is done twice. This does not work: >
:imap <expr> <F3> "<Char-0x611B>"
Because the <Char- sequence is escaped for being a |:imap| argument and then
again for using <expr>. This does work: >
:imap <expr> <F3> "\u611B"
Using 0x80 as a single byte before other text does not work, it will be seen
as a special key.
function! ScreenMovement(movement)
if exists("b:physical_line_mode") && b:physical_line_mode && &wrap
return "g" . a:movement
else
return a:movement
endif
endfunction
function! InsertModeScreenMovement(movement)
if &filetype != "fuf"
i <C-R> * "\<C-G>u\<C-R>".nr2char(getchar())."\<C-G>u"
i <C-R><Tab> * <C-R>=ShowAvailableSnips()<CR>
@mschulkind
mschulkind / gist:1143324
Created August 13, 2011 00:27
async image loading
// imageView is a UIImageView
NSURL* imageNSURL = [NSURL URLWithString:value];
dispatch_async(
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
^{
NSData* imageData = [[NSData alloc] initWithContentsOfURL:imageNSURL];
dispatch_async(
dispatch_get_main_queue(),
^{
[DEBUG] 2011-08-16 19:13:51.691 foo-app[65967:207] Exception - sourceID: 98712768
Source:
shouldRotateToOrientation(0);
Offending line:
1: shouldRotateToOrientation(0);
Call stack:
(null)
(null)