Skip to content

Instantly share code, notes, and snippets.

@tgerring
tgerring / ipfs-guide-mac.md
Last active February 24, 2022 13:20
IPFS Mac Guide

IPFS Guide

Mac Installation

  1. Install Homebrew
  2. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. Install prerequisites
  4. brew install git hg
  5. brew install osxfuse (see Mac issues to troubleshoot common errors)
  6. Install Go
@tgerring
tgerring / geth-posh-build.ps1
Last active February 5, 2022 20:21
Geth build script for Windows Powershell
<#
.SYNOPSIS
Geth build script for Windows
.DESCRIPTION
A Powershell script to install dependencies for Windows and build go-ethereum binaries.
Make sure to run `Set-ExecutionPolicy RemoteSigned` in an Adminisrative Powershell window first
if you intend to run this as a script instead of in a console
.NOTES
File Name : geth-posh-install.ps1
Author : Taylor Gerring (taylor.gerring@gmail.com)
@tgerring
tgerring / geth-develop.sh
Last active August 18, 2021 07:55
Geth installation Ubuntu
#!/bin/bash
#######################################################################
# Install base dependencies (required)
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y git build-essential
# Install Go binaries
GOVERSION="1.7.3"
make BLS_ETH=1 lib/libbls384_256.a
g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -Wundef -I include -I test -fomit-frame-pointer -DNDEBUG -fno-stack-protector -Ofast -DMCL_USE_VINT -DMCL_DONT_USE_OPENSSL -fPIC -std=c++11 -I/home/pi/dev/bls/../mcl/include -DBLS_ETH -c src/bls_c384_256.cpp -o obj/bls_c384_256.o -MMD -MP -MF obj/bls_c384_256.d
In file included from src/bls_c384_256.cpp:3:
src/bls_c_impl.hpp: In function ‘const mclBnG1* cast(const G1*)’:
src/bls_c_impl.hpp:155:73: warning: cast from ‘const G1*’ {aka ‘const mcl::EcT<mcl::FpT<mcl::bn::local::FpTag, 384> >*’} to ‘const mclBnG1*’ increases required alignment of target type [-Wcast-align]
static inline const mclBnG1 *cast(const G1* x) { return (const mclBnG1*)x; }
^
src/bls_c_impl.hpp: In function ‘const mclBnG2* cast(const G2*)’:
src/bls_c_impl.hpp:156:73: warning: cast from ‘const G2*’ {aka ‘const mcl::EcT<mcl::Fp2T<m
@tgerring
tgerring / mist-develop.sh
Last active April 13, 2018 07:19
Mist installation script for Ubuntu 14.04.2
#!/bin/bash
# Install base dependencies
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y git mercurial build-essential software-properties-common pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev
# Install Qt 5.4.1 packages (only required for Mist)
sudo add-apt-repository ppa:beineri/opt-qt541-trusty -y
sudo apt-get update
@tgerring
tgerring / gist:50d9a5f01db32c252e4aa2dfd42a539d
Created February 8, 2017 23:36
golang setup & geth installation ubuntu/debian
For YouTube video located at https://youtu.be/1VjcrPGXY2E
# SETUP GOLANG
GOVERSION="1.7.5"
[[ `uname -m` = "x86_64" ]] && GOARCH="amd64" || GOARCH="386"
wget https://storage.googleapis.com/golang/go$GOVERSION.linux-$GOARCH.tar.gz
sudo rm -rf /usr/local/go/ && sudo tar -C /usr/local -xzf go$GOVERSION*.tar.gz
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin' >> ~/.bashrc
source ~/.bashrc && go version
#REQUIRES -Version 2.0
<#
.SYNOPSIS
Geth build script for Windows
.DESCRIPTION
A Powershell script to install dependencies for Windows and build go-ethereum binaries.
Make sure to run `Set-ExecutionPolicy RemoteSigned` in an Adminisrative Powershell window first.
.NOTES
File Name : geth-posh-install.ps1
Author : Taylor Gerring (taylor.gerring@gmail.com)
[
{
"constant": false,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "removeOwner",
{
"nonce": "0",
"difficulty": "0x0",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x",
"gasLimit": "0x2FEFD8",
"alloc": {}
}
#!/bin/bash
# Set versions
ETHTAG="release"
# System information
UBUNTUVER=`lsb_release -r|awk '{print $2}'`
# Ensure the latest version of cmake
if [[ $UBUNTUVER == "14.04" ]];