Skip to content

Instantly share code, notes, and snippets.

View openoms's full-sized avatar
🏗️
building

openoms openoms

🏗️
building
View GitHub Profile
@openoms
openoms / do-lndbackup.sh
Last active March 11, 2019 09:39 — forked from vindard/do-lndbackup.sh
A script designed for the "Raspibolt" configuration that creates a backup of the `.lnd` folder, packages it into a `.tar` archive and then uploads it to Dropbox
#!/bin/bash
# wget https://gist.github.com/openoms/7d62d0e02f121bc5d668ed4e1be1ebba/raw/a362385adfce44ad130af39e2ccc60086128173f/do-lndbackup.sh
# sudo chmod +x do-lndbackup.sh
# sudo ./do-lndbackup.sh
# DROPBOX API KEY
APITOKEN="DROPBOX-API-KEY"
if [ $APITOKEN="DROPBOX-API-KEY" ] ; then
@openoms
openoms / install_openbazaar_on_RaspiBlitz
Last active March 10, 2019 15:28
Install OpenBazaar on a RaspiBlitz, install OpenBazaar client and migrate the store contents
# https://www.zokos.com/blog/site/public/2019/01/12/Self-Host%20your%20Own%20OpenBazaar%20Store/
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install build-essential git -y
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=/usr/local/gocode
export PATH=$PATH:$GOPATH/bin
go get github.com/OpenBazaar/openbazaar-go
@openoms
openoms / BTCPayServer on Raspiblitz
Created January 23, 2019 11:55 — forked from normandmickey/BTCPayServer on Raspiblitz
Install BTCPayServer on RaspiBlitz
#Install Dot-Net for ARM
cd /home/admin
sudo apt-get -y install libunwind8 gettext
wget https://download.visualstudio.microsoft.com/download/pr/201cbc49-c122-4653-a6c6-0680643d9a26/1951cfc077d868a31563a5a172d18d78/dotnet-sdk-2.1.500-linux-arm.tar.gz
wget https://download.visualstudio.microsoft.com/download/pr/9c5d6af2-868c-4021-8b25-4913daca41c3/46cfc8ddb9b8f10ebd56de1b1a534e32/aspnetcore-runtime-2.1.6-linux-arm.tar.gz
sudo mkdir /opt/dotnet
sudo tar -xvf dotnet-sdk-2.1.500-linux-arm.tar.gz -C /opt/dotnet/
sudo tar -xvf aspnetcore-runtime-2.1.6-linux-arm.tar.gz -C /opt/dotnet/
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
dotnet --info
@openoms
openoms / gist:0668dee5d6ffc28bf9f7486244c40939
Created December 13, 2018 07:27
WSL turorial for the BUIDL bootcamp
here is all you need to do to follow along with the Linux command line in Windows:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
Start WSL by typing `bash` in the file explorer address bar in the desired folder
update the packages:
`sudo apt-get update`
`sudo apt-get upgrade`
intall git, pip and virtualenv:
`sudo apt-get install git`
`sudo apt-get install python3-pip`
`python3 -m pip install virtualenv`
@openoms
openoms / shortcuts
Last active December 11, 2018 12:00
jupyter notebook
command palette: ctrl + shift + F
pressing escape puts you in command mode, which allows you to easily create/delete/move cells
to run: shift + enter
delete cell -> d, d
undo -> z
add cell above -> a
add cell below -> b

Keybase proof

I hereby claim:

  • I am openoms on github.
  • I am oms (https://keybase.io/oms) on keybase.
  • I have a public key ASCqWY7yVe1u69KVVODvL2nZLwnU76k0y0nIS2YYbwwXaQo

To claim this, I am signing this object: