Skip to content

Instantly share code, notes, and snippets.

View Jensderond's full-sized avatar

Jens de Rond Jensderond

  • Redkiwi
  • The Netherlands
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jensderond on github.
  • I am jensderond (https://keybase.io/jensderond) on keybase.
  • I have a public key whose fingerprint is A680 CFDB D545 2E06 3786 77B0 79A5 87AD 61E9 F8E1

To claim this, I am signing this object:

@Jensderond
Jensderond / javascript.json
Created October 4, 2019 06:02 — forked from dceddia/javascript.json
VSCode Snippets for React
{
"Insert a function": {
"prefix": "f",
"body": [
"function $1($2) {\n $0\n}\n"
],
"description": "Insert a function"
},
"const arrow": {
"prefix": "c>",
@Jensderond
Jensderond / Makefile
Created July 15, 2020 10:48
Clean up old certificates Traefik - Tested with Traefik 2.2.x
acmefile = acme.json
traefik_dashboard = <TRAEFIK_DASHBOARD_URL>
auth_user = <USERNAME>
auth_password = <PASSWORD>
.SILENT: clean
.PHONY: clean
clean:
curl -s "https://$(auth_user):$(auth_password)@$(traefik_dashboard)/api/http/routers" | jq -r ".[]" | jq ".rule" | sed "s/\"Host(\`//g;s/\`)\"//g" | uniq > existing_frontends;
cat $(acmefile) | jq ".default.Certificates[].domain.main" | sort | uniq | sed "s/\"//g" > existing_certs;
@Jensderond
Jensderond / animated-chevron-left.tsx
Last active March 2, 2021 16:27
React Animated Chevron to Close icon using Framer motion
function AnimatedChevronLeft(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
fill="none"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="1em"
height="1em"
{...props}
>
@Jensderond
Jensderond / ffmpeg_commands.txt
Created February 9, 2022 15:05 — forked from noln/ffmpeg_commands.txt
Handy FFMPEG Commands for Quickly Processing GoPro Videos
1) Concatenate a list of videos into one
ffmpeg -f concat -safe 0 -i tojoin.txt -c copy output.mp4
// Format of tojoin.txt:
file 'file0.MP4'
file 'file1.MP4'
file 'etc..
2) Scale down 4k video to
@Jensderond
Jensderond / meili-status.sh
Created June 11, 2026 11:26
meili-status.sh — Check Meilisearch indexes and document counts
#!/usr/bin/env bash
#
# meili-status.sh — Check Meilisearch indexes and document counts.
#
# Talks directly to the Meilisearch HTTP API using the master key, so it needs
# nothing from Craft/DDEV. Use it to verify a migration/reindex finished:
# it lists every index, how many documents each holds, and whether any index
# is still indexing.
#
# Usage (on the server, where Meilisearch listens on localhost:7700):
@Jensderond
Jensderond / parking-slinge.js
Last active July 10, 2026 07:58
Scriptable parking places slinge
let url = "https://kaartlaag.rotterdam.nl/api/layers/15249.json"
let r = new Request(url)
let data = await r.loadJSON()
let totalSpaces = 0
for (let feature of data.features) {
let title = feature.properties.title
if (title && title.includes("P+R Slinge")) {
for (let m of feature.properties.meta) {