Skip to content

Instantly share code, notes, and snippets.

View dazeb's full-sized avatar
🎯
Focusing

Darren Bennett dazeb

🎯
Focusing
View GitHub Profile
@dazeb
dazeb / proxmox_nvidia.md
Created December 17, 2022 14:18 — forked from egg82/proxmox_nvidia.md
NVidia Proxmox + LXC

Proxmox

Find the proper driver at the NVidia website.

Note: Make sure to select "Linux 64-bit" as your OS

Hit the "Search" button.

@dazeb
dazeb / Github Cheat Sheet
Created September 4, 2022 20:08 — forked from keeperofthenecklace/Github Cheat Sheet
Github Cheat Sheet
Step B.) Creating a branch (and switching to the new branch in one line (Step 2)
**********
a.) git checkout -b [name of new branch]
eg. git checkout -b 2012Tryme
git fetch origin [remote-branch]:[new-local-branch] (Pulling a new branch from a remote repository)
b.) follow step 1
c.) git push origin 2012Tryme
** will add new branch to the repository on git hub
**********************
Step A.) Scheduling the addition of all files to the next commit (Step 1)
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@dazeb
dazeb / frontmatter-blog.md
Created October 9, 2021 14:21
frontmatter blog template
## Tutorial

### Step 1: Create your first blog post

1. Create a new file called `my-fourth-post.md` in the `./src/blog` directory

Your file explorer should now look like this:

```{8}
@dazeb
dazeb / taking-notes.md
Created October 9, 2021 13:45
new gist

Took a new note, saved it as a gist

@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>
#!/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 / 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'
@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
## **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"