Skip to content

Instantly share code, notes, and snippets.

View pharmazone's full-sized avatar

Alexey S. Mirniy pharmazone

  • Kharkov, Urkaine
View GitHub Profile
@pharmazone
pharmazone / .screenrc
Created August 29, 2013 08:43
Screen RC with IP addr
startup_message off
vbell off
defscrollback 512
shell -$SHELL
shelltitle sh
autodetach on
# enable SHIFT-PGUP / SHIFT-PGDOWN scroll
termcapinfo rxvt ti@:te@
@pharmazone
pharmazone / segfault
Last active December 21, 2015 17:49
Couchbase 2.1.1
% cat segfault.txt ~bing/couchdb
test.rb:7: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]
-- Control frame information -----------------------------------------------
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :run
c:0003 p:0069 s:0007 b:0007 l:0005f8 d:000a60 EVAL test.rb:7
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0005f8 d:0005f8 TOP
@pharmazone
pharmazone / common.zsh
Last active December 20, 2015 11:09
common.zsh
# ENV
export EDITOR=vim
export CLICOLOR=1
export LC_CTYPE=utf-8
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# alias
#alias file
require 'rubygems'
require 'bundler'
Bundler.require
require './application'
namespace :assets do
desc 'compile assets'
task :compile => [:compile_js, :compile_css] do
end
#!/bin/bash
# author: Duane Johnson
# email: duane.johnson@gmail.com
# date: 2008 Jun 12
# license: MIT
#
# Based on discussion at http://kerneltrap.org/mailarchive/git/2007/11/12/406496
pushd . >/dev/null