Skip to content

Instantly share code, notes, and snippets.

@vkbo
vkbo / upscaleDS9.py
Last active May 2, 2024 17:48
Script used to upscale ST:DS9 from PAL DVD to HD using Topaz Video AI and Iris V1 model
"""
Upscale: Star Trek Deep Space Nine
Source: PAL DVD
AI Model: Topaz Video AI 3.4, Iris V1
"""
import sys
import subprocess
from pathlib import Path
@AntonFriberg
AntonFriberg / README.md
Last active July 2, 2025 23:04
Multiple Python Installations on Linux Using Mise-en-Place (an asdf rust clone)

Multiple Python Installations on Linux Using Mise

Note: Mise was previously called RTX

I have tried a lot different ways of managing multiple Python versions on different Linux systems.

  • pyenv
    • Uses shims which is confusing, especially for new users
  • Compiling from source
@kylehughes
kylehughes / dataview_table_column-reflow.css
Created May 21, 2023 00:13
CSS for Dataview in Obsidian to give maximum width to the first column, prevent all columns from wrapping, and truncate the first column when necessary.
.table-view-table {
width: 100%;
}
.table-view-table td:not(:first-child) {
white-space: nowrap;
}
.table-view-table tr td:first-child, tr th:first-child {
overflow: hidden;
@gilangvperdana
gilangvperdana / nginx-minio-static.md
Last active October 7, 2025 12:56 — forked from harshavardhana/nginx-minio-static.md
How to configure static website using Nginx with MinIO ?

How to configure static website using Nginx with MinIO ?

1. Install nginx

2. Install minio

3. Install mc client

  • Add Minio
mc config host add <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY>
mc config host list
@Birch-san
Birch-san / zfs-home-encryption-ubuntu.md
Last active October 3, 2025 19:31
ZFS home encryption Ubuntu 22.10

I started with a basic Ubuntu 22.10 installation, where I chose in the installer to use ZFS as my volume manager.
I wanted to encrypt my home folder.

I followed the article (and comments, including Christoph Hagemann's) from:
https://talldanestale.dk/2020/04/06/zfs-and-homedir-encryption/

To achieve:

  • Home directory (a ZFS rpool mount) is encrypted
  • You are only prompted for password if you are trying to login to that user
@MarkusPic
MarkusPic / .gitlab-ci.yml
Last active July 14, 2025 13:29
logseq-publish-for-gitlab
pages:
image: ghcr.io/pengx17/logseq-base:master
stage: deploy
script:
- mkdir public
- mv publish.mjs /home/logseq/publish.mjs
- cd /home/logseq
- "xvfb-run node /home/logseq/publish.mjs -p $CI_PROJECT_DIR -t $CI_PROJECT_DIR/public/build_trace.txt -o $CI_PROJECT_DIR/public"
artifacts:
paths:
@hydrz
hydrz / install.sh
Last active September 15, 2025 10:10
High Availability K3s and Kube-vip with Cilium
#!/bin/sh
set -e
set -o noglob
# Usage: ./install.sh [options]
#
# Example:
# Installing on first master node run:
# ./install --num 3 --vip 192.168.2.10 --iface eth0
# Installing on other master nodes run:
@leoc
leoc / config.ru
Created October 5, 2022 11:24
XML-RPC-TAN handler for hibiscus-server
# copy to: config.ru
# install gems: rack rack-rpc xmlrpc byebug awesome_print
# run: rackup -o 0.0.0.0 -p 3000 config.ru
require 'builder'
require 'rack/rpc'
require 'awesome_print'
require 'byebug'
require 'base64'
@sjeandeaux
sjeandeaux / github-action-docker.yaml
Created September 9, 2022 07:47
Github Action and Google Workload Identity
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v2
- id: auth
uses: google-github-actions/[email protected]
@ashleykleynhans
ashleykleynhans / README.md
Last active November 6, 2025 12:38 — forked from dlage/README.md
Namecheap DNS to zone file