- package managment: https://github.com/Masterminds/glide
- cross-compiling: https://github.com/mitchellh/gox
- logging: https://github.com/Sirupsen/logrus
- code generation: https://github.com/josharian/impl (interface impl), https://github.com/mholt/curl-to-go, https://github.com/mholt/json-to-go
- memory optimization: http://golang-sizeof.tips/
- repl: https://github.com/motemen/gore
- self-update: https://github.com/inconshreveable/go-update
- json: https://github.com/antonholmquist/jason / https://github.com/a8m/djson
- docs: http://godoc.org/golang.org/x/tools/cmd/godoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
### | |
prerequisites; | |
$ sudo apt-get install nodejs # whatever | |
$ sudo npm install -g coffee-script | |
### | |
bootstrap = do -> | |
exec = require('child_process').exec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>land.of.ooo</groupId> | |
<artifactId>adventure_time</artifactId> | |
<version>0.1.0-SNAPSHOT</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = 'lucid32' | |
config.vm.box_url = 'http://files.vagrantup.com/lucid32.box' | |
config.vm.provision :shell, :inline => %Q( | |
apt-get update && apt-get install -y make libaio1 # libaio1 required by mysql | |
echo 'Downloading MySQL distribution ...' | |
wget --progress=dot:mega --content-disposition \ | |
http://mirror.cogentco.com/pub/mysql/MySQL-5.0/mysql-5.0.95-linux-i686-glibc23.tar.gz \ | |
2>&1 | grep --line-buffered -o '[0-9]*%' | |
wget -O - https://launchpad.net/mysql-sandbox/mysql-sandbox-3/mysql-sandbox-3/+download/MySQL-Sandbox-3.0.33.tar.gz | tar xzv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function unquote(value) { | |
return /^'.*'|".*"$/.test(value) ? value.slice(1, -1) : value; | |
} | |
module.exports = function (options) { | |
process.argv.reduce(function (obj, value) { | |
var groups = /^--(\w+)(?::(.+))?$/.exec(value); | |
if (groups !== null) { | |
obj[groups[1]] = unquote(groups[2] || ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://ftp.jaist.ac.jp/pub/sourceforge/j/project/ju/justniffer/justniffer/justniffer%200.5.11/justniffer_0.5.11.tar.gz | |
tar -xzf justniffer_0.5.11.tar.gz | |
cd justniffer-0.5.11 | |
apt-get install make | |
apt-get install gcc | |
apt-get install g++ | |
apt-get install libc6 | |
apt-get install libboost-dev | |
apt-get install libboost-regex-dev | |
apt-get install libboost-iostreams-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CHECKOUT_DIR=$PWD | |
if [ ! -d /tmp/fast-export.da7f34caf5629d283761 ]; then | |
git clone https://github.com/frej/fast-export /tmp/fast-export | |
(cd /tmp/fast-export && git reset --hard d202200fd9da) | |
cat >/tmp/fast-export.patch<<-EOF | |
diff --git a/hg2git.py b/hg2git.py | |
index c58cade..4abcbc2 100755 | |
--- a/hg2git.py | |
+++ b/hg2git.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |