Skip to content

Instantly share code, notes, and snippets.

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

ngsw ngsw

💭
:-):-):-)
View GitHub Profile
@ngsw
ngsw / gist:9602179
Created March 17, 2014 16:04
Scratchpad_font-size
.CodeMirror { font-size: 20px !important; }
@ngsw
ngsw / .zshrc
Created March 19, 2014 06:55
NeoBundleInstall テスト用
# Created by newuser for 4.3.10
@ngsw
ngsw / .zshenv
Created March 19, 2014 06:55
NeoBundleInstall テスト用
if [ ! $TERM = "screen" ]; then
exec /usr/bin/screen -S main -xRR
fi
/usr/bin/screen -ls
@ngsw
ngsw / .bash_profile
Created March 19, 2014 06:56
NeoBundleInstall テスト用
source ~/.bashrc
@ngsw
ngsw / .bashrc
Created March 19, 2014 06:56
NeoBundleInstall テスト用
if [ ! $TERM = "screen" ]; then
exec /usr/bin/screen -S main -xRR
fi
/usr/bin/screen -ls
@ngsw
ngsw / .vimrc
Created March 19, 2014 06:56
NeoBundleInstall テスト用
if has('vim_starting')
set nocompatible " Be iMproved
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
" Required:
call neobundle#rc(expand('~/.vim/bundle/'))
@ngsw
ngsw / gist:9636742
Last active August 29, 2015 13:57
NeoBundleInstall テスト用
mkdir -p ~/.vim/bundle
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
echo -e "$TERM\n$SHELL"
vim # NeoBundleInstall が走る
export TERM=putty
rm -rf ~/.vim/bundle
mkdir -p ~/.vim/bundle
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
echo -e "$TERM\n$SHELL"
@ngsw
ngsw / gist:8bcd49432de6339dd721
Last active August 29, 2015 14:05
"A random password generator" (via http://www.commandlinefu.com)
# http://www.commandlinefu.com/commands/view/13641/a-random-password-generator#comment
tr -dc '\x15-\x7e' < /dev/urandom| head -c 16 | paste
#
cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32
# 便利:)
@ngsw
ngsw / connection.rb
Created September 3, 2014 18:54
berkshelf-api-client-1.2.0/lib/berkshelf/api_client/connection.rb
#(snip)
def initialize(url, options = {})
options = options.reverse_merge(retries: 3, retry_interval: 0.5,
open_timeout: 3, timeout: 30)
#(snip)
$ berks install
Resolving cookbook dependencies...
Fetching cookbook index from https://supermarket.getchef.com...
Error retrieving universe from source: https://supermarket.getchef.com
* [Berkshelf::APIClient::TimeoutError] Unable to connect to: https://supermarket.getchef.com
Required artifacts do not exist at the desired version
Missing artifacts: nginx
Unable to find a solution for demands: nginx (~> 2.7.4)