This file contains hidden or 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
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 |
This file contains hidden or 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
<script type="text/javascript"> | |
$(function(){ | |
$(".keyword").each(function(){ | |
var $keyword = $(this); | |
$keyword.before($keyword.text()); | |
$keyword.remove(); | |
}); | |
}); | |
</script> |
This file contains hidden or 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
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); |
This file contains hidden or 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
{ | |
"information": { | |
"time": "1409999243" | |
}, | |
"item": { | |
"a": "111", | |
"b": "222", | |
"c": "333" | |
} | |
} |
This file contains hidden or 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
[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 |
This file contains hidden or 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
source 'https://supermarket.getchef.com' | |
cookbook 'apt' |
This file contains hidden or 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
<?php | |
$a = array(0,1,2,3,4,5,6,7,8,9); | |
$b = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'); | |
$c = array('_'); | |
$x = array_merge($a,$b,$c); | |
function userId($arr, $length = 4){ | |
$max = count($arr); | |
if ($max < $length) { |
This file contains hidden or 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
<source> | |
type tail | |
format apache | |
path /var/log/httpd/access_log | |
pos_file /var/log/td-agent/access_log.pos | |
tag apache.log | |
</source> | |
<match apache.log> | |
type elasticsearch |
This file contains hidden or 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
<source> | |
type tail | |
format /^\[(?<time>[^\]]*)\] (?<message>.*)$/ | |
path /var/log/php_errors.log | |
pos_file /var/log/td-agent/php_errors_log.pos | |
tag php.errors_log | |
</source> | |
<match php.errors_log> | |
type elasticsearch |
This file contains hidden or 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
<source> | |
type tail | |
format apache | |
path /var/log/httpd/access_log | |
pos_file /var/log/td-agent/access_log.pos | |
tag geo.apache.log | |
</source> | |
<match geo.apache.log> | |
type geoip |