Skip to content

Instantly share code, notes, and snippets.

View sankitch's full-sized avatar
🏠

Kiyoshi Sakata sankitch

🏠
  • Tokyo, Japan
  • 11:11 (UTC +09:00)
  • X @sankitch
View GitHub Profile
;; -*- Mode: Emacs-Lisp -*-
;;
;; DDSKK
;;____________________________________________________________
(setq skk-japanese-message-and-error t);; メッセージを日本語で通知する
(setq skk-show-japanese-menu t);; メニューを英語で表示する
(setq skk-show-annotation t);; 変換時に注釈 (annotation) を表示する
;;isearch-mode に入った際に自動的に skk-isearch を起動
(add-hook 'isearch-mode-hook 'skk-isearch-mode-setup)
@sankitch
sankitch / JPG2jpg
Last active December 17, 2015 17:48
JPGをjpgに
for img in *.JPG; do mv $img ${img%.JPG}.jpg ; done
@sankitch
sankitch / composer.json
Last active December 16, 2015 22:29
Install cakephp with composer.
{
"minimum-stability": "dev",
"config": {
"vendor-dir": "Vendor"
},
"repositories" : [
{
"type": "package",
"package": {
"name" : "cakephp/cakephp",
#!/bin/sh
cd /path/to/dir
git clone git://github.com/redmine/redmine.git
cd redmine
git checkout -b production
vim .gitignore # *1
vim Gemfile # *2
vim config/application.rb # *3
vim config/environment.rb # *4
bundle install --path=.bundle --without production:mysql:postgresql
#!/bin/sh
function find-and-open-by-percol() {
SELECT_DIR=$(find $1 -type f | percol --match-method migemo)
if [ $? -eq 0 ]
then
cygstart $SELECT_DIR
fi
}
#!/bin/sh
function find-and-cd-by-percol() {
SELECT_DIR=$(find $1 -type d | percol --match-method migemo)
cd $SELECT_DIR
}
@sankitch
sankitch / configure.log
Created October 31, 2012 16:16
libffi install log on cygwin
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
continue configure in default builddir "./i686-pc-cygwin"
....exec /bin/sh .././configure "--srcdir=.." "--enable-builddir=i686-pc-cygwin" "cygwin"
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for gsed... sed
checking for a BSD-compatible install... /bin/install -c
#!/bin/sh
git submodule foreach 'git pull origin master'
git submodule update
@sankitch
sankitch / change-directory-gisty-by-percol.zsh
Created October 30, 2012 18:45
percolでGISTY_DIRの絞り込み&cd
function change-directory-gisty-by-percol() {
SELECTED_GIST=$(gisty list | awk /:/ | percol --match-method migemo | awk -F ':' '{ print $1 }')
cd $GISTY_DIR/$SELECTED_GIST
}
alias g='change-directory-gisty-by-percol'
@sankitch
sankitch / search-document-by-percol.zsh
Created October 30, 2012 18:12
ドキュメントを絞り込んで開く
function search-document-by-percol() {
DOCUMENT_DIR="$HOME/Dropbox/Documents/ $HOME/Desktop/ $HOME/Google\ ドライブ"
SELECTED_FILE=$(echo $DOCUMENT_DIR | xargs find | \
grep -E "\.(xlsx|xls|pptx|ppt|docx|doc|pdf|txt|odp|odt|ods|xmind|mm|glink|gsheet)$" | percol --match-method migemo)
if [ $? -eq 0 ]; then
cygstart $SELECTED_FILE
fi
}
alias sd='search-document-by-percol'