cd ~/
mkdir /tmp/keys
gpg --export-secret-keys --armor <NAME> > /tmp/keys/<NAME>.asc
gpg --symmetric /tmp/keys/<NAME>.asc
gpg --export-ownertrust > /tmp/keys/trustdb.txt
zip -r /tmp/sshbackup ~/.ssh/
unzip -l /tmp/sshbackup.zip
mkdir /tmp/keys
cd /tmp/keys
gpg --symmetric --decrypt /tmp/keys/<NAME>.gpg
gpg —-import /tmp/keys/<NAME>.asc
rm ~/.gnupg/trustdb.gpg
gpg --import-ownertrust < /tmp/keys/trustdb.txt
gpg --symmetric --decrypt /tmp/keys/sshbackup.zip.gpg
unzip /tmp/keys/sshbackup.zip
mv /tmp/keys/.ssh/ ~/
rm -rf /tmp/keys
- OS Settings
- Dock (Automatically hide and show the Dock)
- Keyboard (Key Repeat = Fast, Delay Until Repeat = Short)
- Accessibility > Zoom (Use keyboard shortcuts to zoom)
- Date & Time > Clock (Show date + Display the time with seconds)
- Mission Control (disable "Automatically rearrange Spaces based on most recent use")
- Terminal Developer Mode (
spctl developer-mode enable-terminal
) - Wake up from sleep (
sudo pmset -a standbydelay 7200
)
- Firefox
- https://www.mozilla.org/en-GB/firefox/new/
- Preferences
- General > Startup (Restore previous session + Warn you when quitting the browser)
- Search > Default Search Engine (DuckDuckGo)
- Privacy & Security
- Enhanced Tracking Protection (Strict + Do Not Track = Always)
- Firefox Data Collection and Use (disable all options)
- Firefox Sync
- Extensions
- https://addons.mozilla.org/en-US/firefox/addon/duckduckgo-for-firefox/
- https://addons.mozilla.org/en-GB/firefox/addon/privacy-badger17/
- https://addons.mozilla.org/en-GB/firefox/addon/ublock-origin/
- https://addons.mozilla.org/en-GB/firefox/addon/darkreader/
- https://addons.mozilla.org/en-GB/firefox/addon/expressvpn/
- https://addons.mozilla.org/en-GB/firefox/addon/multi-account-containers/
- https://addons.mozilla.org/en-GB/firefox/addon/facebook-container/
- https://addons.mozilla.org/en-US/firefox/addon/temporary-containers/
- Homebrew
- https://brew.sh
brew bundle install
- Shell
echo /usr/local/bin/bash | sudo tee -a /etc/shells
chsh -s /usr/local/bin/bash
- GitHub Access
mkdir ~/.ssh
cd ~/.ssh && ssh-keygen -t rsa -b 4096 -C '<your@email.com>'
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/github
ssh-add --apple-use-keychain ~/.ssh/github
(-K
looks to be deprecated).
pbcopy < ~/.ssh/github.pub
- https://github.com/settings/keys
- Tools
- https://github.com/integralist/dotfiles
git clone git@github.com:Integralist/dotfiles.git
mv ...
files into~/
- Terminal
- Password Store
- https://www.passwordstore.org/
gpg --import </path/to/private/key>
keyid=$(gpg --list-keys <your@email.com> | head -n 2 | tail -n 1 | cut -d ' ' -f 7)
pass init $keyid
pass git init
pass git remote add origin git@github.com:<private/repo>
pass git pull
gpg --edit-key $keyid
(typetrust
)
NOTE:
Encrypt/Decrypt files...
Encrypt:
gpg --encrypt -r Pass --output ~/encrypted.png.gpg ~/example.png
Decrypt:gpg --decrypt --output ~/example.png ~/encrypted.png.gpg
OTP...
Generate from QRCode image:
zbarimg -q --raw example.png | pass otp insert Foo/otp/example
Usage:pass otp -c Foo/otp/example
- Vim
mkdir -p ~/Code/ && cd ~/Code
git clone https://github.com/vim/vim.git
cd vim
make clean distclean
./configure --with-features=huge --enable-multibyte --enable-rubyinterp=yes --enable-python3interp=yes --with-python3-command=/Users/integralist/.pyenv/shims/python --enable-perlinterp=yes --enable-luainterp=yes --enable-gui=gtk2 --enable-cscope --prefix=/usr/local
make && make install
curl -sfLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
:PlugInstall