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:
I hereby claim:
To claim this, I am signing this object:
| { | |
| "Insert a function": { | |
| "prefix": "f", | |
| "body": [ | |
| "function $1($2) {\n $0\n}\n" | |
| ], | |
| "description": "Insert a function" | |
| }, | |
| "const arrow": { | |
| "prefix": "c>", |
| 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; |
| 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} | |
| > |
| 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 |
| #!/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): |
| 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) { |