Took a new note, saved it as a gist
This file contains 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
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
This file contains 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
rm -rf /etc/systemd/system/ceph* | |
killall -9 ceph-mon ceph-mgr ceph-mds | |
rm -rf /var/lib/ceph/mon/ /var/lib/ceph/mgr/ /var/lib/ceph/mds/ | |
pveceph purge | |
apt -y purge ceph-mon ceph-osd ceph-mgr ceph-mds | |
rm /etc/init.d/ceph | |
for i in $(apt search ceph | grep installed | awk -F/ '{print $1}'); do apt reinstall $i; done | |
dpkg-reconfigure ceph-base | |
dpkg-reconfigure ceph-mds | |
dpkg-reconfigure ceph-common |
This file contains 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
## Proxmox remove subscription notice oneliner | |
## Credit to the original author whoever they are... | |
Run this command in the proxmox shell.. | |
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service | |
Restart Proxmox just incase. |
This file contains 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
right click start > Windows Powershell (Admin) | |
type notepad $profile and enter | |
``` | |
# Chocolatey profile | |
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | |
if (Test-Path($ChocolateyProfile)) { | |
Import-Module "$ChocolateyProfile" | |
} |
This file contains 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
## **Docker Install - Ubuntu 20.04** | |
16/05/2021 22:15 | |
``` | |
start | |
##Install prerequisites | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
##install Docker GPG keys | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
##Add to repository | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" |
This file contains 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
Windows Chia Log Tail | |
If you have nothing better to do with your time than watch what your Chia node is doing: | |
Edit C:\Users\<yourusername>\.chia\mainnet\config\config.yaml | |
log_level = INFO | |
Restart Chia | |
Open PowerShell and CD to C:\Users\<yourusername>\.chia\mainnet\log |
This file contains 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 | |
'./chia_plot -n 1 -t /chia-temp/ -d /chia-data/ -f farmer key -p pool key' | |
echo "Sleeping with 300 seconds time out ..." && sleep 300 | |
'./chia_plot -n 1 -t /chia-temp/ -d /chia-data/ -f farmer key -p pool key' | |
echo "Sleeping with 300 seconds time out ..." && sleep 300 | |
'./chia_plot -n 1 -t /chia-temp/ -d /chia-data/ -f farmer key -p pool key' | |
echo "Sleeping with 300 seconds time out ..." && sleep 300 | |
'./chia_plot -n 1 -t /chia-temp/ -d /chia-data/ -f farmer key -p pool key' | |
echo "Sleeping with 300 seconds time out ..." && sleep 300 | |
'./chia_plot -n 1 -t /chia-temp/ -d /chia-data/ -f farmer key -p pool key' |
This file contains 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 | |
spare show -a 91.155.134.134:9444 | |
spare show -a 36.33.55.58:9444 | |
spare show -a 151.48.36.178:9444 | |
spare show -a 58.243.176.211:9444 | |
spare show -a 37.15.211.235:9444 | |
spare show -a 46.160.81.241:9444 | |
spare show -a 203.132.94.177:9444 | |
spare show -a 84.120.162.49:9444 | |
spare show -a 184.147.69.175:9444 |
This file contains 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
<nav class="navbar navbar-inverse navbar-static-top"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="navbar-brand" href="#"><span class="glyphicon glyphicon-off" aria-hidden="true"></span> Balance</a> |
OlderNewer