Skip to content

Instantly share code, notes, and snippets.

@mhp
mhp / laser-cutter.md
Last active April 25, 2018 08:35
Running LaserCutEngrave under Linux

Running LaserCutEngrave under Linux

These steps were written for Ubuntu 17.10. They may work for other versions and distributions.

Install Wine

sudo apt-get install wine-stable

Unpack LaserCutEngrave in a suitable directory and run once

@mhp
mhp / keybase.md
Created September 27, 2017 12:57
Keybase ID verification

Keybase proof

I hereby claim:

  • I am mhp on github.
  • I am michaelp (https://keybase.io/michaelp) on keybase.
  • I have a public key ASDx8Yzsky2qpLABuQPkYtjPyDokBp5-qVhlVtd8spEduwo

To claim this, I am signing this object:

@mhp
mhp / bluejeans.md
Last active August 29, 2015 14:08
Bluejeans plugin on Debian Wheezy

Using the Bluejeans plugin on Debian Wheezy

After installing the Bluejeans plugin, I found that I still couldn't use the Bluejeans service. The plugin didn't show up under about:plugins, suggesting a problem with Firefox loading the plugin. In fact, after deleting ~/.mozilla/firefox/*.default/pluginreg.dat and restarting Firefox from the commandline, I got an error like this:

LoadPlugin: failed to initialize shared library /usr/lib/mozilla/plugins/nprbjnplugin_2.8.115.8.so 
    [/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found 
    (required by /usr/lib/mozilla/plugins/nprbjnplugin_2.8.115.8.so)]

The Bluejeans plugin is compiled against a later version of glibc than is present in Debian Wheezy. To work around this:

@mhp
mhp / sqrtSeq.py
Created October 4, 2014 12:12
Square root sequences
#!/usr/bin/python
""" Ascending/descending sequence spotter, looking
for sequences in the first decimal places of
square roots.
https://twitter.com/standupmaths/status/518081757019906048
"""
import decimal
import json
import signal
@mhp
mhp / radio4.sh
Created September 22, 2011 08:07
Wrapper for vlc to listen to Radio 4
#!/bin/sh
cvlc http://www.bbc.co.uk/radio/listen/live/r4.asx