Skip to content

Instantly share code, notes, and snippets.

View ngsw's full-sized avatar
💭
:-):-):-)

ngsw ngsw

💭
:-):-):-)
View GitHub Profile
@ngsw
ngsw / shell
Created August 28, 2011 04:14
bash Frequency count
command | sort | uniq -c | sort -nr
@ngsw
ngsw / RTfuckingM.tmpl
Created September 23, 2011 06:01
ngsw Remember The Milk Task Template
P: 3
D: today
R:
E:
S: onmac ,real
O: Home
U:
---
Note Body
@ngsw
ngsw / vundle_easy-setup.sh
Created November 28, 2011 18:25
vundle_easy-setup
cd $HOME
mkdir .vim
git init
git submodule add git://github.com/gmarik/vundle.git .vim/vundle.git
if [ ! -f $HOME/.vimrc ] ; then
cat >> $HOME/.vimrc <<"VIMRC.eof"
" Initialize
"Vundle Initialize
set rtp+=~/.vim/vundle.git/
call vundle#rc()
@ngsw
ngsw / .config_ver001
Created December 25, 2011 14:30
gentoo menuconfig -> .config
#
# Automatically generated make config: don't edit
# Linux/i386 3.0.6-gentoo Kernel Configuration
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
# CONFIG_X86_64 is not set
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf32-i386"
@ngsw
ngsw / vim.rb
Created January 1, 2012 08:42 — forked from uasi/vim.rb
Vim formula for Homebrew (rubyinterp)
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
head 'https://vim.googlecode.com/hg/'
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.294'
def features; %w(tiny small normal big huge) end
@ngsw
ngsw / bundle_ruby_rails
Created January 29, 2012 18:01
Scientific Linux 6.1 yum_setup & rbenv
yum install readline-devel.x86_64 libyaml.x86_64 tree nkf
yum install mysql mysql-server git
yum install readline-devel.x86_64 libyaml.x86_64 openssl-devel.x86_64 mysql-devel.x86_64
yum install gcc make zlib-devel gcc-c++
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.bashrc
echo 'eval "$(rbenv init -)"' >> $HOME/.bashrc
echo "source ~/.rbenv/completions/rbenv.bash" >> $HOME/.bashrc
cd $HOME
--- nginx.yum-org 2011-12-16 00:22:28.000000000 +0900
+++ nginx 2012-02-01 04:10:39.447206296 +0900
@@ -6,7 +6,7 @@
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
-# pidfile: /var/run/nginx.pid
+# pidfile: /var/run/nginx/nginx.pid
# description: nginx is a HTTP and reverse proxy server
#
#!/bin/sh
#
# nginx Startup script for nginx
#
# chkconfig: - 85 15
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
# pidfile: /var/run/nginx/nginx.pid
# description: nginx is a HTTP and reverse proxy server
#https://gist.github.com/1712762
./configure \
--prefix=/usr/local/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/subsys/nginx \
--user=nginx \
--group=nginx \
--with-http_stub_status_module \
# yum install nginx
# cp -a /etc/init.d/nginx /bkup/path/to/
# yum remove nginx
# cp -a /bkup/path/to/nginx{,.yum-org}
# vim /bkup/path/to/nginx