Text of gist.github.com › mislav as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

mislav’s gists · GitHub

Skip to content Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Instantly share code, notes, and snippets. Mislav Marohnić mislav =(◉ᴥ◉)= 5.1k followers · 22 following The Netherlands 13:39 (UTC +01:00) https://mislav.net @mislav.net @mislav@hachyderm.io View GitHub Profile Recently created Least recently created Recently updated Least recently updated 1 file 0 forks 0 comments 1 star mislav / readeck-cleanup.sh Created February 3, 2026 21:49 #!/usr/bin/env bash # # Usage: # bash readeck-cleanup.sh <limit> # # This script is based on https://codeberg.org/gollyhatch/readeck-cleanup # # The script tries to refetch "broken" bookmarks (i.e. bookmarks that "have errors") or bookmarks # whose content is empty from either the original URL or, failing that, from the Wayback Machine.

If # fresh content is refetched, it replaces the broken bookmark but inherits its creation timestamp 1 file 0 forks 0 comments 0 stars mislav / Caddyfile Created September 12, 2025 10:41 { email hi@mislav.net } *.mislav.net { tls { # xcaddy build --with github.com/caddy-dns/dnsimple dns dnsimple {env.DNSIMPLE_API_TOKEN} } request_body { 1 file 0 forks 0 comments 0 stars mislav / bookmarklet.md Last active February 13, 2024 16:18 cooked.wiki bookmarklet javascript:window.location="https://cooked.wiki/"+window.location 1 file 2 forks 1 comment 11 stars mislav / windows-on-mac.md Last active February 21, 2024 23:38 Install Windows 11 in a virtual machine on macOS with an M1 CPU Based on https://docs.getutm.app/guides/windows/ You will need: A Windows 10 or Windows 11 license key; UTM for Mac - the App Store version is offered as a way to support the developers, since it's paid, but has the same features as the free build.

Obtain scripts that bootstrap an arm64 Windows 11 22H2 (I've chosen Windows Home edition and not Pro); brew install aria2 cabextract wimlib cdrtools minacle/chntpw/chntpw ; cd into the directory extracted in step 1 and bash uup_download_macos.sh - this will produce an ISO; In the UTM app, create a new “Virtualize” machine and mount the ISO file from the previous step; Check “Install drivers and SPICE tools”; 1 file 0 forks 0 comments 8 stars mislav / git-ssh-signing.sh Created September 1, 2022 15:45 # you must also upload the public key as signing key to https://github.com/settings/keys git config --global user.signingkey '~/.ssh/id_rsa' git config --global commit.gpgsign true git config --global gpg.format ssh # (optional) this file enables `git log --show-signature` and contains email addresses associated with public keys git config --global gpg.ssh.allowedsignersfile '~/.ssh/git-signers' 1 file 0 forks 0 comments 2 stars mislav / unifi-controller-cert.sh Last active August 27, 2024 01:55 Figuring how to assign your own SSL certificate to be used by the Unifi Controller web interface hostname="MYHOST" # set this to where the Unifi Controller is served from root_ca="rootCA.pem" root_ca_key="rootCA.key" cert="unifi.pem" cert_key="unifi.key" # these don't really matter csr="unifi.csr" pfx_password="whatever" 2 files 3 forks 3 comments 26 stars mislav / config.json Last active February 26, 2026 15:02 Experiment in using GitHub CLI to authenticate fetching docker images from GitHub Package Registry // ~/docker/config.json { "credsStore": "desktop", "credHelpers": { "docker.pkg.github.com": "gh", "ghcr.io": "gh" } } 1 file 0 forks 0 comments 0 stars mislav / keybindings.json Last active June 18, 2021 12:19 VS Code keyboard shortcut for quickly re-running the Go test under development.

Requires VS Code Go 0.26+ // > Preferences: Open Keyboard Shortuts (JSON) [ { "key": "shift+enter", "command": "go.test.cursorOrPrevious", "when": "editorTextFocus && editorLangId == 'go' && !findInputFocused && !replaceActive" }, { "key": "ctrl+shift+enter", "command": "go.test.package" 2 files 1 fork 0 comments 14 stars mislav / workflows-automerge.yml Last active August 19, 2024 15:40 Using GitHub CLI from GitHub Actions name: Auto-merge on: pull_request: types: [opened] jobs: automerge: runs-on: ubuntu-latest 1 file 0 forks 0 comments 0 stars mislav / label-copy.sh Last active February 15, 2021 14:19 # Usage: bash label-copy.sh <source-repo> <destination-repo> <label-names>... # # Requirements: GitHub CLI, jq # # Example: # brew install gh jq # bash label-copy.sh owner/repo1 owner/repo2 "bug" "help wanted" "feature" # set -e Newer Older You can’t perform that action at this time.