インジェクションとは・・
"「インジェクション」(injection)とは「注入」という意味"
by e-Words
- 入力された文字エンコーディングの検証
- 期待していない効果のある文字列が含まれていないかの検証
インジェクションとは・・
"「インジェクション」(injection)とは「注入」という意味"
by e-Words
| # Committing changes to a repo via the Github API is not entirely trivial. | |
| # The five-step process is outlined here: | |
| # http://developer.github.com/v3/git/ | |
| # | |
| # Matt Swanson wrote a blog post translating the above steps into actual API calls: | |
| # http://swanson.github.com/blog/2011/07/23/digging-around-the-github-api-take-2.html | |
| # | |
| # I was not able to find sample code for actually doing this in Ruby, | |
| # either via the HTTP API or any of the gems that wrap the API. | |
| # So in the hopes it will help others, here is a simple function to |
| <?php | |
| session_start(); | |
| if (empty($_SESSION['path'])) { | |
| $_SESSION['user'] = shell_exec('whoami'); | |
| $_SESSION['host'] = shell_exec('hostname'); | |
| $_SESSION['path'] = '~'; | |
| } |
| # 少し凝った zshrc | |
| # License : MIT | |
| # http://mollifier.mit-license.org/ | |
| ######################################## | |
| # 環境変数 | |
| export LANG=ja_JP.UTF-8 | |
| # 色を使用出来るようにする |
| var Cc = Components.classes; | |
| var Ci = Components.interfaces; | |
| var PromptService = Cc["@mozilla.org/embedcomp/prompt-service;1"] | |
| .getService(Ci.nsIPromptService); | |
| // インストール時に呼び出される | |
| function install(aData, aReason) { | |
| PromptService.alert(null, "Bootstrapped Extension Sample", "Install"); | |
| } |
Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。
【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。
node.js でパスを取得する方法についてのメモ
$ node ~/hoge/Foo.js/a.jsを実行したときに、
process.argv[1] から、node コマンドに指定された a.js のパス( ~/hoge/Foo.js/a.js )を取得できます| var gotoLabels= {}; | |
| var whileLabels = {}; | |
| // overload the oritinal Selenium reset function | |
| Selenium.prototype.reset = function() { | |
| // reset the labels | |
| this.initialiseLabels(); | |
| // proceed with original reset code | |
| this.defaultTimeout = Selenium.DEFAULT_TIMEOUT; | |
| this.browserbot.selectWindow("null"); |