Skip to content

Instantly share code, notes, and snippets.

using a raspberry pi as a wifi network access point + web server. so i can work on the ipad with a mini offboard web server with no internet connection at all.

setting up the rpi as a network access point hbut do not carry out the bridge instructions): https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md

setting up a VNC server: https://www.raspberrypi.org/documentation/remote-access/vnc/ (you can get it working straight on ipad away with the realvnc client (it uses unix authentication), but the realvnc interface is ... interesting ... so i downgraded to vnc authentication so that i could use "screens" app instead.

out there:

@pixelthing
pixelthing / raspberry4.md
Last active July 9, 2020 16:49
Raspberry Pi 4 dashboard notes

Differences when installing on a Pi4B 4Gb (as oppose to my previous installs on a 3B):

// JS SCRIPT TO USE WITH SCRIPTABLE APP + iOS14+ WIDGETS
//
// Requires Scriptable1.5+ and iOS14/iPadOS14
//
// Download and install Scriptableapp https://scriptable.app
// Add this script into Scriptable, then add a scriptable widget to your homescreen
// (only the smallest size has been tested), hold down on the widget, then tap "edit widget",
// select *this* script as the "Script File", and in the *Parmameter* input, paste in
// the API key you use to allow access to the data feed.
@pixelthing
pixelthing / gds-999.js
Created December 15, 2021 13:27
Browser favelet to rewrite all values in a GDS dashboard to 999.9
javascript:(() => {let allValues = document.querySelectorAll('.valueLabel,.barCell span,.cell-value, .data-cell, .compareLabel, .cell:not(.barCell)');allValues.forEach((el) => { let content = el.innerText; let contentArray = content.split(''); let contentArray2 = contentArray.map(letter => {return (Number.isNaN(parseInt(letter)) ? letter : %279%27)}); let content2 = contentArray2.join(%27%27); if (content !== content2) { let elInner = el.querySelector(%27span%27); if (elInner) { elInner.innerText = content2; } else { el.innerText = content2; } }})})()
@pixelthing
pixelthing / GA4-spash-favelet.js
Created May 13, 2022 14:09
Browser favelet for re-colouring Google Analytics 4 exploration graphs
javascript:(function () { const swaps = { '1f4495' : 'e6194B', '2f5ec4' : 'f58231', '356fdb' : 'ffe119', '4285f4' : 'bfef45', '4495f2' : '3cb44b', '45a5f5' : '42d4f4', '68bced' : '4363d8', '93d5ed' : '911eb4', 'bde9f2' : 'f032e6', 'dcf7fa' : 'a9a9a9', 'd0e5f5' : '800000', 'c0cef6' : '9A6324', 'b3baf7' : '808000', 'a6a7f9' : '469990', '968efa' : '000075', '8473f9' : 'fabed4', '765ee5' : 'ffd8b1', '694bd3' : 'fffac8', '5432b6' : 'aaffc3', '3f18a3' : 'dcbeff', }; for (const existingColour in swaps) { const replacementColour = swaps[existingColour]; const strokes = document.querySelectorAll(`[stroke="#${existingColour}"]`); if (strokes) { strokes.forEach(d => { d.setAttribute('stroke','#' + replacementColour) }); } const fills = document.querySelectorAll(`[fill="#${existingColour}"]`); if (fills) { fills.forEach(d => { d.setAttribute('fill','#' + replacementColour) }); } };})();