Skip to content

Instantly share code, notes, and snippets.

View soardex's full-sized avatar

Edward Fitz Bucud Abucay soardex

View GitHub Profile
@soardex
soardex / gist:e5eaaa0a8205b0b9a7ff
Created June 17, 2015 13:08
Arch Linux Installation Crypted
#### 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.
@soardex
soardex / gist:47c5f6859c2b422bcbff
Created June 19, 2015 11:21
Run rTorrent on TOR
# 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`
@soardex
soardex / gist:fbdf2c8640ba79f06b91
Created June 19, 2015 11:32
Securing DNS with DNScrypt
# 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
@soardex
soardex / gist:75905612b480d6f29059
Created June 19, 2015 11:40
Creating Ascii Art Using Linux Command Line
# 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
_ _ _ _ _
| |__ ___| | | ___ __ _____ _ __| | __| |
| '_ \ / _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` |
@soardex
soardex / gist:b8599a257f210917a666
Created June 19, 2015 11:54
Deprecated Linux Commands
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)
@soardex
soardex / gist:a7021b871849984bc9aa
Created June 19, 2015 12:18
Using OpenNIC to Avoid DNS Commercialization
# 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.
@soardex
soardex / gist:5e8c055083edcffdf345
Created June 19, 2015 16:58
Distributing Keys to PGP Keyservers
# 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]
@soardex
soardex / gist:4f05bac49506e7144f46
Created June 21, 2015 13:39
Remove Unfinished Docker Images Pull
# removes unfinished pulled images in docker
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
@soardex
soardex / gist:bd588f633d03d8bd0f84
Created June 24, 2015 06:34
Encrypted .netrc for Git
# 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
@soardex
soardex / gist:6883715ecdc6a8bad4eb
Created June 24, 2015 06:36
Encrypted .muttrc for Mutt
# 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