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
#!/bin/sh | |
MYSQL=/etc/rc.d/init.d/mysql | |
MEMDIR=/dev/shm | |
MEM_MYSQL=$MEMDIR/mysql | |
LIBDIR=/var/lib | |
ORIGDIR=$LIBDIR/mysql |
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
#!/bin/bash | |
# | |
# Startup script for onMemoryMySQL | |
# chkconfig: 345 85 15 | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/usr/bin:/bin | |
test -f /root/onMemoryDeploy.sh || exit 0 |
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 | |
/** | |
* stream wrapper for variable input | |
* usage: | |
* $val = 'Hello <?php echo "World"; ?> hehe.'; | |
* stream_wrapper_register("var", "VariableStream"); | |
* include("var://".urlencode($val)); | |
**/ | |
class VariableStream { | |
public $position; |
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 | |
Class TableRII extends RecursiveIteratorIterator { | |
private $parentKey = null; | |
public function beginIteration() { | |
echo '<table border=1><tr><th>key</th><th>value</th></tr>'; | |
} | |
public function endIteration() { | |
echo '</table>'; |
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 | |
$GLOBALS['memstart'] = memory_get_usage(); | |
function mem() { | |
$m2 = memory_get_usage(); | |
echo $m2 - $GLOBALS['memstart'] ."\n"; | |
} | |
class Foo { | |
public function bar($x = null){ |
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
bind -x '"\C-o": READLINE_LINE="${READLINE_LINE:0:$READLINE_POINT} | |
`git symbolic-ref HEAD | cut -d/ -f 3` ${READLINE_LINE:${READLINE_POINT}}"' |
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
diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php | |
index cb28f6e..c6a38c3 100644 | |
--- a/lib/Cake/Routing/Router.php | |
+++ b/lib/Cake/Routing/Router.php | |
@@ -810,23 +810,30 @@ class Router { | |
$url += array('controller' => $params['controller'], 'plugin' => $params['plugin']); | |
- $match = false; | |
+ $cacheKey = 'Router-' . sha1(serialize($url)); |
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
test: | |
override: | |
- ./test.sh | |
deployment: | |
staging: | |
branch: master | |
commands: | |
- ./deploy.sh | |
- git clone [email protected]:vaddy/vaddy-api-ruby.git && rvm use 2.1.0 && cd ./vaddy-api-ruby/ && ruby vaddy.rb | |
- ./deploy2.sh |
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
./unit-test.sh | |
./deploy-staging.sh | |
git clone [email protected]:vaddy/vaddy-api-ruby.git && cd ./vaddy-api-ruby && ruby vaddy.rb && cd ../ | |
./deploy-production.sh |
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
ctl + a : 行頭移動 | |
ctl + e : 行末移動 | |
esc + b : 一単語左へ移動 | |
esc + f : 一単語右へ移動 | |
ctl + u : カーソルから左をすべて削除 | |
ctl + k : カーソルから右をすべて削除 | |
ctl + d : カーソル文字削除 | |
ctl + h : カーソル前の文字削除 |