All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
swee's Avatar

swee / TechSmart cheat

0 likes
0 forks
1 files
Last active 2 months ago
1 if("solution" in tsProjectInfos){let currentFile=document.querySelector(".mdl-tabs__tab.ts-editor-tab.is-active").innerText;tsProjectInfos.solution.textFileInfos.forEach((file)=>{if (file.name===currentFile){console.warn(file.content)}})}else{console.error("No solution found (probably a personal project)")}
swee's Avatar

swee / Unnamed Search Engine old source code

0 likes
0 forks
2 files
Last active 2 months ago
there was no logo image at that time, but I have one now.
1 <!DOCTYPE html>
2 <html data-bs-theme="dark" class="container text-white bg-dark">
3 <head>
4 <title>UnnamedSearchEngine</title>
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta name='description' content='Search engine with maximum compatibility.'>
7 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
8 <head>
9 </head>
10 <body class="container text-white bg-dark">
swee's Avatar

swee / clipboard_pass.py

0 likes
0 forks
1 files
Last active 2 months ago
1 import subprocess
2 import secrets
3 import string
4 alphabet = string.ascii_letters + string.digits
5
6 subprocess.run(["wl-copy"], input=(''.join(secrets.choice(alphabet) for i in range(20))).encode("UTF-8"))
swee's Avatar

swee / update_roundcube.py

0 likes
0 forks
1 files
Last active 2 months ago
1 from tqdm import tqdm
2 import requests
3 import sys
4 import os
5 import tarfile
6 import json
7 print("Checking latest version...")
8 req = requests.get("https://api.github.com/repos/roundcube/roundcubemail/releases/latest").json()
9 latest = req["tag_name"]
10 download = ""
swee's Avatar

swee / sweeupdate.py

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/usr/bin/python3
2 import os
3 import time
4 from flask import Flask, request, abort
5 app = Flask(__name__)
6
7 token = "<REDACTED>"
8
9 # Built static sites, NEEDS AUTH AND PAYLOAD
swee's Avatar

swee / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 $ zpool list
2 NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
3 oreo-hdds 928G 506G 422G - - 9% 54% 1.00x ONLINE -
4 ssd 232G 111G 121G - - 40% 47% 1.00x ONLINE -
swee's Avatar

swee / sync-to-navidrome.sh

0 likes
0 forks
1 files
Last active 3 months ago
1 #!/bin/sh
2 /usr/local/www/haiwen/seafile-server/seaf-fuse.sh start /mnt/seafile
3 rsync -av --delete-delay --chown=www:www /mnt/seafile/9838977055b648e5b2d10deb4d6acb62\@auth.local/4617d236-010d-4206-81fc-ebeb450ac3d5_Music/* /mnt/navidrome/
4 pkill -9 seaf-fuse
5 umount /mnt/seafile
swee's Avatar

swee / eatfish.desktop

0 likes
0 forks
3 files
Last active 3 months ago
1 <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
2 "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
3 <!-- /home/swee/.config/menus/applications-merged/eatfish.menu -->
4 <Menu>
5 <Name>Applications</Name>
6 <Menu>
7 <Name>eatfish</Name>
8 <Directory>eatfish.directory</Directory>
9 <Include>
10 <Filename>eatfish.desktop</Filename>
swee's Avatar

swee / gistfile1.txt

0 likes
0 forks
1 files
Last active 3 months ago
1 [2026-04-19T01:57:51.125Z] <ChaoticV> !puzzle hard doesn't just pull from wiktionary, i think it sometimes pulls from the free dictionary
2 [2026-04-19T01:57:52.279Z] <+tinsoldier> ⏱﹖﹥ XWord: Complete the following 'hard' word: _ _ _ m_ _ t (Meaning: lamentation grief)
3 [2026-04-19T01:57:56.100Z] <ChaoticV> lament
4 [2026-04-19T01:58:01.134Z] <user333_> yay! i can finally view it at not 133% scale!
5 [2026-04-19T01:58:02.228Z] <+tinsoldier> ⏱﹖﹥ Puzzle hint: The word begins with 'w'
6 [2026-04-19T01:58:03.481Z] <swee> lamenent
7 [2026-04-19T01:58:06.941Z] <ChaoticV> wlament
8 [2026-04-19T01:58:10.120Z] <ChaoticV> waament
9 [2026-04-19T01:58:12.351Z] <swee> walmart
10 [2026-04-19T01:58:17.438Z] <+tinsoldier> ⏱﹖﹥ Time's up. The answer was 'wayment'.
swee's Avatar

swee / Immich on FreeBSD?!

0 likes
0 forks
1 files
Last active 3 months ago

Yes, this is not clickbait! I set up Immich on FreeBSD yesterday without going insane, so I am documenting how I did this magic.

I am not using ML in this setup.

Note: I did steal some documentation and read the install script from https://github.com/arter97/immich-native

Requirements

  • A FreeBSD server (duh, tested in FreeBSD 15)
  • A Linux machine (for bootstrapping and building)
Newer Older

Powered by Opengist ⋅ Load: 201ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文