Skip to content

Instantly share code, notes, and snippets.

@divramod
divramod / changing_time_zones.sh
Created October 10, 2024 06:37 — forked from ddre54/changing_time_zones.sh
Mac OS X - Terminal commands for changing time zones in the machine
# Useful for testing things that are time zone
# sensitive - like scheduling things
# Get current timezone
sudo systemsetup -gettimezone
# Get list of available timezones
sudo systemsetup -listtimezones
# Set the timezone to the selected timezone
@divramod
divramod / gpg-import-and-export-instructions.md
Created March 2, 2022 17:42 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@divramod
divramod / pacman-mirrorlist
Created October 5, 2020 16:11
mirrorlist
##
## Manjaro Linux default mirrorlist
## Generated on 2019-11-17 13:38
##
## Please use 'pacman-mirrors -f [NUMBER] [NUMBER]' to modify mirrorlist
## (Use 0 for all mirrors)
##
## Country : Poland
Server = https://mirror.tuchola-dc.pl/manjaro/stable/$repo/$arch
@divramod
divramod / README.md
Created October 12, 2013 18:26 — forked from nikcub/README.md