This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -lt 2 ]; then | |
echo "give HOST(~/.ssh/config), GROUP_ID(sg-xxxx) [, PROFILE(~/.aws/config)] as arguments" 1>&2 | |
echo "$ ssh_ec2 Hostname sg-groupid default" 1>&2 | |
exit 1 | |
fi | |
HOST=$1 | |
GROUP_ID=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# ====================CONFIG THIS =============================== # | |
BACKGROUND_COLOR="#262626" # Background Color | |
FOREGROUND_COLOR="#94a3a5" # Text | |
COLOR_01="#282a2e" # HOST | |
COLOR_03="#8C9440" # COMMAND | |
COLOR_04="#de935f" # COMMAND_COLOR2 | |
COLOR_10="#cc6666" # COMMAND_ERROR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"検索をファイルの先頭へ循環しない | |
set nowrapscan | |
"大文字小文字の区別なし | |
set ignorecase | |
"検索時に大文字を含んでいたら大/小を区別 | |
set smartcase | |
"検索対象をハイライト |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChangeCollationOption < ActiveRecord::Migration | |
def up | |
execute "ALTER TABLE access_counters DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" | |
execute "ALTER TABLE access_counters CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;" | |
execute "ALTER TABLE access_tokens DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" | |
execute "ALTER TABLE access_tokens CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;" | |
execute "ALTER TABLE activities DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" | |
execute "ALTER TABLE activities CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;" | |
execute "ALTER TABLE admin_featured_users DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" | |
execute "ALTER TABLE admin_featured_users CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var w=(document.all)?document.selection.createRange().text:(window.getSelection()+'');if(!w)w=prompt('Imagictで検索したいワードを入力してください。','');if(w!=null)window.open('http://imagict.com/words/search?dictionary=en_ja&word='+encodeURIComponent(w));})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fcitxの設定 > 全体の設定 > ホットキー > 拡張オプション表示 > 入力メソッドをオフに |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"http://vimblog.hatenablog.com/entry/vimrc_introduction | |
set number " 行番号を表示する | |
set cursorline " カーソル行の背景色を変える | |
set cursorcolumn " カーソル位置のカラムの背景色を変える | |
set laststatus=2 " ステータス行を常に表示 | |
set cmdheight=1 " メッセージ表示欄を2行確保 | |
set showmatch " 対応する括弧を強調表示 | |
set helpheight=998 " ヘルプを画面いっぱいに開く | |
set list " 不可視文字を表示 | |
set listchars=tab:▸\ ,eol:↲,extends:❯,precedes:❮ " 不可視文字の表示記号指定 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias be='bundle exec' | |
alias r='bundle exec spring rails' | |
alias ra='bundle exec spring rake' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
date>/home/iberianpig/powersaved.txt | |
sleep 10 | |
# Reduce power for SATA link power management | |
for i in 0 1 2 3 4 5 ; do | |
echo min_power>/sys/class/scsi_host/host${i}/link_power_management_policy | |
done | |
# Disable the NMI watchdog | |
echo 0 > /proc/sys/kernel/watchdog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request,ospf = 'Package Control.sublime-package'ipp = sublime.installed_packages_path()urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler( {"http": "http://[user]:[password]@[proxy_IP]:[proxy_port]"} ) ))open(os.path.join(ipp, pf), 'wb').write( urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20') ).read()) |