Skip to content

Instantly share code, notes, and snippets.

View install_golang.sh
#!/bin/bash
GO_VERSION=${GO_VERSION:=1.15.2}
cd /tmp/ \
&& wget -q https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz \
&& rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go*.tar.gz \
&& rm go$GO_VERSION*.gz
echo "Creating default Go folders"
@huglester
huglester / celo-release-candidate.md
Last active Apr 16, 2020
celo-release-candidate.md
View celo-release-candidate.md

CELO_GENESIS_VALIDATOR_SIGNER_ADDRESS=0x2a1BfF2452AcA1ca5FFABbD34b2744109d11E4f5 CELO_GENESIS_VALIDATOR_SIGNER_BLS_PUBLIC_KEY=0122d3f6ae5e2bc6fdee3cd35a3522ea519bfa6f365451fa275c4688bcfb5cec418fa053a8859981e973ea273ca68f014e840d0ccf18cc7c498742103c3116732ef197a9f90f50bf64f83754a86ad441fe9691bfdf384a1aaacf38430a2b1001 CELO_GENESIS_VALIDATOR_SIGNER_BLS_SIGNATURE=bfcafd40590a90c488358efe8cae948f248224bbf587c0755820a6c0870bdccbf211238484178828c74afc08868e9301 CELO_RELEASE_GOLD_BENEFICIARY_ADDRESS_1=0xB1dE485616f06cB6E244932cdEfe6c4678187684 CELO_RELEASE_GOLD_BENEFICIARY_ADDRESS_2=0x5E55d7bf906f8b35adF4b73462C1a45030a2E5c9

View celo-stake-off.md

CELO_VALIDATOR_GROUP_ADDRESS=e5de9f2d1535d5b2cf8d0ba91d1f92c475f88a3b CELO_VALIDATOR_ADDRESS=4a36b1eeb0178c9948cffb183a2333e98ebb888d

@huglester
huglester / update-gminer.sh
Last active Dec 26, 2019 — forked from rigamp/update-ttminer.sh
Update Hive TT-Miner to 3.0.7 Beta 1
View update-gminer.sh
#!/bin/sh
# (miner stop || true) && cd /tmp && curl -L --insecure -s -O https://gist.githubusercontent.com/huglester/14ff9b5b8b785303d028e1a4ad86c728/raw/update-gminer.sh -o update-gminer.sh && screen -dmS updater bash update-gminer.sh
dt=$(date '+%Y-%m-%d_%H:%M:%S');
DIRECTORY=/hive/miners/gminer/1.69
rm -fr /tmp/gminer
@huglester
huglester / ubunu18.bat
Last active Jan 16, 2019
ubutnu18 cleanup
View ubunu18.bat
echo 'datasource_list: [ None ]' | sudo -s tee /etc/cloud/cloud.cfg.d/90_dpkg.cfg
sudo apt-get purge cloud-init -y
sudo rm -rf /etc/cloud/; sudo rm -rf /var/lib/cloud/
sudo sh -c 'echo "rig2" > /etc/motd'
sudo rm /etc/update-motd.d/*
rig2 ALL=(ALL) NOPASSWD:ALL
@huglester
huglester / exim.routers.pre.conf
Last active Dec 7, 2018
/etc/exim.routers.pre.conf
View exim.routers.pre.conf
mv /etc/exim.routers.pre.conf /etc/exim.routers.pre.conf_BUG
echo 'lookuphost:
driver = dnslookup
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = remote_smtp
no_more' > /etc/exim.routers.pre.conf
service exim reload
View php71.sh
brew install nginx-full --with-http2
View openvz7-iproute-fix.sh
# prlctrl mount 118
# vzctl mount 118
cd /var/root/118/root
wget https://buildlogs.cdn.centos.org/c7.1511.u/iproute/20160623171333/3.10.0-54.el7_2.1.x86_64/iproute-3.10.0-54.el7_2.1.x86_64.rpm
# start container if not running
prlctrl enter 118
cd /root
rpm -e iproute --nodeps
@huglester
huglester / convert_ploop_to_simfs.sh
Created Sep 11, 2018 — forked from dlage/convert_ploop_to_simfs.sh
Bash script to convert an OpenVZ ploop container back to simfs
View convert_ploop_to_simfs.sh
#!/bin/sh
# ./convert_ploop_to_simfs.sh VEID
# chmod +x convert_ploop_to_simfs.sh
rsync_options='-aHv'
partition='vz'
if [ ! -e /etc/vz/conf/$1.conf ]; then
echo "Virtual server configuration file: /etc/vz/conf/$1.conf does not exist."
exit 1
fi
if [ ! -d /$partition/private/$1/root.hdd ]; then
@huglester
huglester / phpenv-ubuntu-xenial.sh
Created Jun 14, 2018 — forked from christopher-hopper/phpenv-ubuntu-xenial.sh
Install phpenv on Ubuntu 16.04 LTS (xenial)
View phpenv-ubuntu-xenial.sh
#!/usr/bin/env bash
# vim: ai ts=2 sw=2 et sts=2 ft=sh
# Check OS.
if [[ ! "${OSTYPE}" =~ "^linux" ]] || [[ ! "$(lsb_release -c 2>/dev/null)" =~ "xenial" ]]; then
(>&2 echo "Error: This script is for Ubuntu 16.04 LTS (xenial) not '${OSTYPE}'.")
exit 1;
fi
sudo apt-get update