Skip to content

Instantly share code, notes, and snippets.

@alanwilhelm
alanwilhelm / build_run_perkle_ubuntu.sh
Created March 29, 2019 19:54
Compile and run Esprezzo Perkle on Ubuntu
#!/bin/bash
sudo apt-get install -y build-essential golang;
git clone https://github.com/esprezzo/perkle.git
./perkle/scripts/build_release.sh;
./perkle/scripts/start_fullnode.sh;
@alanwilhelm
alanwilhelm / easy_erlixir.sh
Created June 11, 2017 02:12
install erlang/elixir on clean ubuntu 16.04
#!/bin/bash
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang
sudo apt-get install elixir
#!/bin/bash
# setup ethereum testnet for dev
geth --testnet --datadir ~/.ethereum-testnet account new
# start test miner and console
geth --testnet --datadir "~/.ethereum-testnet" --mine console 2>> ~/.ethereum-testnet.log
@alanwilhelm
alanwilhelm / ubuntu_raid.sh
Last active June 8, 2017 03:11
RAID setup commands for Ubuntu 16.04LTS
#!/bin/bash
# DO NOT RUN THIS SCRIPT
# THIS IS A LIST OF COMMANDS
# USED TO SET UP DIFFERENT MULTIDISK RAID LEVELS ON UBUNTU LINUX
# inspect devices
# lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
# raid level 1 // striping
@alanwilhelm
alanwilhelm / ubuntu_go_1.8.sh
Last active June 8, 2017 03:29
Golang 1.8 on ubuntu 16.04
#!/bin/bash
sudo apt-get remove golang --purge
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.8.linux-amd64.tar.gz
mkdir -p ~/go; echo "export GOPATH=$HOME/go" >> ~/.bashrc
echo "export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin" >> ~/.bashrc
@alanwilhelm
alanwilhelm / docker_up_ubuntu.sh
Created March 13, 2016 00:18
Install and test docker on ubuntu 15.10
#!/bin/sh
apt-get update
apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb https://apt.dockerproject.org/repo ubuntu-wily main' > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get purge lxc-docker
apt-cache policy docker-engine
apt-get update
sudo apt-get install linux-image-extra-$(uname -r) -y