Skip to content

Instantly share code, notes, and snippets.

View dazeb's full-sized avatar
👁️

Darren Bennett dazeb

👁️
View GitHub Profile
@dazeb
dazeb / install.sh
Created January 21, 2021 16:50 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# 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"
@dazeb
dazeb / How to purge ceph installation on Proxmox
Created May 4, 2021 00:10
purge ceph install on proxmox
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
## 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.
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"
}
## **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"
@dazeb
dazeb / ChiaLogTail
Created May 23, 2021 00:09
If you have nothing better to do with your time than watch what your Chia node is doing:
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
@dazeb
dazeb / chia10.sh
Created June 15, 2021 13:43
Runs chia plotter command with delay between runs to allow for transferring
#!/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'
#!/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
@dazeb
dazeb / index.html
Created August 30, 2021 23:34
Start Bootstrap
<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>
@dazeb
dazeb / taking-notes.md
Created October 9, 2021 13:45
new gist

Took a new note, saved it as a gist