I hereby claim:
- I am chtjonas on github.
- I am chtjonas (https://keybase.io/chtjonas) on keybase.
- I have a public key ASCVsroYPKaUXGQqyGc3q_33ENOCwjsqOvvg-s1DSF39uAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Alias | Command |
---|---|
g | git |
ga | git add |
gaa | git add --all |
gapa | git add --patch |
gua | git add -- |
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script should be run as root" | |
exit 1 | |
fi | |
# Install system utilities to make our lives easier | |
apt install -y mosh byobu wget curl htop nano vim | |
apt install -y software-properties-common apt-transport-https |
(?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t] | |
)+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?: | |
\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:( | |
?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ | |
\t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\0 | |
31]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\ | |
](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+ | |
(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?: | |
(?:\r\n)?[ \t])*))*|(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z | |
|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n) |
require 'test_helper' | |
# Make sure that https://nvd.nist.gov/vuln/detail/CVE-2015-9284 is mitigated | |
class OmniauthCsrfTest < ActionDispatch::IntegrationTest | |
setup do | |
ActionController::Base.allow_forgery_protection = true | |
OmniAuth.config.test_mode = false | |
end | |
test "should not accept GET requests to OmniAuth endpoint" do |
This GitHub Gist details the manual configuration needed on a UniFi controller to enable IPv6 tunneling with Hurricane Electric's Tunnelbroker service.
This is what works for me personally. Stuff you'll need to do to adapt this to your ends:
def foo(*args, **kwargs, &block) | |
target(*args, **kwargs, &block) | |
end |
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script should be run as root" | |
exit 1 | |
fi | |
# Install build dependencies | |
apt install -y build-essential libssl-dev libreadline-dev zlib1g-dev libmariadb-dev |
#!/bin/bash | |
set -euo pipefail | |
rm -f /dev/shm/unbound.cache | |
trap "rm -f /dev/shm/unbound.cache" EXIT INT TERM HUP QUIT ILL TRAP BUS SEGV | |
/usr/sbin/unbound-checkconf | |
umask 0077 | |
touch /dev/shm/unbound.cache |