Skip to content

Instantly share code, notes, and snippets.

View hdemon's full-sized avatar

Masami Yonehara hdemon

  • LINE
  • Fukuoka, Japan
  • 03:01 (UTC +09:00)
View GitHub Profile
select table_name, engine, table_rows as tbl_rows, avg_row_length as rlen, floor((data_length+index_length)/1024/1024) as allMB, floor((data_length)/1024/1024) as dMB, floor((index_length)/1024/1024) as iMB from information_schema.tables where table_schema=database() order by (data_length+index_length) desc;
git status | grep deleted: | awk '{print $3}' | xargs git rm
# ただしカラースキーム付きの場合は保証しない.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y \
zsh \
git \
wget \
curl \
@hdemon
hdemon / config.fish
Created February 19, 2014 00:38
config.fish
## path
#
# PATH $PATH:/sw/bin:/sw/sbin
# PATH $PATH:$HOME/bin:/sbin:/usr/sbin:~/.nave
# PATH $PATH:/opt/local/bin:/opt/local/sbin/
# PATH $PATH:/usr/local/share/npm/bin
# PATH $HOME/.nodebrew/current/bin:$PATH
# MANPATH /opt/local/man:$MANPATH
## aliases
de    単語の最後まで削除
db    (カーソルが単語の先頭にあるとき)前の単語を削除
d0    カーソルの前から行の先頭までを削除
dd    一行削除
dj    カーソルがある行とその下の行を削除
dk    カーソルがある行とその上の行を削除
daw    単語を削除
diw    単語を削除(単語だけ。スペースは削除しない)
dib    ()内を削除
dip    パラグラフ(かたまり)削除
;; User behaviors
;; -----------------------------
;; Behaviors are stored as a set of diffs that are merged together
;; to create the final set of functionality that makes up Light Table. You can
;; modify these diffs to either add or subtract functionality.
;;
;; Behaviors are added to tags, objects with those tags then automatically gain
;; whatever logic the behavior imparts. To see a list of user-level behaviors,
;; start typing a word related to the functionality you want in between the square
;; brackets (e.g. "theme").
core@vxxx-xxx-xxx-xxx ~ $ sudo coreos-install -d /dev/vda
Downloading and verifying coreos_production_image.bin.bz2...
gpg: Signature made Mon Feb 17 23:01:34 2014 UTC using RSA key ID xxxxxxxx
gpg: key xxxxxxxx marked as ultimately trusted
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: Good signature from "CoreOS Buildbot (Offical Builds) <buildbot@coreos.com>"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
#
# Generated by Chef for www4177uo
#
# Local modifications will be overwritten.
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.