Tags: #new #laptop #configuration #macos
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
spctl developer-mode enable-terminal)sudo pmset -a standbydelay 7200)brew bundle installecho /usr/local/bin/bash | sudo tee -a /etc/shellschsh -s /usr/local/bin/bashmkdir ~/.sshcd ~/.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.pubgit clone git@github.com:Integralist/dotfiles.gitmv ... files into ~/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 $keyidpass git initpass git remote add origin git@github.com:<private/repo>pass git pullgpg --edit-key $keyid (type trust)NOTE:
Encrypt/Decrypt files…
Encrypt:
gpg --encrypt -r Pass --output ~/encrypted.png.gpg ~/example.png
Decrypt:gpg --decrypt --output ~/example.png ~/encrypted.png.gpgOTP…
Generate from QRCode image:
zbarimg -q --raw example.png | pass otp insert Foo/otp/example
Usage:pass otp -c Foo/otp/example
mkdir -p ~/Code/ && cd ~/Codegit clone https://github.com/vim/vim.gitcd vimmake 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/localmake && make installcurl -sfLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim:PlugInstall