Skip to content

Instantly share code, notes, and snippets.

@onmsr
onmsr / gist:c4fdc77025924f98c212
Created August 29, 2014 03:09
japanese setting for centos6.5
sudo yum -y groupinstall "Japanese Support"
sudo localedef -f UTF-8 -i ja_JP ja_JP
sudo cp /usr/share/zoneinfo/Japan /etc/localtime
sudo yum -y install man-pages-ja
@onmsr
onmsr / php-setter-getter
Created May 15, 2014 13:04
my emacs snippet file. php setter and getter.
# -*- mode: snippet; require-final-newline: nil -*-
# name: php setter and getter
# key: sg
# expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil))
# --
/**
* $0
*/
protected $${1:id};
@onmsr
onmsr / .zshrc_func.zsh
Last active August 29, 2015 14:00
my minimal zsh setting.
### other setting
# function maketmptodaydir
# make today tmp directory
function maketmptodaydir {
tmp_today=`date '+%Y%m%d'`
tmp_todaydir=~/Desktop/tmp/${tmp_today}
mkdir ${tmp_todaydir}
cd ${tmp_todaydir}
unset tmp_todaydir
@onmsr
onmsr / init.el
Last active February 19, 2017 07:44
my emacs minimal setting.
;;; minimal setting for emacs
;; ----- basic configuration -----
;; 言語を日本語にする
(set-language-environment 'Japanese)
;; 極力UTF-8とする
(prefer-coding-system 'utf-8)
;; 起動時のメッセージを非表示
@onmsr
onmsr / git-push-all-remotes.sh
Created April 24, 2014 16:55
git push all remotes. If you want to use with SourceTree, set custom action this script file.
#! /usr/bin/env sh
for REMOTE in `git remote`; do git push $REMOTE --all; done
@onmsr
onmsr / helm-buffer-map
Last active August 29, 2015 13:58
emacs helm memo
(defvar helm-buffer-map
(let ((map (make-sparse-keymap)))
(set-keymap-parent map helm-map)
(define-key map (kbd "C-c ?") 'helm-buffer-help)
;; No need to have separate command for grep and zgrep
;; as we don't use recursivity for buffers.
;; So use zgrep for both as it is capable to handle non--compressed files.
(define-key map (kbd "M-g s") 'helm-buffer-run-zgrep)
(define-key map (kbd "C-s") 'helm-buffers-run-multi-occur)
(define-key map (kbd "C-c o") 'helm-buffer-switch-other-window)
@onmsr
onmsr / el-get-recipe-options
Created April 4, 2014 22:20
emacs el-get recipe file options. this is a part of el-get/el-get-custom.el file. url : https://github.com/dimitri/el-get/blob/master/el-get-custom.el
:name
The name of the package. It can be different from the name of
the directory where the package is stored (after a `git
clone' for example), in which case a symlink will be created.
:depends
A single package name, or a list of package names, on which