Skip to content

Instantly share code, notes, and snippets.

View ryder247's full-sized avatar

ryder247 ryder247

  • Bitnob
  • Accra, Ghana
View GitHub Profile
@ryder247
ryder247 / update-golang.md
Created March 16, 2025 14:33 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@ryder247
ryder247 / docker-compose.yml
Created August 2, 2024 00:23 — forked from ScriptBytes/docker-compose.yml
Docker compose file and example docker run command for my youtube video: https://youtu.be/gFjpv-nZO0U
version: '3.8'
services:
mongo:
image: mongo:7.0
environment:
MONGO_INITDB_ROOT_USERNAME: mongadmin
MONGO_INITDB_ROOT_PASSWORD: LikeAndSubscribe
ports:
- 27017:27017
volumes:
@ryder247
ryder247 / lnd.sh
Created August 13, 2022 07:42 — forked from mariodian/lnd.sh
LND start/stop script (lnd.service needed)
#!/bin/bash
if [ "$1" = "start" ]; then
echo "Starting Lightning Network"
echo "====================="
sudo service lnd start &
lncli unlock
elif [ "$1" = "stop" ]; then
echo "Stopping Lightning Network"
@ryder247
ryder247 / jq-cheetsheet.md
Created July 14, 2022 03:06 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

{
"countries": [
{
"country": "Afghanistan",
"states": ["Badakhshan", "Badghis", "Baghlan", "Balkh", "Bamian", "Daykondi", "Farah", "Faryab", "Ghazni", "Ghowr", "Helmand", "Herat", "Jowzjan", "Kabul", "Kandahar", "Kapisa", "Khost", "Konar", "Kondoz", "Laghman", "Lowgar", "Nangarhar", "Nimruz", "Nurestan", "Oruzgan", "Paktia", "Paktika", "Panjshir", "Parvan", "Samangan", "Sar-e Pol", "Takhar", "Vardak", "Zabol"]
},
{
"country": "Albania",
"states": ["Berat", "Dibres", "Durres", "Elbasan", "Fier", "Gjirokastre", "Korce", "Kukes", "Lezhe", "Shkoder", "Tirane", "Vlore"]
},
#!/bin/bash
sudo apt-get update
sudo apt-get -y upgrade
echo "1. server dependencies updated and upgraded"
echo " "
echo "2. installing build essentials and python-dev"