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 st { | |
title=$1; | |
echo -e "\033];${title}\007"; | |
} |
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 | |
# Installs tarsnap client on Debian and Ubuntu | |
# | |
# You'll need to setup an account at | |
# http://www.tarsnap.com | |
# and load it with some funds | |
# | |
# Make sure you run this as root | |
# |
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
from mmap import mmap | |
import struct | |
MMAP_OFFSET = 0x44c00000 # base address of registers | |
MMAP_SIZE = 0x48ffffff-MMAP_OFFSET # size of the register memory space | |
CM_PER_BASE = 0x44e00000 - MMAP_OFFSET | |
CM_PER_EPWMSS1_CLKCTRL = CM_PER_BASE + 0xcc | |
CM_PER_EPWMSS0_CLKCTRL = CM_PER_BASE + 0xd4 | |
CM_PER_EPWMSS2_CLKCTRL = CM_PER_BASE + 0xd8 |
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
// geo-location shim | |
// currentely only serves lat/long | |
// depends on jQuery | |
;(function(geolocation){ | |
if (geolocation) return; | |
var cache; |
NewerOlder