https://github.com/vorpaljs/bash-parser
docker pull node:8.9.4-alpine
docker run -d --name node-alpine -it node:8.9.4-alpine
docker exec -it node-alpine /bin/sh
vi sample.js
| function FindProxyForURL(url, host) | |
| { | |
| if(shExpMatch(host,"www.example.com")) | |
| {return "PROXY 54.92.84.100:28888";} | |
| else | |
| return "DIRECT"; | |
| } |
https://github.com/vorpaljs/bash-parser
docker pull node:8.9.4-alpine
docker run -d --name node-alpine -it node:8.9.4-alpine
docker exec -it node-alpine /bin/sh
vi sample.js
| <?php | |
| $address = "aaa bb cc"; | |
| echo escapeshellarg($address) . PHP_EOL; // 'aaa bb cc' | |
| echo "----------------\n"; | |
| //CVE-2016-10045 | |
| $address = "\"attacker\' -oQ/tmp/ -X/tmp/phpmailertest/phpcode.php some\"@email.com"; |
| <?php | |
| require 'PHPMailerAutoload.php'; | |
| //$address = '[email protected]'; | |
| $address = '"attacker\" -oQ/tmp/ -X/var/www/cache/phpcode.php some"@email.com'; | |
| var_dump(PHPMailer::validateAddress($address)); |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| class SampleCmd extends Command | |
| { | |
| /** | |
| * The name and signature of the console command. |
| ctl + a : 行頭移動 | |
| ctl + e : 行末移動 | |
| esc + b : 一単語左へ移動 | |
| esc + f : 一単語右へ移動 | |
| ctl + u : カーソルから左をすべて削除 | |
| ctl + k : カーソルから右をすべて削除 | |
| ctl + d : カーソル文字削除 | |
| ctl + h : カーソル前の文字削除 |
| ./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 |
| 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 |
| 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)); |