Skip to content

Instantly share code, notes, and snippets.


Isao Sugimoto d6rkaiz

View GitHub Profile
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 / 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: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'
View staging.rb
require Rails.root.join('config/environments/production')
MyApp::Application.configure do
config.action_dispatch.tld_length = 2 # vs
View screenrc
escape ^Z^Z
defscrollback 4096
hardstatus on
hardstatus alwayslastline
caption always "%{.Kk}%?%F%{.KW}%?%n %t%=%?[%h]%?"
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..Y}[%y/%m/%d %c]"
defbce on
term xterm-256color
multiuser on
altscreen on
View for screen
screen -q -ls
if [ $? -eq 9 -a -z "$STY" ]; then
exec screen -U
exec screen -UxRR
View unicorn.conf
worker_processes 2
working_directory "/var/www/default"
timeout 30
listen "/tmp/unicorn.socket", :backlog => 64
pid "logs/"
stderr_path "logs/unicorn.log"
stdout_path "logs/unicorn.log"
d6rkaiz / nginx
Created Dec 13, 2010
View nginx
server {
listen 80;
server_name _;
access_log /var/log/nginx/access.log;
root /var/www/default/public;
location / {
try_files $uri/index.html @unicorn;
View mem.c
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv) {
int max = -1;
int mb = 0;
char* buffer;
if(argc > 1)
View gist:798776
mkdir -p ~/Library/Application\ Support/LingrHat
echo '.message {font-size:14px !important;}' > ~/Library/Application\ Support/LingrHat/UserStyleSheet.css
echo 'textarea {font-size:14px !important;}' >> ~/Library/Application\ Support/LingrHat/UserStyleSheet.css
defaults write com.drikin.Lingr-Hat WebKitUserStyleSheetEnabledPreferenceKey -bool true
defaults write com.drikin.Lingr-Hat WebKitUserStyleSheetLocationPreferenceKey "~/Library/Application Support/LingrHat/UserStyleSheet.css"