This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Arch Linux Installation Crypted | |
1. Boot Arch Linux iso image. | |
2. Load keyboard and font to the iso. | |
loadkeys us | |
setfont Lat2-Terminus16 | |
3. Find block device node. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this assumes you've already downloaded, installed and or compiled sources for the following files | |
# if on arch run `pacman -S tor delegate rtorrent` | |
# DeleGate Source: http://delegate.hpcc.jp/anonftp/DeleGate/delegate9.9.13.tar.gz | |
1. Run `tor` whether on chroot or not. | |
2. Proxy socks5 tor connection to port 8080 localhost by running: | |
delegated -P8080 SERVER=http SOCKS=localhost:9050 | |
3. Configure $HOME/.rtorrent.rc and set `http_proxy` to `127.0.0.1` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install on Arch: pacman -S dnscrypt-proxy | |
# run DNSCrypt as a daemonize service | |
# where `resolver name` could be found on this list | |
# https://github.com/jedisct1/dnscrypt-proxy/blob/master/dnscrypt-resolvers.csv | |
sudo dnscrypt-proxy --ephemeral-keys --resolver-name=[resolver name] --daemonize | |
# example of usage: | |
sudo dnscrypt-proxy --ephemeral-keys --resolver-name=opendns --daemonize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in order to create a text ascii art you need to use the tool called figlet | |
# on arch install it with: pacman -S figlet | |
figlet [-f font] [text] | |
# example without optional font | |
figlet hello world | |
_ _ _ _ _ | |
| |__ ___| | | ___ __ _____ _ __| | __| | | |
| '_ \ / _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deprecated command Replacement command(s) | |
arp ip n (ip neighbor) | |
ifconfig ip a (ip addr), ip link, ip -s (ip -stats) | |
iptunnel ip tunnel | |
iwconfig iw | |
nameif ip link, ifrename | |
netstat ss, ip route (for netstat-r), ip -s link (for netstat -i), ip maddr (for netstat-g) | |
route ip r (ip route) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first get two (2) DNS Tier 2 servers from this page: | |
http://wiki.opennicproject.org/Tier2 | |
# edit your DNS configuration and set it as the primary and secondary DNS | |
# for linux /etc/resolv.conf | |
# example add the following lines at the start of the file | |
nameserver 111.67.16.202 | |
nameserver 103.25.56.238 | |
# you can now access some custom TLD and create your own TLD's. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# keyservers: | |
# pgp.mit.edu | |
# keyserver.ubuntu.com | |
# keys.gnupg.net | |
# | |
# the keyserver parameter is optional and would default to the | |
# distributed keyserver of keys.gnupg.net | |
# search keys | |
gpg2 [--keyserver [keyserver]] --search-keys [pubkey_id] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# removes unfinished pulled images in docker | |
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encrypt ~/.netrc with gpg agent | |
gpg -e -r [your_gpg_id] ~/.netrc | |
# clean removed .netrc file | |
shred ~/.netrc | |
rm -f ~/.netrc | |
# enable credential helper | |
# this would search files in your home directory | |
# .authinfo.gpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create ~/.mutt/secrets | |
cat > ~/.mutt/secrets << EOF | |
set imap_pass="secret_password" | |
set smtp_pass="secret_password" | |
EOF | |
# encrypt ~/.mutt/secrets | |
gpg -e -r [your_gpg_id] ~/.mutt/secrets | |
# clean removed ~/.mutt/secrets file |