Skip to content

Instantly share code, notes, and snippets.

View corrupt's full-sized avatar

corrupt corrupt

View GitHub Profile
@corrupt
corrupt / update-zfs.sh
Created February 4, 2021 13:27
Bash helper script to update zfs-linux and zfs-utils on arch linux from the arch-zfs repo. I use it whenever the kernel revision in arch's official repos is ahead of arch-zfs. This script will pull a matching kernel version from archive.archlinux.org.
#!/bin/bash
##
#
# update-zfs.sh
#
# simple ZFS update script for arch linux
#
# will update zfs-linux and zfs-utils to their latest versions in the arch-zfs repo
# will retrieve mathching kernel packages from the arch linux package archive, even
@corrupt
corrupt / cVimrc
Last active January 9, 2017 10:49
set nohud
set nosmoothscroll
set smartcase
set noautofocus
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
package main
import (
"fmt"
"log"
"github.com/o3ma/o3"
)
func main() {
@corrupt
corrupt / Golem_Unpur.user.js
Last active October 25, 2016 14:45
Grease-/Tampermonkey script to undo all adblock detection on golem.de. It's a very crude approach using a timer but it has worked reliably for me so far.
// ==UserScript==
// @name Golem Unpur
// @namespace Golem
// @match http://www.golem.de/*
// @version 1.0
// @grant none
// ==/UserScript==
function cleanup() {
setTimeout(function () {
var artcls = document.getElementsByTagName('article');
@corrupt
corrupt / backup.sh
Last active October 25, 2016 14:47
A simple and crude Backup script for KVM qcow2 images from a remote logical volume.
#/bin/bash
VG="/dev/vg0"
SNAPSHOTLV="imagesnap"
SOURCELV="vm-images"
MOUNTPOINT="/mnt/snapshot"
DESTINATION="/mnt/Backup"
ssh root@server /bin/bash <<EOF
lvcreate -l100%FREE -s -n $SNAPSHOTLV $VG/$SOURCELV
@corrupt
corrupt / latexmkrc
Created September 23, 2016 09:59
My latexmkrc
# latexmk config file
#
# %B: base of filename for current command. E.g., if a postscript file document.ps is being made from the dvi file document.dvi, then the basename is document.
# %D: destination file (e.g., the name of the postscript file when converting a dvi file to postscript).
# %O: options
# %R: root filename. This is the base name for the main tex file.
# %S: source file (e.g., the name of the dvi file when converting a dvi file to ps).
# %T: The name of the primary tex file.
# %Y: Name of directory for auxiliary output files (see the configuration variable $aux_dir). A directory separation character (’/’) is appended if $aux_dir is non-empty and does not end in a suitable character, with suitable characters being those appropriate to UNIX and MS-Windows, i.e., ’:’, ’/’ and ’\’.
# %Z: Name of directory for output files (see the configuration variable $out_dir). A directory separation character (’/’) is appended if $out_dir is non-empty and does not end in a suitable character, with suitable chara

Keybase proof

I hereby claim:

  • I am corrupt on github.
  • I am corrupt (https://keybase.io/corrupt) on keybase.
  • I have a public key whose fingerprint is CEBA 01B8 83F0 8DBE 3E3D F8BA 0A6F FB97 8F9F 8239

To claim this, I am signing this object: