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 Aug 21, 2021 — 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 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 /
Created Mar 20, 2018 — forked from masak/
How is git commit sha1 formed

Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry.

Locally, I'm at this commit:

$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <>
Date:   Sun Apr 15 16:35:03 2012 +0200

    When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.
shopglobal /
Created Mar 1, 2018 — forked from 0mkara/
Ethereum private network configuration guide.

Create your own Ethereum private network


Used nodes:

Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Linux localhost.localdomain 4.14.5-200.fc26.x86_64 #1 SMP Mon Dec 11 16:29:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
shopglobal / gist:6e6f642e5cd7833832e404ff650f6bf4
Created Feb 17, 2018 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
View gist:6e6f642e5cd7833832e404ff650f6bf4
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
View ExportSlackHistory.php
// slack2html
// by @levelsio
shopglobal / selenium
Created Dec 21, 2017 — forked from adeubank/selenium
Set up selenium on Ubuntu 16.04 as a service
View selenium
case "${1:-''}" in
if test -f /tmp/
echo "Selenium is already running."
export DISPLAY=localhost:99.0
java -Dwebdriver.gecko.driver="/usr/lib/geckodriver/geckodriver" -jar /usr/lib/selenium/selenium-server-standalone.jar -port 4444 > /var/log/selenium/output.log 2> /var/log/selenium/error.log & echo $! > /tmp/