Skip to content

Instantly share code, notes, and snippets.

View 0fflineuser's full-sized avatar

0fflineuser 0fflineuser

View GitHub Profile
@0fflineuser
0fflineuser / import.sh
Last active September 29, 2025 14:56
migrate all of a github user repos from github to gitea
#!/usr/bin/env bash
set -e
GITHUB_USERNAME=
# https://github.com/settings/personal-access-tokens
GITHUB_TOKEN=
GITEA_USERNAME=
# https://<gitea_domain>/user/settings/applications
GITEA_TOKEN=
@0fflineuser
0fflineuser / how-to.org
Last active April 7, 2025 02:07
ZOffline docker-compose + Nginx reverse proxy setup

ZOffline docker-compose + Nginx reverse proxy setup

This assumes usage of systemd and sudo.

I only tested this with the server running on a raspberry pi 4, the zwift client running on Android and the DNS records changed on the router.

Install dependencies

  1. Install Docker
  2. Install nginx

Create the docker-compose file

@0fflineuser
0fflineuser / qutebrowser-tldx
Last active September 7, 2025 19:28
Qutebrowser - Too Long Didn't X, qutebrowser userscript using LLM's to summarize text, pdf and video.
#!/bin/bash
# Inspired by TL;DW seen on https://news.ycombinator.com/item?id=43021044 with it's source code at https://github.com/stong/tldw I copy pasted the video prompts in it.
#
# Dependencies: bash, sed, jq, yt-dlp, curl, dmenu, tsp, pdftext(python-pdftext), trash(trash-put), sponge(moreutils)
# Compatibility: Only tested on Arch btw
#
# IMPORTANT: curl uses the --insecure to download pdf's and it is not recommanded. https://curl.se/docs/sslcerts.html
# IMPORTANT: Don't forget to edit your api keys, the script currently uses pass
#
# This script was extracted from my qutebrowser config.