This file contains 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
Section "InputClass" | |
Identifier "evdev touchpad catchall" | |
Driver "synaptics" | |
MatchDevicePath "/dev/input/event*" | |
MatchIsTouchpad "on" | |
Option "Protocol" "event" | |
Option "SHMConfig" "on" | |
###CUSTOMIZE SECTION### | |
Option "GrabEventDevice" "on" | |
Option "FingerLow" "10" # touchpad sensitivity |
This file contains 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:var s=prompt('Please type XXmin (defalt is 25 min)',''); if(!s){s=25*60}else{s=s*60;} var r=s;var bar='';var Rate=30; function displayTimer(){bar='';for(i=Math.floor(s/Rate);i>0;i--){bar+='|';}bar='<font color="green">'+bar.substr(0,Math.floor(r/Rate))+'</font><font color="#c0c0c0">'+bar.substr(Math.floor(r/Rate),s)+'</font>'; document.getElementById('dtimer').innerHTML='TIME: ' + r-- + ' sec'+'<br>'+bar; if(r==0){ alert("Time Up!!"); document.getElementById('dclose').style.display='none'; document.getElementById('dtimer').style.display='none'; } } function delchild(elm){(elm.parentNode||elm.parentElement).removeChild(elm); }window.scroll(0,0); var dup=false; if(document.getElementById('dtimer')){delchild(document.getElementById('dtimer')); delchild(document.getElementById('dclose'));dup=true; }var clk=document.createElement('div'); if(document.all){var vwidth=document.body.clientWidth; }else{var vwidth='100%'; }document.body.insertBefore(clk,document.body.firstChild); clk.setAttribute('id','dtimer |
This file contains 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 uid;var pass;var starbucks_uid_inForm=document.getElementsByName('username').item(0).value;var starbucks_pass_inForm=document.getElementsByName('password').item(0).value;if(!getDateFromLocalStorage(starbucks_uid_inForm,starbucks_pass_inForm))return;auth(uid,pass);function getDateFromLocalStorage(starbucks_uid_inForm,starbucks_pass_inForm){if(starbucks_uid_inForm=='clear'){localStorage.clear();alert('ローカルストレージから認証データをクリアしました');return false;}if(!starbucks_uid_inForm==''&&!starbucks_pass_inForm==''){addFormData2Storage();}if(!localStorage.getItem('uid')&&!localStorage.getItem('pass')){alert('ID/PWを入力した状態でもう一度scriptを実行してください');return false;}uid=localStorage.getItem('uid');pass=localStorage.getItem('pass');return true;}function addFormData2Storage(){localStorage.setItem('uid',starbucks_uid_inForm);localStorage.setItem('pass',starbucks_pass_inForm);alert('ローカルストレージに認証データを登録しました。PW変更時はID欄/PW欄に入力した状態でscriptを実行すると再登録できます。完全にクリアする場合はID欄にclearと入力した状態でscriptを実行してください');}function auth(uid,pass){ |
This file contains 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
[Tips]Windowsでの任意サイズのテストファイル作成 | |
コマンドプロンプトを管理者権限で実行 | |
fsutil file createnew 任意パス\任意ファイル名 任意byte | |
C:\Windows\system32>fsutil file createnew C:\Users\UserName\output_15MB.txt 15360000 | |
ファイル C:\Users\UserName\output_15MB.txt が作成されました | |
This file contains 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()) |
This file contains 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 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 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 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 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));})(); |
OlderNewer