Skip to content

Instantly share code, notes, and snippets.

View in03's full-sized avatar
💭
Working on new projects!✨

Caleb Trevatt in03

💭
Working on new projects!✨
View GitHub Profile
@withakay
withakay / timemachine-backups-using-usb-passthrough-and-proxmox.md
Last active March 1, 2025 21:07
A quick guide to setting up Time Machine backups with an Ubuntu VM on Proxmox with USB Passthrough

Setting up Time Machine Backups Using Proxmox (v8.2) and Ubuntu (24.04)

This guide assumes you already have a basic Ubuntu 24.04 VM running on Proxmox. If not, you should set that up first. The VM can be fairly minimal; for example, 8GB of storage and 1GB of RAM should suffice.

It also assumes you have a USB Storage device that you want to use for Time Machine backups

Mapping a USB Drive to the Ubuntu VM Using Virtio in Proxmox

Mapping a USB drive via the Proxmox GUI is quick and easy, but the performance may be suboptimal because the driver is emulated. For better performance, it's recommended to use the virtio driver, which is paravirtualized. Paravirtualization allows the guest VM to interact more directly with the hardware, improving I/O performance compared to emulated devices.

@mattdy
mattdy / .traefik-cloudflare-tunnel
Last active April 14, 2025 13:43
Traefik on Docker Swarm accessed via Cloudflare Tunnel
Please see https://mattdyson.org/blog/2024/02/using-traefik-with-cloudflare-tunnels for a detailed write-up of this configuration
@orhun
orhun / docker-compose.yml
Last active May 10, 2024 06:20
Set up `softserve` to mirror repositories from GitHub
version: "3.6"
services:
soft-serve:
image: charmcli/soft-serve:latest
container_name: soft-serve
restart: unless-stopped
ports:
- 23231:23231
- 23232:23232
- 23233:23233
@vrtmrz
vrtmrz / deploy_couchdb_to_flyio_v2_with_swap.ipynb
Last active February 7, 2024 10:19
deploy_couchdb_to_flyio_v2_with_swap.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@talkingmoose
talkingmoose / Download and Install Jamf Connect.zsh
Last active January 19, 2025 21:34
Downloads and installs the latest available Jamf Connect software for Mac directly on the client. This avoids having to manually download and store an up-to-date installer on a distribution server every month.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/talkingmoose/94882adb69403a24794f6b84d4ae9de5
@talkingmoose
talkingmoose / Jamf Pro Computer EraseDevice.zsh
Last active February 18, 2025 00:26
Use Jamf Pro Classic API to send EraseDevice command (Erase All Content and Settings on macOS Monterey and newer) to one or multiple computers by Jamf Pro ID. This script doesn't support computers locked using Device Lock with unique passcodes.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/d8dbdbc920cbaddd7d60f44f17bf268a
@serjflint
serjflint / trio_lru_cache.py
Created July 31, 2020 18:00
This gist is 100% port of Python built-in function functools.lru_cache for trio
import threading
import weakref
from collections import namedtuple
from functools import update_wrapper
import trio
# Idea of using weakref, trio.Lock and thread-local storage is given by Nathaniel J. Smith <[email protected]>
@haircut
haircut / modify-system-preferences-authorizations.py
Last active January 31, 2025 03:05
Backs up authdb, then modifies them so users can modify Energy Saver, Network, Printers & Scanners, Date & Time, Time Machine
#!/usr/bin/python
'''
Modifies authorizations database to allow standard users to change select
system preferences.
A great guide to available authorization rights can be found at:
https://www.dssw.co.uk/reference/authorization-rights/index.html
USE AT YOUR OWN RISK
'''
@kuntalchandra
kuntalchandra / client.py
Last active March 11, 2021 12:21
Python socket programming: server-client design.
import socket
import sys
def main():
soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = "127.0.0.1"
port = 8888
try:
soc.connect((host, port))
@akaleeroy
akaleeroy / _goto-opened-folders.md
Last active April 16, 2025 16:26
Easy Access to Currently Opened Folders

Easy Access to Currently Opened Folders

Windows Enhancement Productivity AutoHotkey v2

Enhance Open... or Save As... dialogs with a quick way to navigate to currently opened folders.

Easy Access to Currently Opened Folders v2 - Demo

This is an AutoHotkey v2 script that gives common file selection dialogs an extra feature: middle-clicking invokes a menu of currently opened folders. Say you want to save or upload something to/from a folder you've got open in Windows Explorer. The dialog box pops up with the last folder (from another project) or My Documents, and now you have to manually navigate to the folder you want, or copy-paste its path from the open Explorer window. I wanted to get to the active locations quicker. Recent Items wasn't exactly helping, so I made this by forking [FavoriteFolders.