Skip to content

Instantly share code, notes, and snippets.

View derfalx's full-sized avatar

Kristoffer Schneider derfalx

  • Germany
View GitHub Profile
@derfalx
derfalx / novpn.sh
Created June 23, 2017 21:04 — forked from kriswebdev/novpn.sh
Bypass VPN for specific apps [Linux / OpenVPN]
#!/bin/bash
# === INFO ===
# NoVPN
# Description: Bypass VPN tunnel for applications run through this tool.
VERSION="1.0.2"
# Author: KrisWebDev
# Requirements: Linux with kernel > 2.6.4 (released in 2008).
# Only tested on Ubuntu 15 with bash.
# Main dependencies are automatically installed.
@derfalx
derfalx / gpg-import-and-export-instructions.md
Created September 13, 2016 23:54 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@derfalx
derfalx / tmux-cheatsheet.markdown
Created December 22, 2015 18:21 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@derfalx
derfalx / fhws-notendurchschnitt-bookmarklet.js
Last active October 28, 2015 19:43
FHWS Studenten Portal - Notendurchschnitt Berechnung
/*
FHWS Studenten Portal - Notendurchschnitt BOOKMARKLET
Maximilian Janik - maximilian.janik@student.fhws.de
v 1.2
27.10.2015
Berechnet den Notendurchschnitt aller benoteten Fächer gewichtet nach CP.
28.10.2015
Es werden nur maximal 2 AWPFs gezählt und diese mit je 2.5 CP gewichtet.
Es werden nur die besten 2 AWPFs gezählt.