Skip to content

Instantly share code, notes, and snippets.

View tukiyo's full-sized avatar

tukiyo tukiyo

View GitHub Profile
@tukiyo
tukiyo / github-pandoc.css
Last active June 22, 2016 04:46 — forked from tleonardi/github-pandoc.css
regacy qiita's css
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
@tukiyo
tukiyo / file0.txt
Created April 14, 2015 11:01
nexus 7を工場出荷時に戻す ref: http://qiita.com/tukiyo3/items/fcce44cc40fe5d6547fa
sudo apt-get install \
android-tools-fastboot android-tools-adb android-tools-adbd
@tukiyo
tukiyo / 編集終了
Created July 10, 2013 09:36
文言変更依頼を分かりやすく受け取るための技 ref: http://qiita.com/tukiyo@github/items/7f24f472977b2dc198a3
javascript:document.body.contentEditable='false'; document.designMode='off'; void 0;
@tukiyo
tukiyo / file0.py
Created July 9, 2013 06:31
catでテキストファイルを作る ref: http://qiita.com/tukiyo@github/items/5ff17fc98e5cd17a0451
import sys
import time
for num, i in enumerate(range(100)):
sys.stdout.write("\r%d" % num)
sys.stdout.flush()
time.sleep(0.01)
@tukiyo
tukiyo / .bashrcに以下追記してください。
Created July 9, 2013 05:14
watchコマンドに満足できなかったのでwatcherコマンド作った。 ref: http://qiita.com/tukiyo@github/items/c19bfb9205222909a96b
watcher() {
if [ "$#" -lt 1 ];then
echo "usage: watch <command>"
return 1
fi
while true
do
$@
sleep 3
done
#!/system/bin/sh
SHAR_FILE="debian-kit-1-5.shar"
if [ ! -e "$SHAR_FILE" ];then
echo "[ERR1] '$SHAR_FILE' no such file. quit."
exit 1
fi
chmod +x $SHAR_FILE && ./$SHAR_FILE
@tukiyo
tukiyo / エラーと標準出力を捨てる
Created July 6, 2013 23:15
command >& /dev/null でエラーと標準出力を捨てる ref: http://qiita.com/tukiyo@github/items/778534e43ed90e2e1f28
command >& /dev/null
上げるとき
mp3gain -g 9 jihou.mp3
下げるとき
mp3gain -g -9 jihou.mp3
$ php -dxdebug.remote_host=192.168.87.144 a.php
@tukiyo
tukiyo / debootstrapの手順
Created July 2, 2013 01:28
nexus7用極小ubuntuイメージ作った。(cui。ssh,シリアル接続可) ref: http://qiita.com/tukiyo@github/items/7212baca86be159cd6f6
$ sudo apt-get install debootstrap
$ mkdir /newdir
$ sudo -s
> debootstrap raring /newdir http://jp.archive.ubuntu.com/ports/
> cp -p /etc/apt/sources.list etc/apt/
> cp -p /etc/fstab etc/apt/
> cp -p /etc/hosts etc/
> cp -p /etc/init/ttyGS0.conf /etc/init/
> cp -p /etc/network/interfaces etc/network