Skip to content

Instantly share code, notes, and snippets.

@samelie
samelie / utm-nix.md
Created November 13, 2025 17:43
NixOS on UTM for Apple Silicon: Complete Setup Guide

NixOS on UTM for Apple Silicon: Portable Configuration Research

Overview

Creating portable, automated NixOS VMs on Apple Silicon Macs using UTM virtualization.

Key Projects

1. ciderale/nixos-utm ⭐21

URL: https://github.com/ciderale/nixos-utm Purpose: Automate creation of UTM-based NixOS VMs

@samelie
samelie / format-drive.sh
Created November 8, 2025 17:00
Format external drives for Raspberry Pi and macOS compatibility
#!/bin/bash
##############################################################################
# format-drive.sh - Format external drives for Raspberry Pi and macOS
# Runs from macOS, formats drive with compatibility for both platforms
##############################################################################
set -euo pipefail
# Colors for output
@samelie
samelie / main.ts
Created February 26, 2024 05:41
browser code
1. Deploy to Cloudflare workers
2. Proxy ytdl-core thru the proxy

Project Contour, grpc-web, GKE, cert-manager, tanka

The goal is to get a project off the ground from just a simple domain to an application running a g RPC server accessible via grpc-web on GKE.

Clone the repository so you have access to each individual yaml file. https://github.com/projectcontour/contour/blob/9c14f3d4a7/examples/contour/README.md

There is only one line to add to make this work on GKE.

Copy the files /examples/contour to a new directory eg :my-dir

@samelie
samelie / rclone_tips.md
Last active December 6, 2019 21:17
using rclone

filtering

rclone copy --exclude='*' --include "*Ch4.*" ~/Downloads itxy:pharo

rclone mount itxy: ~/Documents/gcfs/

@samelie
samelie / yt-ffmpeg
Created October 12, 2019 23:02
ffmpeg concat youtube-dl playlist
# Concat from youtube playlist
## create concat file
`youtube-dl -g -f 22 https://www.youtube.com/playlist\?list\=PLuTh1a1eg5vbXH5Ndg2819Fim-kQb4C32 | sed 's/^/file /' >> c.txt`
*Couldnt figure out how to add single-quotes around the urls *
## concat
@samelie
samelie / usenet.md
Last active September 19, 2019 16:09
rsync ssh + 7z + par2

Prepare files for usenet on a remote server. (dont waste your CPU!)

Upload all the files matching a pattern (Wake*). This assumes ssh config

IdentityFile <PRIVATE_KEY>
HostName <SERVER_IP>
User root
ServerAliveInterval 60
ServerAliveCountMax 2
@samelie
samelie / youtube-dl.md
Created July 23, 2019 03:30
youtube-dl private videos
@samelie
samelie / megatools_macos.md
Last active July 4, 2019 20:29
Use http://megatools.megous.com to download megafiles -- macOS

Brew

brew install megatools

Compile from source

This was needed because some support for encrytped folders was missing.