Skip to content

Instantly share code, notes, and snippets.

Nicolai Søborg NicolaiSoeborg

Block or report user

Report or block NicolaiSoeborg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View OtpKeyProv
pbKey32 = AesKdf(
data: sha256("123456:133337:987654"),
seed: TransformationKey, // 32 CryptoRandom bytes
rounds: 10.000
)
pbSecret = OtpUtil.DecryptData(
encryptedSecret,
pbKey32,
FromBase64String(m_otpInfo.EncryptionIV)
View Firefox about:config settings
# General:
browser.urlbar.trimURLs = false;
# (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;
# Extensions:
View Ubuntu cleanup
sudo apt install git htop tmux curl vim xclip
sudo apt install --no-install-recommends neovim
# Stuff that I don't use:
sudo apt autoremove --purge snapd gnome-software-plugin-snap
sudo apt remove bluez bluez-cups bluez-obexd
# Fix bad defaults:
gsettings set org.gnome.desktop.interface show-battery-percentage true
gsettings set org.gnome.desktop.calendar show-weekdate true
View Qubes settings
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
View harlem-shake.js
(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() {
View keybase.md

Keybase proof

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:

View ShowOnlyPassed.user.js
// ==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==
@NicolaiSoeborg
NicolaiSoeborg / EkstraBladetReklameFjerner.user.js
Last active Jun 19, 2016
Fjerner den irriterende "anti-adblocker" på EB.dk
View EkstraBladetReklameFjerner.user.js
// ==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==
You can’t perform that action at this time.