Skip to content

Instantly share code, notes, and snippets.

@jobscale
jobscale / gist:accfbce8f6c565e089f8d9f85b330774
Created December 18, 2019 22:56 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
mkcd() {
mkdir $1 && cd $1
}
phpstorm() {
nohup $(which phpstorm | tail -1) $@ >& /dev/null &
}
git() {
if [[ $@ == "branch -a" ]]
if [ "$(which sudo 2>/dev/null)" != "" ]
then
alias sudo='sudo -E'
else
alias sudo=''
fi
alias grep='grep --color=auto'
alias ul=less_with_unbuffer
alias netstat='netstat -anptu'
alias rsync='rsync -tlrhv --delete'
# prefixキーをC-qに変更する
set -g prefix C-q
# C-bのキーバインドを解除する
unbind C-b
# C-q*2でtmux内のプログラムにC-qを送る
bind C-q send-prefix
# キーストロークのディレイを減らす
set -sg escape-time 1
# 設定ファイルをリロードする
if &encoding !=# 'utf-8'
set encoding=japan
set fileencoding=japan
endif
if has('iconv')
let s:enc_euc = 'euc-jp'
let s:enc_jis = 'iso-2022-jp'
if iconv("\x87\x64\x87\x6a", 'cp932', 'eucjp-ms') ==# "\xad\xc5\xad\xcb"
let s:enc_euc = 'eucjp-ms'
@jobscale
jobscale / .vimrc
Last active October 11, 2015 12:39
" Common -------------------------------
set nocompatible " vim
set background=dark " 背景色の傾向(カラースキームがそれに併せて色の明暗を変えてくれる)
" 色
hi Normal ctermfg=LightGray ctermbg=DarkGray " 通常
hi NonText ctermfg=DarkBlue " EOF以降の~など
hi Comment cterm=Italic ctermfg=LightGreen " コメント
hi Statement ctermfg=Magenta " 命令、分岐
hi Identifier ctermfg=Green " 関数、識別子