Skip to content

Instantly share code, notes, and snippets.

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

ngsw ngsw

💭
:-):-):-)
View GitHub Profile
@ngsw
ngsw / make_test.log
Created September 14, 2021 13:05
cd /Users/ngsw/REPO/list; make test > make_test.log 2>&1
cd linter; \
./pslint_selftest.sh; \
./pslint.py ../public_suffix_list.dat;
-n test_NFKC:
OK
-n test_allowedchars:
OK
-n test_dots:
OK
-n test_duplicate:
@ngsw
ngsw / whitelist.md
Last active January 23, 2018 04:15 — forked from okohs/whitelist.md
20180122_定時前に帰宅できた企業

はじめに

書き方

該当する各社の対応欄に企業名を書いてください。備考があれば適宜カッコ書きしてください。

目的

  • 定時前に帰宅させてくれるホワイトな会社のりすとを気軽に作りたい
  • 定時前に帰宅させてくれるホワイトな会社がホワイトアピールできる場があれば良いな

$ 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)
@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)
@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 / 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 / .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 / .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 / .bash_profile
Created March 19, 2014 06:56
NeoBundleInstall テスト用
source ~/.bashrc
@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