Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
TOP=1000
TMPFILE="$(mktemp)"
trap 'rm "$TMPFILE"' INT TERM EXIT
wget -O"$TMPFILE" -q -- http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
unzip -p "$TMPFILE" \
@jeanpaulgalea
jeanpaulgalea / INSTALL
Last active September 14, 2016 13:27
DNS level adblocking
sudo apt-get install unbound
sudo vi /usr/local/bin/unbound-block
sudo chmod +x /usr/local/bin/unbound-block
sudo vi /etc/cron.daily/unbound-block
sudo chmod +x /etc/cron.daily/unbound-block
sudo vi /etc/unbound/unbound.conf
# this udev file should be used with udev 188 and newer
ACTION!="add|change", GOTO="u2f_end"
# Yubico YubiKey
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0113|0114|0115|0116|0120|0402|0403|0406|0407|0410", TAG+="uaccess"
LABEL="u2f_end"
# Udev rules for letting the console user access the Yubikey USB
# device node, needed for challenge/response to work correctly.
# both of these work on Debian Jessie but the TAG+= version uses systemd rather than a unix group.
#ACTION=="add|change", SUBSYSTEMS=="usb", ATTR{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0114|0116|0401|0403|0405|0407|0410", TAG+="uaccess", TAG+="udev-acl"
ACTION=="add|change", SUBSYSTEMS=="usb", ATTR{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0114|0116|0401|0403|0405|0407|0410", MODE="0664", GROUP="plugdev"
### Keybase proof
I hereby claim:
* I am jeanpaulgalea on github.
* I am jeanpaul (https://keybase.io/jeanpaul) on keybase.
* I have a public key whose fingerprint is B604 2E2B D1FD BC2B CA85 88B2 FF8D 3B45 B7B8 75A9
To claim this, I am signing this object: