Skip to content

Instantly share code, notes, and snippets.

View teshi04's full-sized avatar
🐟
sakana

Yui Matsuura teshi04

🐟
sakana
View GitHub Profile
@teshi04
teshi04 / gist:7356ca2d43738c44a639
Last active August 29, 2015 14:03
Androidアプリは Java7 で書きましょう
android {
compileOptions {
encoding = "UTF-8"
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
@teshi04
teshi04 / adb-screencap.sh
Created July 4, 2014 05:30
adbでスクリーンショットを撮るやつ
#!/bin/sh
DATE=`date '+%y%m%d%H%M%S'`
adb shell screencap -p /sdcard/screen-${DATE}.png
adb pull /sdcard/screen-${DATE}.png
adb shell rm /sdcard/screen-${DATE}.png
# Description:
# Operate the air conditioning of office.
#
# Commands:
# irkit aircon on - Switch on the air conditioning in the office
# irkit aircon off - Switch off the air conditioning in the office
module.exports = (robot) ->
IRKIT_API_MESSAGES = "https://api.getirkit.com/1/messages"
CLIENT_KEY = "client_key"
git checkout -
一つ前のブランチに移動
# ログイン時にtmuxを自動起動
if [ -z "$TMUX" -a -z "$STY" ]; then
if type tmuxx >/dev/null 2>&1; then
tmuxx
elif type tmux >/dev/null 2>&1; then
if tmux has-session && tmux list-sessions | /usr/bin/grep -qE '.*]$'; then
tmux attach && echo "tmux attached session "
else
tmux new-session && echo "tmux created new session"
fi
# Prefix
set-option -g prefix C-q
# デフォルトのPrefix(C-b)を解除
unbind C-b
# www1.hoge.com→www1のみ表示。
set-option -g set-titles-string "@#(hostname | sed 's/\\\\..*//')"
set-option -g set-titles on
set-option -g status on
@teshi04
teshi04 / .zshrc
Last active August 29, 2015 13:57
alias ll='ls -l'
alias la='ls -la'
alias vi='vim'
alias rm='rm -i'
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gl='git log --color'
alias gd='git diff --color'
@teshi04
teshi04 / gist:8155299
Last active January 1, 2016 13:59
Justaway要望
Justawayマルチアカウント対応おねがいします(厚かましい)
30億のデバイスで走るSyobon ‏@SyobonTech 10時間
pic.twitter [dot] com な画像を受信しようとしても失敗しましたってでる? Back Keyでビューア閉じてもう一度タップすると開けたり開けなかったりする? #justaway
30億のデバイスで走るSyobon ‏@SyobonTech 18分
地下鉄に乗った状態(時々圏外になる環境)でJustaway使って見た際のバッテリの減りは1時間で15%ほど Twiccaとほぼ変わらないくらい Twiccaは複数回Reload 端末はNexus5、LTE、HDSPハンドオーバー複数回 #justaway
https://twitter.com/SyobonTech/status/416941308872105984
30億のデバイスで走るSyobon ‏@SyobonTech 21分
@teshi04
teshi04 / gist:7892158
Last active December 30, 2015 22:09
bareリポ作るときのメモ
cd repos
mkdir shintyoku-bot.git
cd shintyoku-bot.git
git init --bare
cp hooks/post-receive.sample hooks/post-receive
echo (cd /home/teshi/public/shintyoku-bot; git --git-dir=.git pull) >> hooks/post-receive
cd ~/public
git clone ../repos/shintyoku-bot.git
@teshi04
teshi04 / .vimrc
Created August 1, 2013 16:14
途中
" 行番号
set number
" 検索履歴を20残す
set history=20
" インクリメントサーチを使用
set incsearch
" 検索語にマッチした単語をハイライト
set hlsearch
" 対になる括弧を強調
set showmatch