Skip to content

Instantly share code, notes, and snippets.

View hdemon's full-sized avatar

Masami Yonehara hdemon

  • LINE
  • Fukuoka, Japan
  • 09:20 (UTC +09:00)
View GitHub Profile
;; 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").
de    単語の最後まで削除
db    (カーソルが単語の先頭にあるとき)前の単語を削除
d0    カーソルの前から行の先頭までを削除
dd    一行削除
dj    カーソルがある行とその下の行を削除
dk    カーソルがある行とその上の行を削除
daw    単語を削除
diw    単語を削除(単語だけ。スペースは削除しない)
dib    ()内を削除
dip    パラグラフ(かたまり)削除
@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
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 \
git status | grep deleted: | awk '{print $3}' | xargs git rm
# ただしカラースキーム付きの場合は保証しない.
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;
FROM ubuntu
MAINTAINER Masami Yonehara
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y \
sudo \
man-db \
@hdemon
hdemon / fabfile.py
Last active January 4, 2016 06:59
docker setting
from fabric.api import *
from fabric.contrib import *
import datetime
import os
def setup_docker():
update_apt_get()
install_basic_packages()
@hdemon
hdemon / Dockerfile
Created January 23, 2014 13:58 — forked from benschw/Dockerfile
FROM ubuntu
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install mysql-client mysql-server