Skip to content

Instantly share code, notes, and snippets.

@mehlon
mehlon / install.sh
Last active December 27, 2019 23:37
install nix on debian/userLAnd
sudo apt update && sudo apt install xz-utils curl
sudo mkdir -m 0755 /nix && sudo chown m /nix
curl https://nixos.org/nix/install | sh
nix-env -iA nixpkgs.gnunet
gnunet-config -s ats -o WAN_QUOTA_IN -V unlimited
gnunet-config -s ats -o WAN_QUOTA_OUT -V unlimited
gnunet-config -s ats -o LAN_QUOTA_IN -V unlimited
gnunet-config -s ats -o LAN_QUOTA_OUT -V unlimited
gnunet-config -s arm -o GLOBAL_POSTFIX -V '-L ERROR'
// This works in both `go build` and `gomobile bind`.
package readsomething
import (
"io"
"io/ioutil"
)
type Reader io.Reader