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
class AppController extends Controller { | |
public $helpers = array( | |
'Html' => array('className' => 'CustomHtml') | |
); | |
(略) | |
} |
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
http://webhook.mydomain.com/release.php?key=secretkey |
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
public function getUserRanking() { | |
if ($this->request->is('requested')) { | |
// requestAction()時のみrankingを返す | |
return $this->UserRanking->getUserRanking(); | |
} | |
throw new BadRequestException(); | |
} |
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
/vendors | |
/plugins | |
/app/tmp/* | |
/app/Config/core.php | |
/app/Config/database.php |
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
Sub fizzBuzz() | |
maxNumber = 100 | |
Message = "" | |
For num = 1 To maxNumber | |
Message = Message & ", " |
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
$ sh safari_vs_chrome.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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
ASK: [List Installed Vagrant Plugins] **************************************** | |
ok: [localhost] | |
TASK: [Install Vagrant Plugins] *********************************************** | |
skipping: [localhost] => (item=vagrant-omnibus) | |
skipping: [localhost] => (item=vagrant-vbguest) | |
skipping: [localhost] => (item=vagrant-cachier) | |
skipping: [localhost] => (item=vagrant-vbox-snapshot) | |
skipping: [localhost] => (item=vagrant-aws) | |
skipping: [localhost] => (item=vagrant-digitalocean) |
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
$ kitchen verify | |
-----> Starting Kitchen (v1.3.1) | |
-----> Verifying <default-ubuntu-1410>... | |
Removing /tmp/busser/suites/serverspec | |
Uploading /tmp/busser/suites/serverspec/base_spec.rb (mode=0644) | |
-----> Running serverspec test suite | |
/opt/chef/embedded/bin/ruby -I/tmp/busser/suites/serverspec -I/tmp/busser/gems/gems/rspec-support-3.2.2/lib:/tmp/busser/gems/gems/rspec-core-3.2.2/lib /opt/chef/embedded/bin/rspec --pattern /tmp/busser/suites/serverspec/\*\*/\*_spec.rb --color --format documentation --default-path /tmp/busser/suites/serverspec | |
Command "getenforce" | |
stdout |
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
$ openssl aes-256-cbc -e -in rawtext.txt -out encrypted.txt | |
enter aes-256-cbc encryption password: # パスワード入力 | |
Verifying - enter aes-256-cbc encryption password: # もう一度 |