Skip to content

Instantly share code, notes, and snippets.

deploying Electronero 2.0

⛓️INTERCHAINED ⚡Electronero Network ʕ•̫͡•ʔ-̫͡-ʕ•͓͡•ʔ-̫͡-ʕ•̫͡•ʔ-̫͡-ʔ shopglobal

deploying Electronero 2.0
View GitHub Profile
shopglobal /
Last active Jun 20, 2022 — forked from mzabriskie/
Check git status of multiple repos

If you're like me you have a dir like ~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually.


git-status [directory]

This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.

shopglobal /
Created Feb 18, 2022 — forked from yorickdowne/
Pruning Geth 1.10.x


Geth (Go-Ethereum) as of January 2022 takes about 500 GiB of space on a fast/snap sync, and then grows by ~ 10 GiB/week. This will fill a 1TB SSD in ~6 months, to the point where space usage should be brought down again with an offline prune.

Happily, Geth 1.10.x introduces "snapshot offline prune", which brings it back down to about its original size. It takes roughly 4 hours to prune the Geth database, and this has to be done while Geth is not running.

Caveat that while several folx have used offline pruning successfully, there is risk associated with it. The two failure modes we have seen already are:

  • There is 25 GiB or less of free disk space
shopglobal / geth-posh-build.ps1
Created Feb 5, 2022 — forked from tgerring/geth-posh-build.ps1
Geth build script for Windows Powershell
View geth-posh-build.ps1
Geth build script for Windows
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
File Name : geth-posh-install.ps1
Author : Taylor Gerring (
shopglobal / stuns
Created Dec 21, 2021 — forked from zziuni/stuns
STUN server list
View stuns
# source :
# A list of available STUN server.
shopglobal / gist:75870369efd042031f67e98976892850
Created Nov 3, 2017
How To Set Up Automatic Deployment with Git with a VPS
View gist:75870369efd042031f67e98976892850
For an introduction to Git and how to install, please refer to the introduction tutorial.
This article will teach you how to use Git when you want to deploy your application. While there are many ways to use Git to deploy our application, this tutorial will focus on the one that is most straightforward. I assume you already know how to create and use a repository on your local machine. If not, please refer to this tutorial.
When you use Git, the workflow generally is toward version control only. You have a local repository where you work and a remote repository where you keep everything in sync and can work with a team and different machines. But you can also use Git to move your application to production.
Server Setup
Our fictitious workspace:
shopglobal /
Created Aug 21, 2021 — forked from douglas/
Update all git repositories under a base directory
# store the current dir
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
shopglobal / spotify.js
Created Oct 2, 2017 — forked from daniel-j/spotify.js
A simple node.js program to listen to Spotify tracks, albums and playlists
View spotify.js
#!/usr/bin/env node
'use strict';
This is a simple Spotify cli-based client with optional Icecast2/shout support!
It should work for non-premium users, but you must connect your Spotify account to Facebook.
$ node spotify <spotify uris> <playlist uri> <album uri> <track uri> <etc...>
shopglobal / Copile C# Linux
Created Aug 26, 2018 — forked from lzomedia/Copile C# Linux
How to compile c# on ubuntu
View Copile C# Linux
Visual Studio
apt-get install mono-complete
and run from the command line :
xbuild mysolution.sln
xbuild myproject.csproj
shopglobal / SHA_256_hak.cpp
Created Jun 27, 2018 — forked from hak8or/SHA_256_hak.cpp
SHA-256 basic implementation in C++ with a test.
View SHA_256_hak.cpp
#include <iostream>
#include <sstream>
#include <bitset>
#include <vector>
#include <iomanip>
#include <cstring>
// By: hak8or
// To compile: g++ -std=c++0x SHA_256_hak.cpp -o SHA_256_hak
// To run self test just run the following: SHA_256_hak
shopglobal /
Last active Mar 24, 2018
LAMP stack on ubuntu 16.04

LAMP STACK Ubuntu 16.04

sudo apt-get update
sudo apt-get dist-update
sudo apt-get full-upgrade
sudo apt-get upgrade
sudo apt-get install mysql-server phpmyadmin php libapache2-mod-php php-mcrypt php-mysql php-cli vim build-essential libnet-libidn-perl php-all-dev php-common php-dev php-gd apache2

During the installation, your server will ask you to select and confirm a password for the MySQL "root" user. This is an administrative account in MySQL that has increased privileges. Think of it as being similar to the root account for the server itself (the one you are configuring now is a MySQL-specific account, however). Make sure this is a strong, unique password, and do not leave it blank.