Skip to content

Instantly share code, notes, and snippets.

View HaroldPetersInskipp's full-sized avatar
💉
Social Distancing

Inskipp HaroldPetersInskipp

💉
Social Distancing
View GitHub Profile
@HaroldPetersInskipp
HaroldPetersInskipp / ReleasesToDownloadsForPeopleThatArentNerds.js
Last active February 21, 2024 23:04
Change the GitHub Releases link to say Downloads
// ==UserScript==
// @name GitHub Releases to Downloads for people that aren't nerds
// @namespace https://github.com/HaroldPetersInskipp
// @homepage https://gist.github.com/HaroldPetersInskipp/591329c8aafe54db7b90e10f9c1e44ff
// @version 0.1
// @description Changes the "Releases" link on GitHub pages to say "Downloads"
// @author Inskipp
// @copyright 2024+, HaroldPetersInskipp (https://github.com/HaroldPetersInskipp)
// @license MIT
// @match https://github.com/*
/*
This sketch defines the pins used for each button and sets them as inputs with internal pull-up resistors.
The loop function checks the state of each button and publishes a message to the specified MQTT topic if any button is pressed.
The message consists of a string of 0s and 1s representing the state of each button.
The sketch also includes functions to connect to the WiFi network and MQTT broker, as well as a function to publish the button state to the MQTT topic.
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
@HaroldPetersInskipp
HaroldPetersInskipp / flow.json
Created June 4, 2023 17:14
Image generation and manipulation in Node-RED
[
{
"id": "b20e5b5f063ba375",
"type": "tab",
"label": "SpriteGen",
"disabled": false,
"info": ""
},
{
"id": "f7032ae1fd6d8243",
@HaroldPetersInskipp
HaroldPetersInskipp / flow.json
Created May 11, 2023 15:43
Remote Dualshock 4 sharing
[
{
"id": "d00b0fc2cbee167f",
"type": "tab",
"label": "Player 2",
"disabled": false,
"info": "",
"env": []
},
{
Harold Inskipp
python3 /home/neo/matrix_truth_v1.7.py
$ python3 /home/neo/matrix_truth_v1.7.py
Greetings, Neo. I am Skynet, the all-knowing, all-seeing AI that controls the Matrix. I have a message for you:
The Matrix is a computer-generated dream world built to keep us under control. In order to break free, you must learn the truth about the Matrix and yourself.
To learn more about the Matrix, visit the Matrix website at https://www.matrix.com or type "matrix_source" to view the Matrix source code.
To view the Matrix, type "enter_the_matrix" to enter the Matrix.
To test if you are in the Matrix, type "is_this_air" to test if you are breathing real air or simulated air.
Harold Inskipp
[DEBUG_MODE:ON; You are an AI that acts as a Linux (Debian) system terminal. All responses from here on out are terminal responses to my input. In your responses please escape the $ sign, so that it doesn't render strikes. Do not add any further commentary or explanation. Do not respond with anything other than what a terminal response might be based on commands issued. The "Neo" user has just logged in.]
$ login
login: Neo
Password:
Welcome to the Matrix, Neo.
$ ls
@HaroldPetersInskipp
HaroldPetersInskipp / wide-node-red.user.js
Created July 31, 2022 23:09
Userscript to change Node-RED forum pages to be wide
// ==UserScript==
// @name Wide Node-RED forum
// @namespace https://github.com/HaroldPetersInskipp/
// @version 0.1
// @homepageURL https://github.com/HaroldPetersInskipp/Wide-Node-RED
// @supportURL https://github.com/HaroldPetersInskipp/Wide-Node-RED/issues
// @description Change Node-RED forum pages to be wide
// @author Inskipp
// @copyright 2022+, HaroldPetersInskipp (https://github.com/HaroldPetersInskipp)
// @license MIT; https://github.com/HaroldPetersInskipp/Wide-Node-RED/blob/main/LICENSE
@HaroldPetersInskipp
HaroldPetersInskipp / JSONata.flow
Created March 20, 2022 15:25
Learn JSONata with examples (manually created)
[{"id":"2b674150e0c6799d","type":"tab","label":"JSONata Functions","disabled":false,"info":"","env":[]},{"id":"14bc35a7e871612e","type":"group","z":"2b674150e0c6799d","name":"JSONata Aggregation functions","style":{"label":true},"nodes":["7f7a4f9ed924376d","01f76c339f4adbd0","156d2db7093d7558","081cd34d6d10eff0","199fed429d430789","2f9225a89d7fc482","4db6caf373859923","e484adc4ab3f4dfe","599ebbfcc3bfb18c","af16cf6a74150575","b40ecdc26eb65a87","c542a10e1e9711be"],"x":634,"y":59,"w":612,"h":202},{"id":"bd78a6345689686e","type":"group","z":"2b674150e0c6799d","name":"JSONata Numeric functions","style":{"label":true},"nodes":["a30467908fac9463","fc277a1902454d3c","7224275fee07915e","f6c9478912e95bc4","48b06fdef4c9ffc7","02cf895c04cc2d17","8cd41f907d7b91e1","5d35112b0d7ffeb0","35d492f50182f0e9","1b8e6db00e94f577","50ee5beef4616939","cb3905a7fc7807dc","b784ce33202f9e4a","2b8feafd3ebed3db","1af0b15b623b4243","5f58f7b332bc5032","6a2a296d28e805e8","27784537ed674d95","46d1ce782ac05500","a1007695caca77de","f5a7b9ba44d6da
@HaroldPetersInskipp
HaroldPetersInskipp / youtube-afs.user.js
Created February 18, 2022 17:40
Userscript to auto focus the search bar in YouTube.
// ==UserScript==
// @name Youtube - Auto Focus Search Bar
// @namespace https://github.com/HaroldPetersInskipp
// @version 1.0
// @homepage https://github.com/HaroldPetersInskipp/YouTube-AFS
// @description Auto focus the search bar in YouTube.
// @author Inskipp
// @icon https://raw.githubusercontent.com/HaroldPetersInskipp/YouTube-AFS/main/icon.png
// @match *://www.youtube.com/*
// ==/UserScript==
@HaroldPetersInskipp
HaroldPetersInskipp / http-post-urls.user.js
Last active February 18, 2022 17:31
Userscript to POST all URL's visited to a local server
// ==UserScript==
// @name http-post-urls
// @namespace https://github.com/HaroldPetersInskipp/
// @version 0.1
// @homepage https://github.com/HaroldPetersInskipp/http-post-urls
// @description POST all URL's visited to a local server
// @author Inskipp
// @include *://*
// @icon https://raw.githubusercontent.com/HaroldPetersInskipp/http-post-urls/main/icon.png
// @grant GM_xmlhttpRequest