Skip to content

Instantly share code, notes, and snippets.

@dbriggsie
dbriggsie / export_peers.sh
Created June 17, 2020 18:32 — forked from assafmo/export_peers.sh
Export a list of peers from your Enigma blockchain node
#!/bin/bash
curl -s http://bootstrap.mainnet.enigma.co:26657/net_info |
jq -cr '.result.peers[] | [.node_info.id,.remote_ip,.node_info.listen_addr] | @csv' |
tr -d \" |
tr , @ |
perl -pe 's#\@tcp://.+?:#:#g' |
sort > /tmp/peers.txt
echo "# Generated at $(date -u --rfc-3339=seconds) by https://gist.github.com/assafmo/a39fdb535f74ce2d6493a1a3f695e4ca" > /home/ubuntu/peers/peers.txt
@dbriggsie
dbriggsie / setup.sh
Last active October 10, 2018 04:43 — forked from integrii/setup.sh
uTorrent Server (utserver) on Centos 7 (x86_64)
#!/bin/bash
# INSTALL ON CentOS 7+ Only
yum install glibc libgcc openssl098e.i686 krb5-libs libcom_err zlib keyutils-libs libselinux glibc glibc.i[36]86 libgcc libgcc.i[36]86 openssl openssl.i[36]86 krb5-libs krb5-libs.i[36]86 libcom_err libcom_err.i[36]86 zlib zlib.i[36]86 keyutils-libs keyutils-libs.i[36]86 libselinux libselinux.i[36]86 openssl098e-0.9.8e-29.el7.centos.2.i686 -y
ln -s /usr/lib/libssl.so.0.9.8e /lib/libssl.so.0.9.8
ln -s /usr/lib/libcrypto.so.0.9.8e /lib/libcrypto.so.0.9.8
mkdir /var/utserver
wget -O /var/utserver/utorrent-server-3.0-25053.tar.gz http://download.utorrent.com/linux/utorrent-server-3.0-25053.tar.gz
cd /var/utserver/
tar zxf utorrent-server-3.0-25053.tar.gz
mv /var/utserver/utorrent-server-v3_0/* /var/utserver/
@dbriggsie
dbriggsie / ReadMe.md
Last active September 24, 2018 10:05
Guide to Build & Run Tron Fullnode on Windows

Guide to Build & Run Tron Fullnode on Windows

This guide is for running a Fullnode NOT a SR or (Block Producing Node).

Getting Started

All you need is a Windows Machine that has Java Development Kit 1.8 Installed. Preferably a Windows Machine that will stay online 24/7.

Prerequisites

@dbriggsie
dbriggsie / raspberry-pi-vpn-router.md
Created September 21, 2018 19:03 — forked from superjamie/raspberry-pi-vpn-router.md
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

### Keybase proof
I hereby claim:
* I am dbriggsie on github.
* I am dbriggsie (https://keybase.io/dbriggsie) on keybase.
* I have a public key ASB52C7LNQIbvBZGkpZMvYjHk8mas1dgr0x1j_wL-xvzyQo
To claim this, I am signing this object: