Skip to content

Instantly share code, notes, and snippets.

View ikidd's full-sized avatar

Ian Kidd ikidd

  • Alberta, Canada
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Turtle Chocolate Chip Cookies</title>
</head>
<body>
<h1>Turtle Chocolate Chip Cookies</h1>
<p>A delicious recipe for turtle chocolate chip cookies, perfect for satisfying your sweet tooth.</p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Turtle Chocolate Chip Cookies</title>
</head>
<body>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
{
"@context": "https://schema.org/",
"@type": "Recipe",
"name": "Turtle Chocolate Chip Cookies",
"image": "https://example.com/images/turtle-chocolate-chip-cookies.jpg",
"author": {
"@type": "Person",
"name": "Your Name Here"
},
"datePublished": "2023-02-21",
@ikidd
ikidd / NR_wgMonitor.json
Created December 4, 2022 18:58
Monitors ping to OpnSense WG endpoint and restarts if too long
[
{
"id": "76ce4664.bf196",
"type": "ping",
"z": "c612d869.d3336",
"mode": "timed",
"name": "Ping through VPN",
"host": "10.200.100.1",
"timer": "20",
"inputs": 0,
@ikidd
ikidd / gist:cb7181076e02e2d15cb91a753f08c1dc
Created January 8, 2022 04:51
Nodered Git integration
**Setting up Project addon**
In the user home folder/.node-red/settings.js change the EditorTheme.projects.enabled section to 'true' and restart NR.
Set up your project and in Settings-Git config, set up a new key and copy the public key to your git account. Create a repo on the account (private) to get the project files. Copy the keys it created from ~/.node-red/projects/.sshkeys to ~/.ssh
To connect to gitea instance:
add a file `~/.ssh/config` with the keynames you copied above
* Serving Flask app 'WGDashboard' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://10.10.251.19:10086/ (Press CTRL+C to quit)
10.200.100.2 - - [09/Sep/2021 20:47:15] "GET /get_config/wg0?search= HTTP/1.1" 302 -
10.200.100.2 - - [09/Sep/2021 20:47:15] "GET /signin HTTP/1.1" 200 -
@ikidd
ikidd / gist:c9da7a9851ebcee5b598d6a210d79cc5
Created February 20, 2021 05:20
NR flow for turning on a wifi plug if item waiting in CUPS queue
[{"id":"6ce5d159.126d78","type":"inject","z":"1c85885c.80412","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":60,"wires":[["6a9e0ede.6f203"]]},{"id":"f7a8e74b.708128","type":"html","z":"1c85885c.80412","name":"","property":"payload","outproperty":"payload","tag":".list > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(1) > a:nth-child(1)","ret":"html","as":"single","x":320,"y":120,"wires":[["84fd8aa5.c726a"]]},{"id":"6a9e0ede.6f203","type":"http request","z":"1c85885c.80412","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://10.10.251.161:631/jobs?","tls":"","persist":false,"proxy":"","authType":"","x":340,"y":60,"wires":[["f7a8e74b.708128"]]},{"id":"84fd8aa5.c726a","type":"split","z":"1c85885c.80412","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":100,"y":200,"wires":[["71725e4e.ef59d"]]},{"id":"71725e4
@ikidd
ikidd / source_select.xml
Last active January 18, 2021 06:39
Original style source select for Seren, pre-2.X
<window type="dialog">
<defaultcontrol>2</defaultcontrol>
<coordinates>
<left>0</left>
<top>0</top>
</coordinates>
<controls>
<!-- Background Texture -->
<control type="image">
<texture>$INFO[Window().Property(texture.white)]</texture>
**Upgrade process**
DO NOT USE WEB-BASED UPGRADE!
- put into Maintenance Mode
`sudo -u http php /usr/share/nginx/nextcloud/occ maintenance:mode --on`
- stop and/or disable nginx, maybe reboot
`systemctl disable nginx.service`
- unmount nextcloud data folder:
`zfs unmount zstore1/nextcloud_data`
- rename /usr/share/nginx/nextcloud folder to nextcloud.old
`mv nextcloud nextcloud.old`