Skip to content

Instantly share code, notes, and snippets.

View d6rkaiz's full-sized avatar

Isao Sugimoto d6rkaiz

View GitHub Profile
@d6rkaiz
d6rkaiz / custom.scss
Created April 22, 2017 18:01
Mastodon custom.scss for https://mstdn.club default theme
@import 'application';
/*
* Mastodon custom.scss for https://mstdn.club default theme
* by d6rkaiz
*
* original css created by 生駒菜々(やっきゅん)
* ref: https://userstyles.org/styles/141389/lite-masudon-kun-lite,
* https://userstyles.org/styles/141517/theme
*/
@d6rkaiz
d6rkaiz / cpuinfo.txt
Last active December 12, 2016 02:05
cpuinfo ConoHa 1GB plan
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
stepping : 2
microcode : 0x1
cpu MHz : 2599.996
cache size : 4096 KB
physical id : 0
@d6rkaiz
d6rkaiz / cpuinfo.txt
Created December 12, 2016 00:40
cpuinfo DigitalOcean 1GB plan
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz
stepping : 2
microcode : 0x1
cpu MHz : 1799.998
cache size : 30720 KB
physical id : 0
@d6rkaiz
d6rkaiz / cpuinfo.txt
Created December 12, 2016 00:37
cpuinfo linode 2048 plan
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
d6rkaiz / hook.rb
Created May 1, 2016 09:44 — forked from asimihsan/hook.rb
Hook for letsencrypt.sh to do DNS challenges
#!/usr/bin/env ruby
require 'aws-sdk'
require 'pry'
require 'awesome_print'
require 'domain_name'
# ------------------------------------------------------------------------------
# Credentials
# ------------------------------------------------------------------------------
@d6rkaiz
d6rkaiz / staging.rb
Last active August 29, 2015 14:06 — forked from kenn/staging.rb
require Rails.root.join('config/environments/production')
MyApp::Application.configure do
config.action_dispatch.tld_length = 2 # domain.com vs staging.domain.com
end
@d6rkaiz
d6rkaiz / gist:8242da41792ff5981d7a
Created September 9, 2014 04:05
irb `RDoc::RI::Driver::NotFoundError`
$ 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
d6rkaiz / 0_reuse_code.js
Created August 22, 2014 18:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@d6rkaiz
d6rkaiz / gist:9087914
Created February 19, 2014 08:11
go lang build fail on wheezy 7.4
$ hg clone -u release https://code.google.com/p/go
$ cd go/src
$ ./all.bash

snip...

--- FAIL: TestBlockProfile (0.17 seconds)
@d6rkaiz
d6rkaiz / file0.txt
Created September 4, 2013 10:33
tmuxでセッションの有無を判別して起動するスクリプト ref: http://qiita.com/d6rkaiz/items/993ef586aa39f2ddb588
#!/bin/bash
tmux ls > /dev/null
if [ $? -eq 1 -a -z "$TMUX" ]; then
exec tmux
elif [ -z "$TMUX" ] ; then
exec tmux attach
else
echo "sessions should be nested with care."
fi