Skip to content

Instantly share code, notes, and snippets.

View do9iigane's full-sized avatar

Hiroyuki Yokoshima(毒眼鏡) do9iigane

  • bilcom
View GitHub Profile
@do9iigane
do9iigane / .vimrc
Last active October 8, 2015 14:58
custom .vimrc
"set line number
set number
"set linebreak format
set fileformat=unix
"enable syntax highlighting
syntax on
"set scriptencoding
@do9iigane
do9iigane / .bashrc
Created August 14, 2012 12:54
custom bashrc on coreserver
#set language
export LANG="ja_JP.UTF-8"
@do9iigane
do9iigane / .bash_profile
Last active February 3, 2016 09:06
mac show/hide icon aliases
export CLICOLOR=1
export LSCOLORS=DxGxcxdxCxegedabagacad
alias ll='ls -lat'
#隠しファイルを表示するAlias
alias secreton='defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder'
#隠しファイルを表示しないAlias
alias secretoff='defaults write com.apple.finder AppleShowAllFiles FALSE && killall Finder'
#.DS_Storeファイルを作らないようにする
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
@do9iigane
do9iigane / jquery_handling_click_event.js
Last active March 4, 2016 14:18
jqueryのtapイベントハンドラについて
jQuery( ".selector" ).click(function( event ) { ... } )
//でも駄目なら
jQuery( ".selector" ).on( "tap", function( event ) { ... } )
//まだ駄目なら
jQuery( ".selector" ).live( "tap", function( event ) { ... } )
@do9iigane
do9iigane / selenium-server_start.sh
Last active December 19, 2015 13:40
selenium-server start command
#selenium-server hub start command
java -jar selenium-server-standalone-2.28.0.jar -role hub -Xms=1024m -Xmx=1024m
#selenium-server role start command
java -jar selenium-server-standalone-2.28.0.jar -role webdriver -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=chromedriver.exe -Xms=1024m -Xmx=1024m
vagrantのinstall
http://www.vagrantup.com/
以下でインストール確認
$ vagrant -v
※Puppetのインストールは以下
$ vagrant plugin install puppet
boxファイルを以下から適当に選ぶ。
@do9iigane
do9iigane / PagesController.php
Created May 9, 2014 11:23
PHPでwhois情報のCreation Dateを取得します。
<?php
//whois取得
$whois = file_get_contents('http://whoiz.herokuapp.com/lookup.json?url=interestic.com');
preg_match('/(.*)Creation\ Date:(.*)/', json_decode($whois), $match);
$createdeDate = new DateTime($match[2]);
$this->set('createdDate', $createdeDate->format('Y'));
@do9iigane
do9iigane / gist:eb1b67d6ce0ab9faec68
Created October 20, 2014 08:58
Dbfixt_add_mongoDB
<?php
namespace Fuel\Tasks;
use Fuel\Core\Cli;
use Fuel\Core\DB;
use Fuel\Core\DBUtil;
use Fuel\Core\Format;
use Fuel\Core\Mongo_Db;
@do9iigane
do9iigane / setup_connect2dynamo.sh
Last active August 29, 2015 14:28
dynamoDBへのデータアクセス
;awscliのインストール
$ brew install awscli
;dynamodb-localのインストール
$ brew install dynamodb-local
;awsのcredentialを設定
$ aws configure
;以下調整する
@do9iigane
do9iigane / file0.txt
Created March 7, 2016 08:56
artisan serve で任意のhost,portを指定する方法 ref: http://qiita.com/do9iigane/items/32083f843db1e5a63fc3
$ php artisan --host=127.0.0.1 --port=9999