This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@DietPi:~# tail -n1000 -f /var/tmp/dietpi/logs/dietpi-automation_custom_script.log | |
| ***************************************** | |
| * RASPIBLITZ SD CARD IMAGE SETUP v1.1 * | |
| ***************************************** | |
| *** CHECK INPUT PARAMETERS *** | |
| will use code from branch --> 'DietPi-dev' | |
| *** CHECK INPUT PARAMETERS *** | |
| will use code from user --> 'openoms' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # from this comment https://github.com/bamarni/pi64/issues/4#issuecomment-292707581 | |
| echo -e "To stop simply press [ctrl]-[c]\n" | |
| Maxfreq=$(( $(awk '{printf ("%0.0f",$1/1000); }' </sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq) -15 )) | |
| while true ; do | |
| # Health=$(perl -e "printf \"%19b\n\", $(vcgencmd get_throttled | cut -f2 -d=)") | |
| Temp=$(vcgencmd measure_temp | cut -f2 -d=) | |
| RealClockspeed=$(vcgencmd measure_clock arm | awk -F"=" '{printf ("%0.0f",$2/1000000); }' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To run this script on your RaspiBlitz, copy the following line to the ssh terminal (after the #): | |
| # wget hhttps://raw.githubusercontent.com/rootzoll/raspiblitz/master/alternative.platforms/dietpi/dietpi.display.sh && sudo chmod +x dietpi.display.sh && ./dietpi.display.sh | |
| echo "Detect Base Image ..." | |
| baseImage="?" | |
| isDietPi=$(uname -n | grep -c 'DietPi') | |
| isRaspbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Raspbian') | |
| isArmbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Debian') | |
| isUbuntu=$(cat /etc/os-release 2>/dev/null | grep -c 'Ubuntu') | |
| if [ ${isRaspbian} -gt 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/channeldb/graph.go b/channeldb/graph.go | |
| index eaf3503c..9edd2955 100644 | |
| --- a/channeldb/graph.go | |
| +++ b/channeldb/graph.go | |
| @@ -3025,7 +3025,8 @@ func (c *ChannelGraph) ChannelView() ([]EdgePoint, error) { | |
| edgeIndex, chanID, | |
| ) | |
| if err != nil { | |
| - return err | |
| + return fmt.Errorf("failed fetching edge info "+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ###### User friendly interface script for use with ./dojo [command] ###### | |
| I set it up to be used with passwordless root login via ssh, as you need to be root to utilize | |
| the ./dojo [commands], also because I run everything headless from my laptop. This may not be | |
| for you if you don't want to permit root login to the machine running your Dojo. I have my VMs | |
| set up with passwordless pubkeys and UFW so that my host machine is the only one that can login | |
| to the VMs via ssh. It is somewhat of a security risk if you do not structure yourself properly, | |
| so please be cautious. | |
| At the end of the script there is haggard documentation on how to setup ssh pubkeys. |
OlderNewer