Skip to content

Instantly share code, notes, and snippets.

View swittk's full-sized avatar
😂
Residency life keeping me busy

swittk

😂
Residency life keeping me busy
View GitHub Profile
@okwes
okwes / immich_date_shift.py
Created October 29, 2024 04:15
Immich Bulk Date Shift. The Immich web ui only supports setting one time for many assets, this code allows the date of many assets to be shifted by x days, seconds etc. This will shift the date/time for all photos in a given album
# under CC0/Public Domain. Do as you like. NO WARRANTY
# make venv, pip install requests python-dateutil
# Replace the 3 variables at the top and adjust the function call for adjust_iso8601_time() to suit your desired time change for all photos in the album you give.
# Better code may exist but this is a quick fix to a problem I had
import requests
from datetime import datetime, timedelta
from zoneinfo import ZoneInfo
import json
@zwily
zwily / expo-firestore-persistence-hack.js
Last active October 24, 2024 05:29
A fragile weaving of various modules together to convince the Firestore web SDK to use persistence in an un-ejected Expo app.
/*
expo-firestore-persistence-hack
A fragile weaving of various modules together to convince the Firestore
web SDK to use persistence in an un-ejected Expo app.
To use, first:
```
$ expo install expo-sqlite
@CyberPunkCodes
CyberPunkCodes / killadobe.sh
Last active November 21, 2022 16:41
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
#!/bin/bash
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n"
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
echo "\n\n--- Done! ---\n\n"