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/env python | |
import time, threading | |
import pifaceio | |
# Pressing a Piface board input pin starts a sequence of output pins + delays. | |
# Define output sequences here. Format is: | |
# in_pin: ((out_pin1, on_time), (out_pin2, on_time), [ .. ]) | |
# if out_pin = -1 then delay for on_time only. | |
# It's up to you to define/use output sequences that don't conflict. |
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/env python | |
import time, threading | |
import pifaceio | |
# Width and number of output pulses in sequence | |
PULSE_ON = 2 # secs | |
PULSE_OFF = 1 # secs | |
PULSE_NUM = 3 # count of ON pulses in sequence | |
PIN_TRANSITIONS = PULSE_NUM * 2 |
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/env python | |
import os, time, pickle, pifaceio | |
filename = os.path.join(os.path.expanduser('~'), '.' + | |
os.path.basename(__file__) + '.init') | |
pf = pifaceio.PiFace() | |
# Read stored last states |
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
diff --git a/ftpd-topfield/ftpd.c b/ftpd-topfield/ftpd.c | |
index db0b67b..f6d3458 100644 | |
--- a/ftpd-topfield/ftpd.c | |
+++ b/ftpd-topfield/ftpd.c | |
@@ -932,6 +932,7 @@ reboot_topfield (void) | |
void | |
retrieve (const char *cmd, const char *name) | |
{ | |
+ static int in_get; | |
FILE *dout = 0; |
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 | |
# | |
# Simple bash wrapper to ensure hotot app only runs once. Name this | |
# script "hotot", "hotot-gtk3", or "hotot-qt5", etc as appropriate for you and | |
# put early in your PATH, e.g. in your $HOME/bin/. | |
# | |
# Author: Mark Blakeney. | |
prog=$(basename $0) | |
real=/usr/bin/$prog |
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 | |
# Run given first argument command across given machines | |
# M.Blakeney, Jul 2018. | |
script=$1 | |
shift | |
hosts=$* | |
bscript=$(basename $script) | |
for h in $hosts; do | |
rsync -a $script $h:/tmp/ |
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/python3 | |
'Program to benchmark set of checksum commands.' | |
# Author: M.Blakeney, Jul 2018. | |
import os, argparse, time, tempfile, subprocess, statistics | |
import collections, platform | |
# Default set of commands to execute | |
CMDS = 'md5sum,sha1sum,sha256sum' |
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/python3 | |
import numpy as np | |
DATA = 'data/day04' | |
def total(board): | |
return np.sum(board[board > 0]) | |
def main(): | |
boards = [] |
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
Maintainer: mark.blakeney at bullet-systems dot net | |
pkgname=borg-standalone-arm-bin | |
pkgver=1.2.0 | |
pkgrel=1 | |
pkgdesc="Borg backup - prebuilt standalone ARM binary" | |
url="https://borgbackup.readthedocs.io/en/stable/installation.html#standalone-binary" | |
license=("BSD") | |
arch=("armv8h" "armv7h" "armv6h" "armv5h") | |
replaces=("borg-arm-bin") | |
provides=("borg" "borgbackup") |
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
# Maintainer: mark.blakeney at bullet-systems dot net | |
pkgname=borg-standalone-bin | |
pkgver=1.2.2 | |
pkgrel=1 | |
pkgdesc="Borg backup - prebuilt standalone binary" | |
url="https://borgbackup.readthedocs.io/en/stable/installation.html#standalone-binary" | |
license=("BSD") | |
arch=("x86_64" "i686") | |
replaces=("borg-bin") | |
provides=("borg" "borgbackup") |
OlderNewer