This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# nginx configuration example for CakePHP 2.x | |
# | |
server { | |
listen 80; | |
server_name cakephp2.example; | |
root /var/www/cakephp2/app/webroot; | |
access_log /var/log/nginx/cakephp2.access.log; | |
error_log /var/log/nginx/cakephp2.error.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# nginx configuration example for Symfony2 | |
# | |
server { | |
listen 80; | |
server_name symfony2-example; | |
root /var/www/sf2/web; | |
access_log /var/log/nginx/sf2.access.log; | |
error_log /var/log/nginx/sf2.error.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set disablesites=mail.google.com,reader.livedoor.com,github.com,bitbucket.org,trello.com,www.blogger.com/blogger.g,stackedit.io | |
set enable_vrome_key=<C-z> | |
" set autocomplete_prev=<C-n> | |
" set autocomplete_next=<C-p> | |
set hintkeys=jlkhfsdagwerui | |
set useletters=1 | |
unmap <M-d> | |
unmap <M-f> | |
unmap do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# List tags with commit date. | |
# | |
for tag in $(git tag) | |
do | |
ldate=$(git log -1 --pretty=format:%cd --date=local $tag) | |
date=$(date +"%F %T" -d "$ldate") | |
echo -e "$tag\t$date" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://pear.php.net/go-pear.phar | |
php go-pear.phar | |
pear update-channels | |
pear clear-cache | |
pear upgrade | |
pear config-set auto_discover 1 | |
pear install pear.pdepend.org/PHP_Depend | |
pear install pear.phpmd.org/PHP_PMD | |
pear install pear.phpunit.de/PHPUnit | |
pear install pear.phpunit.de/phpcpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# git-export - Create an unversioned copy of a tree. | |
# | |
# USAGE | |
# git export [<tree-ish>] <path> | |
# | |
# Author: Yuki <paselan@gmail.com> | |
# License: MIT License | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" unicodeescape.vim - Escape/Unescape unicode string. | |
function! UnicodeEscapeString(str) | |
let oldenc = &encoding | |
set encoding=utf-8 | |
let escaped = substitute(a:str, '[^[:alnum:][:blank:][:cntrl:][:graph:]]', '\=printf("\\u%04x", char2nr(submatch(0)))', 'g') | |
let &encoding = oldenc | |
return escaped | |
endfunction |
NewerOlder