I hereby claim:
- I am nicolaisoeborg on github.
- I am nico_ (https://keybase.io/nico_) on keybase.
- I have a public key ASCiB2SmR2jB5LLdHJXuAP6r8ANkePjQyEBRxB0bj2ImoQo
To claim this, I am signing this object:
// ==UserScript== | |
// @name Ekstra Bladet Reklame Fjerner | |
// @version 1.2.2 | |
// @author Nicolai Søborg | |
// @namespace https://github.com/NicolaiSoeborg/ | |
// @description Fjerner den irriterende "anti-adblocker" på EB.dk | |
// @match http://ekstrabladet.dk/* | |
// @updateURL https://gist.githubusercontent.com/NicolaiSoeborg/f340125556136b7a1da9b6c0a76a5b46/raw | |
// @downloadURL https://gist.githubusercontent.com/NicolaiSoeborg/f340125556136b7a1da9b6c0a76a5b46/raw | |
// ==/UserScript== |
// ==UserScript== | |
// @name Show only passed (DTU) | |
// @version 1.0 | |
// @author Nicolai Søborg | |
// @namespace https://github.com/NicolaiSoeborg/ | |
// @description Show only passed courses on DTU | |
// @match https://www.campusnet.dtu.dk/cnnet/Grades/Grades.aspx | |
// @updateURL https://gist.githubusercontent.com/NicolaiSoeborg/708c5831d130b362cda6319255d054e9/raw | |
// @downloadURL https://gist.githubusercontent.com/NicolaiSoeborg/708c5831d130b362cda6319255d054e9/raw | |
// ==/UserScript== |
I hereby claim:
To claim this, I am signing this object:
(function () { | |
function setup() { | |
const e = document.createElement("link"); | |
e.setAttribute("type", "text/css"); | |
e.setAttribute("rel", "stylesheet"); | |
e.setAttribute("href", "https://s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css"); | |
e.setAttribute("class", "mw_added_css"); | |
document.body.appendChild(e) | |
} | |
function strobeLight() { |
Install Qubes OS 4.0.1 | |
In dom0: | |
$ sudo vim /etc/yum.repos.d/qubes-dom0.repo | |
$ sudo vim /etc/yum.repos.d/qubes-templates.repo | |
Change to "Enabled=1" for the *-testing repos | |
Update dom0 packages | |
$ sudo qubes-dom0-update | |
Install Debian 10 (buster) template |
sudo apt install git htop tmux curl vim xclip | |
sudo apt install --no-install-recommends neovim | |
# Remove Ubuntu-branded XUL crapware: | |
sudo apt purge xul-ext-ubufox | |
# Stuff that I don't use: | |
sudo apt autoremove --purge snapd gnome-software-plugin-snap | |
sudo apt remove whoopsie | |
sudo apt remove bluez bluez-cups bluez-obexd |
# General: | |
browser.urlbar.trimURLs = false; | |
browser.quitShortcut.disabled = true; | |
# (you might want to add some more from: https://github.com/pyllyukko/user.js/blob/master/user.js) | |
# Tracking: | |
privacy.donottrackheader.enabled = true; | |
privacy.trackingprotection.enabled = true; | |
privacy.trackingprotection.socialtracking.enabled = true; |
pbKey32 = AesKdf( | |
data: sha256("123456:133337:987654"), | |
seed: TransformationKey, // 32 CryptoRandom bytes | |
rounds: 10.000 | |
) | |
pbSecret = OtpUtil.DecryptData( | |
encryptedSecret, | |
pbKey32, | |
FromBase64String(m_otpInfo.EncryptionIV) |
#!/usr/bin/env python3 | |
import bme680 | |
from time import time, sleep | |
from prometheus_client import CollectorRegistry, Gauge, push_to_gateway | |
# Setup: | |
# python3 -m pip install bme680 prometheus-client | |
# sudo apt install --no-install-recommends prometheus prometheus-pushgateway | |
BURN_IN_TIME = 1800 # 30 min |
# Install fail2ban (ratelimit auth) and google auth (MFA) | |
sudo apt install fail2ban libpam-google-authenticator | |
# Setup MFA: | |
google-authenticator | |
# I'm using: y, y, n, n, y | |
Add `auth required pam_google_authenticator.so` to the end of `/etc/pam.d/sshd` | |
Also comment out `@include common-auth` after doing the steps below. |