Skip to content

Instantly share code, notes, and snippets.


Robert McLeod penguinpowernz

  • Penguin Power
  • Auckland, New Zealand
View GitHub Profile
penguinpowernz /
Created Aug 31, 2020
Building a Debian Package from installed files

Building a Debian Package from installed files

Recently I had a package disappear on me from the mainline repos but one of my apps had a hard dependency on that version. I managed to find a machine that still had that package installed so here's what I did.

Get the file list:

dpkg -L firefox-esr|sed 1d|grep -v "package diverts" > esrfiles.txt
View updated.json
"type": "update",
"quake": {
"publicID": "2020p203673",
"time": "2020-03-16T08:37:10.376Z",
"depth": 23.87388039,
"magnitude": 1.222926187,
"locality": "10 km north-east of Matawai",
"mmi": -1,
"quality": "best",
View new.json
"type": "new",
"quake": {
"publicID": "2020p203673",
"time": "2020-03-16T08:37:10.376Z",
"depth": 10.83877039,
"magnitude": 1.021546187,
"locality": "10 km north-east of Matawai",
"mmi": -1,
"quality": "preliminary",
lsb_release -a|grep stretch || exit 0;
apt-get update
apt-get install asl-agent
penguinpowernz / .codeclimate.yml
Last active May 29, 2019
Golang project codeclimate config
View .codeclimate.yml
version: "2"
enabled: true
enabled: true
enabled: true
enabled: true
View slack_notify.go
package main
import (

Keybase proof

I hereby claim:

  • I am penguinpowernz on github.
  • I am mcleodr ( on keybase.
  • I have a public key ASA_0KLhZhVGNBqQsfHZbL5uviW4hekKGx9bYtw5yH0kKAo

To claim this, I am signing this object:

penguinpowernz / jsonpp.go
Last active Dec 12, 2017
Pretty print JSON files faster than json_pp
View jsonpp.go
// build by running go build ./jsonpp.go
package main
import (
penguinpowernz / index.html
Created Feb 15, 2017
Camera streaming proxy so you can block your botnettable camera at the firewall and serve this through your own NGINX
View index.html
<title>Safe Cam!</title>
<meta http-equiv="refresh" content="60"/>
<body style="padding: 0px; margin: 0px;">
<img id="MJPEG_streaming" src="http://<camip>/snapshot.cgi" align="CENTER">
<script type="text/javascript">
stretchImage = function() {
var image = document.getElementById("MJPEG_streaming");
penguinpowernz / KaikouraQuake.kml
Created Nov 17, 2016
Kaikoura Quake photos located in Google Maps/Earth
View KaikouraQuake.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="" xmlns:gx="" xmlns:kml="" xmlns:atom="">
<Style id="s_ylw-pushpin">
You can’t perform that action at this time.