Skip to content

Instantly share code, notes, and snippets.

View RobinBoers's full-sized avatar
curious

Robin RobinBoers

curious
View GitHub Profile
@RobinBoers
RobinBoers / deploy.yaml
Created April 10, 2022 09:28
GitHub action to deploy my website via FTP
on:
push:
branches: [ master ]
name: Deploy website via FTP
jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
@RobinBoers
RobinBoers / README.md
Last active May 3, 2022 10:00 — forked from dianoetic/README.md
A GitHub Action for sending webmentions after your site builds

Send Webmentions with GitHub Actions

Action that uses curl to send your webmentions. It gets the most recent addition to a JSON feed (ideally, your latest post), looks for the value of a key called uri (ideally, your post's permalink) and sends webmentions for it.

The services currently in the file are webmention.app and brid.gy, but any service that can be triggered with a POST request will work fine with this.

This workflow file is run once another GitHub Action named "Build" completes successfully.

Usage

@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%;
@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 / 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 / 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 / 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 / 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 / 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 / som-sidebar.css
Last active September 21, 2023 15:17
A sidebar-styled layout for Somtoday (very much a WIP, isn't responsive yet!)
@-moz-document domain("elo.somtoday.nl") {
body {
display: grid !important;
grid-template-columns: 1fr 6fr !important;
grid-template-rows: min-content 1fr !important;
width: 100% !important;
}
body, html {
height: 100% !important;