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 install
echo /usr/local/bin/bash | sudo tee -a /etc/shells
chsh -s /usr/local/bin/bash
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
git clone git@github.com:Integralist/dotfiles.git
mv ...
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 $keyid
pass git init
pass git remote add origin git@github.com:<private/repo>
pass git pull
gpg --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.gpg
OTP…
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 ~/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