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 / wide-node-red.user.js
Last active September 1, 2025 14:25
Userscript to change Node-RED forum pages to be wide
// ==UserScript==
// @name Wide Node-RED forum
// @namespace https://github.com/HaroldPetersInskipp/
// @version 0.1.2
// @homepageURL https://github.com/HaroldPetersInskipp/Wide-Node-RED
// @supportURL https://github.com/HaroldPetersInskipp/Wide-Node-RED/issues
// @downloadURL https://gist.github.com/HaroldPetersInskipp/8374a6ea6f3bb3f72517e9b4f0f941c6/raw/wide-node-red.user.js
// @updateURL https://gist.github.com/HaroldPetersInskipp/8374a6ea6f3bb3f72517e9b4f0f941c6/raw/wide-node-red.user.js
// @description Change Node-RED forum pages to be wide
// @author Inskipp
@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
Last active January 4, 2026 11:39
Userscript to auto focus the search bar in YouTube.
// ==UserScript==
// @name Youtube - Auto Focus Search Bar
// @namespace https://github.com/HaroldPetersInskipp
// @version 1.4.7
// @homepageURL https://github.com/HaroldPetersInskipp/YouTube-AFS
// @supportURL https://github.com/HaroldPetersInskipp/YouTube-AFS/issues
// @downloadURL https://gist.github.com/HaroldPetersInskipp/5129292f3750d99735c2a8b352a5651c/raw/youtube-afs.user.js
// @updateURL https://gist.github.com/HaroldPetersInskipp/5129292f3750d99735c2a8b352a5651c/raw/youtube-afs.user.js
// @description Auto focus the search bar in YouTube.
// @author Inskipp
@HaroldPetersInskipp
HaroldPetersInskipp / http-post-urls.user.js
Last active September 1, 2025 14:18
Userscript to POST all URL's visited to a local server
// ==UserScript==
// @name Log URLs
// @namespace https://github.com/HaroldPetersInskipp/
// @version 0.4.2
// @homepageURL https://github.com/HaroldPetersInskipp/http-post-urls
// @supportURL https://github.com/HaroldPetersInskipp/http-post-urls/issues
// @downloadURL https://gist.github.com/HaroldPetersInskipp/7476f0d7c9512b80b90211c0b5b90663/raw/http-post-urls.user.js
// @updateURL https://gist.github.com/HaroldPetersInskipp/7476f0d7c9512b80b90211c0b5b90663/raw/http-post-urls.user.js
// @description POST all URLs visited to a local server, excluding local files
// @author Inskipp
@HaroldPetersInskipp
HaroldPetersInskipp / flow.json
Created June 11, 2021 22:04
Learn function node examples
[{"id":"8bea4a66.a5f878","type":"tab","label":"Functions","disabled":false,"info":""},{"id":"a7c0f5a7.57ec9","type":"function","z":"8bea4a66.a5f878","name":"Data Types","func":"// DATA TYPES - String, Number, Boolean, null, undefined\nlet age = 31;\nlet fullname = 'Billy Bob';\nconst rating = 2.0;\nconst isCool = true;\nconst x = null;\nlet z; // undefined\n\n//STRINGS Template\nmsg.payload = 'My name is ' + fullname + 'and I am ' + age;\nreturn msg;\n// payload: \"My name is Billy Bob and I am 31\"","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":140,"wires":[["72665eb8.21a3b"]]},{"id":"aa67ce7a.e018e8","type":"inject","z":"8bea4a66.a5f878","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":150,"y":140,"wires":[["a7c0f5a7.57ec9"]]},{"id":"72665eb8.21a3b","type":"debug","z":"8bea4a66.a5f878","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"f