Skip to content

Instantly share code, notes, and snippets.

package main
import "fmt"
func main () {
// 見つめ合う
fmt.Println("おっくせんまん!おっくせんまん!!")
defer fmt.Println("ジャパン!!!");
}
@staltz
staltz / introrx.md
Last active November 17, 2024 01:08
The introduction to Reactive Programming you've been missing
@higebu
higebu / failed-to-start-mackerel-agent.md
Last active August 29, 2015 14:09
ニフティクラウド上の Debian7 で mackerel-agent の起動に失敗する

原因

  • ニフティクラウド上のサーバはローカルにbindを立てており、それをnameserverとして参照しているが、mackerel-agent(golangのnetパッケージ?)はローカルのbindを参照してくれない。

解決方法

sudo su -
/etc/init.d/bind9 stop
insserv -r bind9
@jesstelford
jesstelford / 01-shape-up-to-kindle.md
Last active November 17, 2024 13:20
Read SHAPE UP by basecamp on a Kindle / reMarkable / eReader

Read Shape Up by basecamp on a kindle / reMarkable / eReader

Basecamp's new book Shape Up is now available online (https://basecamp.com/shapeup) to read page-by-page.

There is a .pdf version, but that's not the best format for Kindle / other eReaders. Instead, we can convert the page-by-page into an eReader friendly format.

Part 1: Convert to a single page

NOTE: This has only been tested on Chrome