FriendsOfCake/vagrant-chef : https://github.com/FriendsOfCake/vagrant-chef
vagrant ssh
cd /vagrant
composer -sdev create-project friendsofcake/app-template app
source 'https://supermarket.getchef.com' | |
cookbook 'apt' |
[submodule "app/Plugin/DebugKit"] | |
path = app/Plugin/DebugKit | |
url = https://github.com/cakephp/debug_kit.git | |
[submodule "app/Plugin/Phpunit"] | |
path = app/Plugin/Phpunit | |
url = https://github.com/dereuromark/cakephp-phpunit | |
[submodule "app/Plugin/Migrations"] | |
path = app/Plugin/Migrations | |
url = https://github.com/CakeDC/migrations.git |
{ | |
"information": { | |
"time": "1409999243" | |
}, | |
"item": { | |
"a": "111", | |
"b": "222", | |
"c": "333" | |
} | |
} |
var a=[],b=$(".ui-scroll-view");if(b)for(var c=b.length,d=b[0].src.split("/"),e=d.length-1,f=0;f<c;f++){d[e]=d[e].replace(/(.*?)_p\d+(\..*?)/,"$1_p"+f+"$2");var g=d.join("/");a.push(g)}else g=$("img").src,a.push(g);for(var l=document.createElement("a"),m=a.length,f=0;f<m;f++)(function(h){setTimeout(function(){var k=a[h];l.href=k;l.download=k.split("/").slice(-1)[0];l.click()},500*h)})(f); |
<script type="text/javascript"> | |
$(function(){ | |
$(".keyword").each(function(){ | |
var $keyword = $(this); | |
$keyword.before($keyword.text()); | |
$keyword.remove(); | |
}); | |
}); | |
</script> |
fpath=($HOME/zsh/functions/cd-bookmark(N-/) $fpath) | |
autoload -Uz cd-bookmark | |
alias cdb='cd-bookmark' | |
function peco_open_bookmark() { | |
cdb | peco | awk -F"|" '{ print $2 }' | xargs open | |
} | |
zle -N peco_open_bookmark | |
bindkey '^@' peco_open_bookmark |
<?php | |
/***********************************/ | |
define('TEMP_DIR', sys_get_temp_dir()); | |
/***********************************/ | |
define('APP_NAME', 'pixiv'); | |
define('APP_COOKIE_FILE', TEMP_DIR . '/cookie_' . APP_NAME . '.txt'); | |
/***********************************/ | |
define('PIXIV_LOGIN_URL', 'https://www.secure.pixiv.net/login.php'); | |
define('PIXIV_BASE_URL', 'http://www.pixiv.net/'); |
FriendsOfCake/vagrant-chef : https://github.com/FriendsOfCake/vagrant-chef
vagrant ssh
cd /vagrant
composer -sdev create-project friendsofcake/app-template app
ZSH_THEME="bureau" | |
# peco | |
function peco_select_history() { | |
local tac | |
if which tac > /dev/null; then | |
tac="tac" | |
else | |
tac="tail -r" | |
fi |