Skip to content

Instantly share code, notes, and snippets.

Isao Sugimoto d6rkaiz

Block or report user

Report or block d6rkaiz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
d6rkaiz / cpuinfo.txt
Created Dec 12, 2016
cpuinfo linode 2048 plan
View cpuinfo.txt
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz
stepping : 1
microcode : 0x1
cpu MHz : 2299.968
cache size : 4096 KB
physical id : 0
d6rkaiz / hook.rb
Created May 1, 2016 — forked from asimihsan/hook.rb
Hook for to do DNS challenges
View hook.rb
#!/usr/bin/env ruby
require 'aws-sdk'
require 'pry'
require 'awesome_print'
require 'domain_name'
# ------------------------------------------------------------------------------
# Credentials
# ------------------------------------------------------------------------------
View staging.rb
require Rails.root.join('config/environments/production')
MyApp::Application.configure do
config.action_dispatch.tld_length = 2 # vs
d6rkaiz / gist:8242da41792ff5981d7a
Created Sep 9, 2014
irb `RDoc::RI::Driver::NotFoundError`
View gist:8242da41792ff5981d7a
$ irb
irb(main):001:0> help
Enter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.
>> \q
RDoc::RI::Driver::NotFoundError: \q
from /Users/d6rkaiz/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rdoc-4.1.1/lib/rdoc/ri/driver.rb:921:in `block in expand_class'
d6rkaiz / 0_reuse_code.js
Created Aug 22, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
d6rkaiz / gist:9087914
Created Feb 19, 2014
go lang build fail on wheezy 7.4
View gist:9087914
$ hg clone -u release
$ cd go/src
$ ./all.bash


--- FAIL: TestBlockProfile (0.17 seconds)
d6rkaiz / file0.txt
Created Sep 4, 2013
tmuxでセッションの有無を判別して起動するスクリプト ref:
View file0.txt
tmux ls > /dev/null
if [ $? -eq 1 -a -z "$TMUX" ]; then
exec tmux
elif [ -z "$TMUX" ] ; then
exec tmux attach
echo "sessions should be nested with care."
d6rkaiz / file0.txt
Created Jul 22, 2013
gitでリモートブランチをすべて取得するシェルスクリプト ref:
View file0.txt
for remote_branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
remote_name="$(echo -n "$remote_branch" | cut -d/ -f2)"
branch_name="$(echo -n "$remote_branch" | cut -d/ -f3)"
git checkout -b $branch_name $remote_name/$branch_name
git checkout master
d6rkaiz / gist:5520721
Created May 5, 2013
squeeze to wheezy upgrade. with mysql@dotdeb
View gist:5520721
root@squeeze64:# apt-get update
Get:1 wheezy/updates Release.gpg [836 B]
Get:2 wheezy/updates/contrib Translation-en [14 B]
Ign wheezy/updates/contrib Translation-en_US
Get:3 wheezy/updates/main Translation-en [5,645 B]
Ign wheezy/updates/main Translation-en_US
Get:4 wheezy/updates Release [102 kB]
Get:5 wheezy Release.gpg [1,672 B]
Get:6 wheezy/main Translation-en [3,851 kB]
Get:7 wheezy Release.gpg [836 B]
View gist:5024273

MountainLion 10.8.2 & Xcode 4.6

$ cc -v
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.1
Thread model: posix
$ clang -v
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.1
You can’t perform that action at this time.