Skip to content

Instantly share code, notes, and snippets.

View foostan's full-sized avatar

Kosuke Adachi foostan

View GitHub Profile

qmk/qmk_firmware#4151 により新ロゴが登録され、またglcdfont.cの設置方法が変更になっています。

  • 今までは keyboards/crkbd/keymaps/<keymap名>/glcdfont.c のようにキーマップ毎にファイルを設置するような仕様でした。
  • 現在は keyboards/crkbd/keymaps/<keymap名>/rules.mkSRC に読み込む glcdfont.c を指定する仕様になっています。
    • 例えばデフォルトの glcdfont.ckeyboards/crkbd/lib/glcdfont.c にあるのでこれを利用する場合はそこへの相対パス ./lib/glcdfont.c を指定します。
  • またカスタマイズする場合は別途 glcdfont.c を作成し、SRC にそこへのパスを指定すればOKです。
@foostan
foostan / error
Last active August 29, 2015 14:06
exit code of fileconsul
root@server:/consul/share# fileconsul status --addr 'localhost:8501'
2014/09/22 06:33:22 Get http://localhost:8501/v1/kv/fileconsul?dc=dc1&recurse=: dial tcp 127.0.0.1:8501: connection refused
root@server:/consul/share# echo $?
1
root@server:/consul/share# fileconsul status --dc 'dc2'
2014/09/22 06:33:52 [WARN] consul.rpc: RPC request for DC 'dc2', no path found
2014/09/22 06:33:52 [ERR] http: Request /v1/kv/fileconsul?dc=dc2&recurse=, error: No path to datacenter
2014/09/22 06:33:52 Unexpected response code: 500
root@server:/consul/share# echo $?
1
@foostan
foostan / file0.txt
Last active August 29, 2015 14:06
オーケストレーションツールとしてのConsulの使い方 ref: http://qiita.com/foostan/items/954f73173ea34eb361da
docker pull foostan/consul
@foostan
foostan / gist:e751efc18fe2c005d1f2
Created May 2, 2014 16:26
ChatWork login -> show chat list
url = ''
email = ''
password = ''
casper = require('casper').create
verbose: true
logLevel: 'debug'
pageSettings:
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5)'
@foostan
foostan / file0.txt
Created April 8, 2014 17:51
Dockerで試す、はじめてのSerf ref: http://qiita.com/foostan/items/5d61595b1b331a73b8c9
$ git clone git@github.com:foostan/vagrant-docker.git
$ cd vagrant-docker
$ vagrant up
@foostan
foostan / gist:9979103
Last active August 29, 2015 13:58
General use Ubuntu base image is not trusted!
vagrant@ubuntu-13:~$ sudo docker search ubuntu
NAME DESCRIPTION STARS OFFICIAL TRUSTED
ubuntu General use Ubuntu base image. 127
stackbrew/ubuntu Barebone ubuntu images 34
phusion/baseimage A special image that is configured for cor... 31
crashsystems/gitlab-docker A trusted, regularly updated build of GitL... 18 [OK]
@foostan
foostan / octocat(24*24)
Last active August 29, 2015 13:57
The dots pattern of octocat.
□□□□□□□□□□□□□□□□□□□□□□□□
□□□□□□□□■■■■■■■■□□□□□□□□
□□□□□□■■■■■■■■■■■■□□□□□□
□□□□■■■■■■■■■■■■■■■■□□□□
□□□■■■■■■■■■■■■■■■■■■□□□
□□□■■■■■■■■■■■■■■■■■■□□□
□□■■■■□■■■■■■■■■■□■■■■□□
□□■■■■□□■■■■■■■■□□■■■■□□
□■■■■■□□□□□□□□□□□□■■■■■□
□■■■■□□□□□□□□□□□□□□■■■■□
@foostan
foostan / .config.rb
Created December 4, 2013 18:27
Rubyで自由な形式のConfigファイルを読み込めるようにしてみる ref: http://qiita.com/foostan/items/6619624d30b5820d93e4
class User
def hello
puts 'Hello World!'
end
end
config.user = User.new