Skip to content

Instantly share code, notes, and snippets.

@jokroese
jokroese / export-whatsapp-messages.sh
Created April 9, 2024 11:12
Export WhatsApp Messages from iPhone to MacOS
# requires:
# - WhatsApp Desktop and
# - backup of iPhone using Finder
pip install whatsapp-chat-exporter
mkdir whatsapp-export
cd whatsapp-export
BACKUP_PATH=~/Library/Application\ Support/MobileSync/Backup/
DEVICE_IDS=$(ls "$BACKUP_PATH")
if [ -z "$DEVICE_IDS" ]; then
echo "No backups found in $BACKUP_PATH"
@jokroese
jokroese / export-signal-messages.sh
Created April 9, 2024 10:06
Exporting Signal messages
# requires Signal Desktop
brew install --HEAD tbvdm/tap/sigtop
mkdir signal-export
cd signal-export
sigtop export-messages -f text plain-text
sigtop export-messages -f json json
sigtop export-attachments attachments
sigtop export-database signal.sqlite
@jokroese
jokroese / create-favicons.md
Last active January 29, 2025 16:15
Create favicons

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jokroese
jokroese / stop-tracking-gitignore-files.sh
Created November 13, 2020 12:13
Stop tracking files added to .gitignore
for file in `cat .gitignore` ; do git rm -r --cached $file; done
@jokroese
jokroese / change-master-to-main.sh
Last active November 13, 2020 12:13
Change branch from master to main
git branch -m master main
git status
git push origin HEAD
git branch -D master
git push origin :master
git status