This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -ue | |
HANDLE=0x0003 | |
VALUE=4480ebedc17401 | |
MAC=88:C6:26:1E:F5:38 | |
gatttool -b $MAC --char-write-req --handle=$HANDLE --value=$VALUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Parses DHCP options from openvpn to send to dnsmasq via dbus | |
# To use set as 'up' and 'down' script in your openvpn *.conf: | |
# up /etc/openvpn/update-dnsmasq | |
# down /etc/openvpn/update-dnsmasq | |
# | |
# Used snippets of resolvconf script by Thomas Hood and Chris Hanson. | |
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -ue | |
IMAGE_WIDTH=692 | |
IMAGE_HEIGHT=692 | |
WIDTH=28 | |
HEIGHT=21 | |
COUNT=$(($WIDTH * $HEIGHT)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CURRENT_BRANCH=$(git name-rev --name-only HEAD) | |
REMOTE_REF=$(git config --get-regexp branch.$CURRENT_BRANCH.merge | cut -d' ' -f 2 | sed -e 's|refs/heads/||'); | |
REMOTE=$(git config --get-regexp branch.$CURRENT_BRANCH.remote | cut -d' ' -f 2); | |
if [ -z "$1" -o "$1" = 'branch' ]; then | |
echo $REMOTE_REF | |
fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
"use strict"; | |
var user = "marcust"; | |
var url = "https://api.github.com/users/" + user +"/events?callback=?"; | |
function handleDefaultEvent( repoElement, timeElement, payloadHandler ) { | |
var element = document.createElement('div'); | |
element.appendChild( payloadHandler() ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright (c) 2011 by Marcus Thiesen (marcus@thiesen.org) | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use strict; | |
use SOAP::Lite; | |
use XML::RSS; | |
use DateTime::Format::Flexible; | |
use DateTime::Format::Mail; | |
my $user = shift || |