Skip to content

Instantly share code, notes, and snippets.

View mbmccormick's full-sized avatar

Matt McCormick mbmccormick

View GitHub Profile
wget https://secure.logmein.com/labs/logmein-hamachi-2.1.0.119-armhf.tgz
@mbmccormick
mbmccormick / install.sh
Last active April 20, 2016 22:38
logmein-hamachi-2.1.0.119-armhf
#!/bin/sh
HAMACHI_DST=/opt/logmein-hamachi
if [ -x /opt/logmein-hamachi/uninstall.sh ] ; then
echo Removing previous version ..
/opt/logmein-hamachi/uninstall.sh
fi
echo Copying files into $HAMACHI_DST ..
@mbmccormick
mbmccormick / gist:c593f7b98730af35662b
Created May 31, 2014 18:28
logmein-hamachi-2.1.0.119-armhf - README
LogMeIn Hamachi for Linux User Guide
=====================================
About LogMeIn Hamachi
LogMeIn Hamachi is a virtual networking service that can be set up in
minutes and enables secure remote access to your business network
anywhere there is an Internet connection.
Unlike traditional hardware and software based VPN systems, LogMeIn
#!/bin/sh
# WD Live Duplicity Back Up To Amazon S3 (and Glacier)
#
# Requires python-boto, duplicity, util-linux, and trickle to be installed
# Install using: apt-get install python-boto duplicity util-linux trickle
#
# See this blog post for more info:
# http://www.x2q.net/blog/2013/02/24/howto-backup-wd-mybook-live-to-amazon-s3-and-glacier/
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
*/2 * * * * galileo >> /home/pi/galileo.log 2>&1
59 23 * * * rm /home/pi/galileo.log
SUBSYSTEM=="usb", ATTR{idVendor}=="2687", ATTR{idProduct}=="fb01", SYMLINK+="fitbit", MODE="0666"
@mbmccormick
mbmccormick / gist:95cd66b69c90ff2ee4eb
Last active August 29, 2015 14:01
Install Python dependencies and galileo
sudo apt-get install python-usb python-pip
sudo pip install galileo
@mbmccormick
mbmccormick / email.lua
Last active August 29, 2015 13:59
Create GitHub issues from email, using Webscript and Postmark
local ACCESS_TOKEN = 'YOUR_PERSONAL_ACCESS_TOKEN'
local USERNAME = 'YOUR_GITHUB_USERNAME'
-- import Microlight lua library
local ml = require('mbmccormick/Microlight/ml.lua')
-- parse inbound request from Postmark service
local data = json.parse(request.body)
local subject = data.Subject
FlipTileData tile = new FlipTileData();
tile.Title = data.Name;
tile.Count = tasksOverdue.Count + tasksDueToday.Count;
FlipTileTemplate image = new FlipTileTemplate();
string imagePath = "/Shared/ShellContent/" + data.Id + ".png";
image.RenderLiveTileImage(imagePath, Strings.LiveTileDueToday + ":", FormatFlipTileTemplateContent(tasksDueToday));
tile.BackgroundImage = new Uri("isostore:" + imagePath, UriKind.Absolute);
public void RenderLiveTileImage(string filename, string title, string content)
{
this.txtTitle.Text = title;
this.txtContent.Text = content;
this.Measure(new Size(336, 336));
this.Arrange(new Rect(0, 0, 336, 336));
this.UpdateLayout();
WriteableBitmap image = new WriteableBitmap(336, 336);