全然理解出来てなかったので調べてみた。
function f () {
// Class
}
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" |
<?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 |
/* | |
* バージョン0.1 | |
* 試用版 | |
* パンくずリストを自動生成する | |
*/ | |
/* | |
* 使い方 | |
* 1. このファイルを読み込む前に、jQueryを読んでください。 | |
* <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> |
<?php // resources/lang/ja/validation.php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines contain the default error messages used by |
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 |
// ==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() { |
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を見るなら外す必要があるかも*/ |