No description or website provided.
Vim script Perl Shell Python Haskell JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
crontab.d
dotjs
dzil
git-hub @ 118e8be
mutt
pm
ssh
taffybar
vim
xdg
xmonad
zr-bin Do not want google docs addresses Jan 29, 2018
zsh
.gitattributes
.gitignore
.gitmodules
.projections.json
README.mdwn
XCompose
Xdefaults
adenosinerc.yml
cpan.sh
dbic.json
disable.conf
editorconfig
env
gitconfig
gitignore_global
gtkrc-2.0
gtkrc.mine
gvimrc
install-xdg
install.sh
mailcap
main.cf
muttrc
notmuch-config
packages.minimal.sh
packages.perf.sh
packages.rm.sh
packages.sh
packages.x11.sh No longer use gvim Jun 15, 2018
perltidyrc
random.rules
rc.local
signature
sleep-hooks
smartcd-export
sshd_config
sysctl.conf
terminator_config
tmux.conf
vimrc
xmodmap
xsession
xsession.desktop
zshenv correctly load certain things for non-interactive shells Oct 29, 2013
zshrc

README.mdwn

dotfiles Setup

touch ~/.frewmbot-local ~/.frewmbot-maintained ~/.mutt-overrides

sudo apt-add-repository ppa:git-core/ppa
curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
sudo apt-get update
sudo apt-get install git signal-desktop
mkdir -p ~/code
git clone git://github.com/frioux/dotfiles ~/code/dotfiles
cd ~/code/dotfiles
sudo ./packages.sh
./install.sh
chsh -s /bin/zsh
sudo bash -c 'cat sysctl.conf >> /etc/sysctl.conf'
sudo cp xsession.desktop /usr/share/xsessions/xsession.desktop
sudo cp random.rules /etc/udev/rules.d/71-disable-random-entropy-estimation.rules
sudo cp ./pm/* /etc/pm/sleep.d/

sudo cp ./rc.local /etc/rc.local
chown root:root /etc/rc.local
chmod 755 /etc/rc.local

Install mutt

git clone https://github.com/neomutt/neomutt
cd neomutt
./configure --enable-notmuch --lmdb --ssl --prefix=/opt && \
   make && \
   sudo make install install-doc

Install docker

wget -qO- https://get.docker.com/ | sh
sudo usermod frew -aG docker
sudo systemctl enable docker
sudo cp /lib/systemd/system/docker.service /etc/systemd/system

Then add -s overlay2 --live-restore to the command in the copied file

sudo systemctl daemon-reload
sudo systemctl restart docker

Install Other Software

Go

rm ~/local -rf
curl https://dl.google.com/go/go1.10.1.linux-amd64.tar.gz > go.gz
tar xvf go.gz
mv ./go ~/local
rm go.gz

Configure Postfix

Create /etc/postfix/sasl_passwd:

???@gmail.com               ???@gmail.com:$foo
???@ziprecruiter.com ???@ziprecruiter.com:$bar
smtp.pobox.com                        ???:$baz

... and /etc/postfix/transport:

???@gmail.com        smtp:[smtp.gmail.com]:587
???@ziprecruiter.com smtp:[smtp.gmail.com]:587

... and /etc/postfix/hosts:

@frew.co               [smtp.pobox.com]:587
@afoolishmanifesto.com [smtp.pobox.com]:587

And finally, change the config:

sudo sh -c 'cat ./main.cf >> /etc/postfix/main.cf'
sudo postmap /etc/postfix/{sasl_passwd,transport,hosts}
sudo chmod 400 /etc/postfix/{sasl_passwd,transport,hosts}{.db,}
sudo service postfix restart

Authorize Computer

Get app specific password from gmail, put in .netrc:

machine imap.gmail.com
login $bar@gmail.com
password $foo

machine smtp.gmail.com
login $bar@gmail.com
password $foo

machine google.com
login $bar@gmail.com
password $foo

And .git-smtp-password:

[sendemail]
   smtpPass = $foo

Put pause credentials in .pause:

user FREW
password DERP

Ensure permissions are correct:

chmod 600 ~/.netrc ~/.pause

Also set up Firefox Sync

Add / Replace SSH Keys

  • Generate Ed25519 Key: ssh-keygen -t ed25519 -o -a 100
  • Generate RSA Key: ssh-keygen -t rsa -b 4096 -o -a 100
  • Put Ed25519 Key on github
  • Put RSA Key on:
    • dbsrgits
    • gitmo
    • catagits
    • p5sagit
    • ZR
    • agm

services

sv-run-w.pl
sv-run-offlineimap

Misc Snippets

tcpdump

Record all traffic from a given host/port:

tcpdump -s 65535 -w tcp.dump host 10.6.6.1 and port 10114

Record all traffic involving a given host:

tcpdump -s 65535 -w tcp.dump src 10.6.6.1 or dst 10.6.6.1

Bind localhost:1234 to server.example.com:6667

ssh -L 1234:localhost:6667 server.example.com

Xephyr

Test XMonad or whatever:

Xephyr -screen 1024x768 :1 &
DISPLAY=:1 xmonad ```