Skip to content

Instantly share code, notes, and snippets.

View ikidd's full-sized avatar

Ian Kidd ikidd

  • Alberta, Canada
View GitHub Profile
* 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: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
@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,
{
"@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",
<!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/",
<!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>