Skip to content

Instantly share code, notes, and snippets.

View marklister's full-sized avatar

mark lister marklister

View GitHub Profile
apt-get update
apt-get upgrade
apt-get install -y raspberrypi-kernel-headers
echo "deb http://deb.debian.org/debian/ unstable main" | sudo tee --append /etc/apt/sources.list.d/unstable.list
apt-get install -y dirmngr
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' | sudo tee --append /etc/apt/preferences.d/limit-unstable
apt-get update
@marklister
marklister / overlayRoot.sh
Last active June 27, 2019 13:38
overlayRoot update supporting persistent media
Moved: see https://github.com/marklister/overlayRoot
@marklister
marklister / vanity-genkey
Created April 23, 2019 15:39
Wireguard vanity genkey
#!/bin/bash
# "Vanity" keygen for Wireguard
# Example usage: ./vanity-genkey '^CPT/|^HRE/|^EDI/'
# Or on a multi core machine ./vanity-genkey '^CPT/|^HRE/|^EDI/' >> keys &
# Spawn as many as your computer can deal with.
# Adding -i to the grep will speed things up at the expense of readability
@marklister
marklister / BaseN.scala
Last active September 20, 2020 23:40
Scala Hex / Decimal / Binary calculator / DSL
/**
* Scala hex / decimal binary calculator
* (c) Mark Lister 2012
* Licence Apache 2.
*/
class BaseN(b: BigInt, val baseN: Int) extends BigInt(b.underlying) {
def n(x: Int) = new BaseN(b, x)
/**
@marklister
marklister / AwsRequest.scala
Created September 12, 2012 21:28
Scala Amazon Web Service Signed Request Generator
package org.catch22.amazonws
/**
* This class derives from https://github.com/keplar/scalapac
* It's released under the Apache licence V2.0
* Copyright (c) 2012 Orderly Ltd. All rights reserved.
* Copyright (c) 2012 Mark Lister
*
*/