Skip to content

Instantly share code, notes, and snippets.

View youhei's full-sized avatar
🦈
Watching shark movies

Youhei Nitta youhei

🦈
Watching shark movies
View GitHub Profile
@youhei
youhei / file0.txt
Last active December 17, 2015 03:49
OSX に JDK 9 Early Access Releases をインストール ref: http://qiita.com/youhei/items/6a5d1a922f5e15ad5019
$ brew tap caskroom/versions
$ brew cask install java9-beta
$ jenv add /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
$ jenv shell oracle64-9-ea
$ java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+95-2015-12-02-041743.javare.3968.nc)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+95-2015-12-02-041743.javare.3968.nc, mixed mode)
$ jshell
| Welcome to JShell -- Version 9-ea
@youhei
youhei / keybase.md
Created May 27, 2015 03:16
keybase.md

Keybase proof

I hereby claim:

  • I am youhei on github.
  • I am youhei (https://keybase.io/youhei) on keybase.
  • I have a public key whose fingerprint is E0BA 587F D64D 6AC4 4133 67AC 17D9 D936 39C4 B46D

To claim this, I am signing this object:

@youhei
youhei / file0.txt
Last active August 29, 2015 14:07
ペアプロの相手を決めるワンライナー ref: http://qiita.com/youhei/items/541a55a72c73adaed668
$ git shortlog --summary | cut -f 2 | shuf | paste - -
@youhei
youhei / pom.xml
Last active August 29, 2015 14:07
mvn test で mvn findbugs:check も実行する ref: http://qiita.com/youhei/items/5fdae193d659ba418db9
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>findbugs-test</id>
<phase>test</phase>
<goals>
<goal>check</goal>
@youhei
youhei / file0.txt
Created June 30, 2014 10:51
built-in object を拡張する禁断の果実を齧ろう ref: http://qiita.com/youhei/items/7502d161aecdd59030b9
>>> str.foo = lambda: 'foo'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't set attributes of built-in/extension type 'str'
@youhei
youhei / file0.txt
Created March 27, 2014 14:02
HipChat の Topic に emoticon が設定できる ref: http://qiita.com/youhei/items/983dfae2679eaae29a85
/topic (jobs)(heart)(gates)
@youhei
youhei / file0.txt
Created March 26, 2014 03:36
New Relic Deployment API を使ってレコーディング・デプロイメント ref: http://qiita.com/youhei/items/f18cde3234b41456515d
curl -H "x-api-key:REPLACE_WITH_YOUR_API_KEY" -d "deployment[app_name]=REPLACE_WITH_YOUR_APP_NAME" https://api.newrelic.com/deployments.xml
@youhei
youhei / file0.txt
Created March 20, 2014 13:29
ctags で PyPI モジュールにもタグジャンプ ref: http://qiita.com/youhei/items/971e6031ba7c1b7fd173
$ctags -R `pyenv prefix`/lib/python2.7 `pyenv prefix`/lib/python2.7/site-packages .
@youhei
youhei / japanized_lolcommits.md
Created May 18, 2012 05:27
lolcommits 日本語対応

lolcommits 日本語対応

vi `gem which lolcommits`

1行目に magic comment 追加

# coding: utf-8

125行目を以下に書き換える

@youhei
youhei / gist:2706674
Created May 16, 2012 01:50
how to install rb-skypemac from source (for ruby-1.9)
$ git clone https://github.com/elight/rb-skypemac
$ cd rb-skypemac
$ ruby setup.rb