#Heroku導入メモ
→ Heroku | Cloud Application Platform
- 知っておきたい!Herokuを使う上では当たり前?の16の常識 | blog.mah-lab.com
- デザイナーもHerokuを使ってみよう!Herokuを使って静的ページを無料で作る - KUROIGAMEN(黒い画面)
##Herokuとは?
| function FindProxyForURL(url, host){ | |
| switch(true){ | |
| /*いまいましい音付き広告を拒否*/ | |
| case dnsDomainIs(host, '2mdn.net'): | |
| case dnsDomainIs(host, 'cmertv.com'): | |
| case dnsDomainIs(host, 'cxense.com'): | |
| case dnsDomainIs(host, 'microad.jp'): | |
| case dnsDomainIs(host, 'socdm.com'): | |
| case dnsDomainIs(host, 'teads.tv'): | |
| case dnsDomainIs(host, 'uliza.jp'):/*TVerのCMに使われるのでTVerを見るなら外す必要があるかも*/ |
| // ==UserScript== | |
| // @name MDNで翻訳するときの自動処理 | |
| // @namespace https://github.com/unarist/ | |
| // @downloadURL https://gist.github.com/unarist/641014d0836cea842690b8f3a20b44f9/raw | |
| // @version 0.1 | |
| // @author unarist | |
| // @match https://developer.mozilla.org/*/docs/* | |
| // ==/UserScript== | |
| (function() { |
| APP_ENV=testing | |
| APP_KEY=SomeRandomString | |
| DB_CONNECTION=testing | |
| DB_TEST_USERNAME=root | |
| DB_TEST_PASSWORD= | |
| CACHE_DRIVER=array | |
| SESSION_DRIVER=array | |
| QUEUE_DRIVER=sync |
| <?php // resources/lang/ja/validation.php | |
| return [ | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Validation Language Lines | |
| |-------------------------------------------------------------------------- | |
| | | |
| | The following language lines contain the default error messages used by |
| /* | |
| * バージョン0.1 | |
| * 試用版 | |
| * パンくずリストを自動生成する | |
| */ | |
| /* | |
| * 使い方 | |
| * 1. このファイルを読み込む前に、jQueryを読んでください。 | |
| * <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> |
| <?php | |
| $regions = array( | |
| 'Africa' => DateTimeZone::AFRICA, | |
| 'America' => DateTimeZone::AMERICA, | |
| 'Antarctica' => DateTimeZone::ANTARCTICA, | |
| 'Aisa' => DateTimeZone::ASIA, | |
| 'Atlantic' => DateTimeZone::ATLANTIC, | |
| 'Europe' => DateTimeZone::EUROPE, | |
| 'Indian' => DateTimeZone::INDIAN, | |
| 'Pacific' => DateTimeZone::PACIFIC |
| define :generate_ssh_keys, :user_account => nil do | |
| username = params[:user_account] | |
| raise ":user_account should be provided." if username.nil? | |
| Chef::Log.debug("generate ssh skys for #{username}.") | |
| execute "generate ssh skys for #{username}." do | |
| user username | |
| creates "/home/#{username}/.ssh/id_rsa.pub" |