Skip to content

Instantly share code, notes, and snippets.

View RobinBoers's full-sized avatar
curious

Robin RobinBoers

curious
View GitHub Profile
@RobinBoers
RobinBoers / listen-for-all-events.js
Created August 18, 2023 10:09
Simple script for listening to all events for an element
let element = window;
Object.keys(window).forEach((key) => {
if (/^on/.test(key)) {
element.addEventListener(key.slice(2), (event) => {
if(event.type.includes("mouse") || event.type.includes("pointer") || event.type.includes("key")) return;
console.log(event);
});
}
});
@RobinBoers
RobinBoers / settings.json
Created August 3, 2023 17:33
VSCode preferences
{
// Global
"window.restoreWindows": "folders",
"editor.wordWrap": "on",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.tabSize": 2,
// Theming / setup
@RobinBoers
RobinBoers / gsc2bunny.sh
Created August 2, 2023 19:26
Simple script to migrate the contents of a Google Cloud Storage bucket to a bunny.net Storage Zone.
#!/bin/sh
# Script to copy files from GCS bucket to Bunny(.net) Storage.
# This script assumes you're logged into the `gcloud` cli, and
# that all the files are at the top-level of the bucket and/or zone.
# Usage:
# ./copy.sh <BUCKET> <ZONE> <PASSWORD> [FLAGS]
# Arguments:
# $1: GCS bucket ID
@RobinBoers
RobinBoers / aws2bunny.sh
Created August 2, 2023 19:25
Simple script to migrate the contents of an AWS S3 bucket to a bunny.net Storage Zone.
#!/bin/sh
# Script to copy files from GCS bucket to Bunny(.net) Storage.
# This script assumes you're logged into the `gcloud` cli, and
# that all the files are at the top-level of the bucket and/or zone.
# Usage:
# ./copy.sh <BUCKET> <ZONE> <PASSWORD> [FLAGS]
# Arguments:
# $1: S3 bucket ID
@RobinBoers
RobinBoers / package.json
Last active December 5, 2024 11:25
Script to authenticate with the Somtoday API via SSO, by intercepting the redirect to the app.
{
"dependencies": {
"axios": "^1.4.0"
}
}
@RobinBoers
RobinBoers / element-dark.json
Created June 11, 2023 07:28
SchildiChat Desktop element theme
{
"name": "Schildi Element Dark",
"is_dark": true,
"colors": {
"primary-color": "#0dbd8b"
}
}
@RobinBoers
RobinBoers / element-light.json
Created May 14, 2023 16:55
vector-im/element-web default light theme
{
"name": "Default light theme",
"is_dark": false,
"colors": {
"accent-color": "#0DBD8B",
"primary-color": "#238CF5",
"warning-color": "#FF4B55",
"sidebar-color": "#27303A",
"roomlist-background-color": "#F3F8FD",
@RobinBoers
RobinBoers / gitea-github-layout.css
Last active June 10, 2023 20:04
Bit of CSS that makes Gitea more like GitHub. Currently used on https://git.geheimesite.nl.
.organization.profile .ui.container:first-child {
margin: 38px auto;
}
.organization.profile p:empty {
display: none;
}
.organization.profile .org-avatar {
width: 130px;
@RobinBoers
RobinBoers / remote-car.md
Last active July 26, 2022 15:11
Remote car with line following, hook grip thingie and remote control using micro:bit MOVE motor and Waveshare joystick controller.

MOVED TO REPO:

@RobinBoers
RobinBoers / neopunk.css
Last active September 20, 2022 15:09
Neopunk: my personal neopub theme.
/** General **/
html {
margin-left: calc(100vw - 100%);
margin-right: 0;
scroll-behavior: smooth;
box-sizing: border-box;
background-color: rgb(255, 102, 102);
background: linear-gradient(-45deg, #F59E0B, #DB2777, #0995ad, #38BDF8);
background-size: 400% 400%;