Skip to content

Instantly share code, notes, and snippets.

View sutara79's full-sized avatar

Yuusaku Miyazaki sutara79

View GitHub Profile
@knoajp
knoajp / proxy.pac
Last active December 25, 2022 05:26
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() {
@gilbitron
gilbitron / .env.travis
Last active August 12, 2023 08:06
Laravel 5 Travis CI config
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
@syokunin
syokunin / validation.php
Last active December 30, 2021 02:45
Laravel 5.1 日本語バリデーションメッセージファイル
<?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>
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@y-yu
y-yu / inherit.md
Created August 9, 2012 06:57
JavaScriptの継承について

JavaScriptの継承について

全然理解出来てなかったので調べてみた。

経緯

function f () {
	// Class
}
@xeoncross
xeoncross / timezone.php
Created September 8, 2011 18:43
The perfect TimeZone selectbox list for PHP 5.3+
<?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
@3dd13
3dd13 / generate_ssh_keys.rb
Created January 20, 2011 16:59
chef recipe to generate ssh key for a user
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"