Skip to content

Instantly share code, notes, and snippets.

@shiwork
shiwork / git_config.md
Last active August 29, 2015 13:56
Subversionからgitへ移行する時

Subsonicにちょっと手を加えたかったのでsvnからgitに移し替えた。

git2svnについては未だ特に方法は調べてないが、とりあえずコレでSVNの修正は取得できてるっぽい。

[svn-remote "svn"]
    noMetadata = 1
    url = http://svn.code.sf.net/p/subsonic/code
    fetch = trunk:refs/heads/svn/trunk
 branches = branches/*:refs/heads/svn/*
module Hoge {
export class Sample {
constructor() {
}
methodA():void {
alert('methodA');
}
@shiwork
shiwork / #41.go
Last active August 29, 2015 14:08
A Tour of go
package main
import (
"code.google.com/p/go-tour/wc"
"strings"
)
func WordCount(s string) map[string]int {
wc := make(map[string]int)
for _, ss := range strings.Fields(s) {
@shiwork
shiwork / export_artwork.sh
Created December 9, 2014 11:08
iTunesのArtworkを何とかする奴
#!env bash
find ~/Music/iTunes/Album\ Artwork -name '*.itc' | while read i
do
dd if="$i" of=$(basename "$i" .itc).png bs=1 skip=492
done
# byte 492 or 500
@shiwork
shiwork / .emacs
Last active August 29, 2015 14:13
Emacsの設定
(load (expand-file-name (concat (getenv "HOME") "/.emacs.d/init")))
59 23 * * 2 sh ~/rec_radiko.sh BAYFM78 30 ~/kalafina
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 116 099 006 Pre-fail Always - 101228800
3 Spin_Up_Time 0x0003 100 100 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 62
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 9
7 Seek_Error_Rate 0x000f 084 060 030 Pre-fail Always - 262259289
9 Power_On_Hours 0x0032 052 052 000 Old_age Always - 42174
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 62
@shiwork
shiwork / H2O_COMPILE.md
Last active August 29, 2015 14:17
h2o compile

ubuntu 14.04

$ sudo aptitude install cmake make gcc g++ libyaml-dev libssl-dev pkg-config
$ git clone git@github.com:h2o/h2o.git
$ cd h2o
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
$ make
$ ./h2o -c examples/h2o/h2o.conf
@shiwork
shiwork / iijmio.md
Last active August 29, 2015 14:18
so-netとIIJmioひかりの比較

speedtest

------ BNRスピードテスト (ダウンロード速度) ------
測定サイト: http://www.musen-lan.com/speed/ Ver5.5001
測定日時: 2015/04/11 20:04:17
回線/ISP/地域: 
--------------------------------------------------
1.NTTPC(WebARENA)1: 46.29Mbps (5.79MB/sec)
2.NTTPC(WebARENA)2: 49.21Mbps (6.15MB/sec)
@shiwork
shiwork / 0.md
Created April 27, 2015 09:09
機械学習勉強会

#機械学習勉強会準備会 ##コレは何? ガチの初心者が、学び、理解し、使えるように成るのが目標の勉強会。 DeepLearningでもなんでもいいが、最終的には実装できるだけの蓄積を各々溜める。

##詳細 日時 2015/04/30 19:00-21:30 場所 麻布区民センター 細かいのはslackのチャンネルで聞いてください。 対象 ガチ初心者(輪講メイン)