View hashcheck_lsm.c
/*
* hashcheck_lsm.c - Steve Kemp
*
* This is a security module which is designed to prevent
* the execution of unknown or (maliciously) altered binaries.
*
* This is achieved by computing an SHA1 digest of every
* binary before it is executed, then comparing that to the
* (assumed) known-good value which is stored as an extended
* attribute alongside the binary.
View test.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//
// eight lines of 16 characters.
//
char *lines[8][16] = { '\0' };
//
View http-logger.go
Code is now live:
https://projects.bytemark.co.uk/projects/symbiosis/repository/revisions/893599a8ea4fcc31d3506c5b13e6e75213ce47c5
View Osram.pm
package Power::Outlet::Osram;
use strict;
use warnings;
use base qw{Power::Outlet::Common::IP};
use Device::Osram::Lightify::Hub;
our $VERSION='0.16';
View redis-set-test
#!/usr/bin/perl -w
#
# This is a simple perl-script which demonstrates adding jobs to
# a pretend redis-based work-queue.
#
# The intention is that we'll add jobs, and they'll be added to sets
# such that we don't need to worry about unbound-growth.
#
# This program demonstrates that using a sorted-set results in .. a sorted
# set with guaranteed ordering when items are removed.
View go-subcommand-test.go
//
// This is a simple program which is designed to be a base for
// a go-binary which handles several different sub-commands.
//
// For example we might have a script which supports:
//
// foo login username $password
//
// foo logout
//
View bigvs.go
/**
* This is a simple script which will take a username/password and
* list the machines on an account, assuming they are all in the default
* group.
*
* It will also allow you to start/stop multiple machines via regexp.
*
*
*
* Compile
View ctrl-alt-t.c
/**
* Launch a terminal when Ctrl-Alt-T is pressed.
*
* gcc -o ctrl-alt-t ctrl-alt-t.c -lX11
*
* Steve
* --
*
* PS. Use xbindkeys like a normal person ;)
*
View Makefile
#
# Build the driver.
#
all: driver
clean:
rm -f *.o core driver || true
View dock-run
#!/bin/sh
#
# Launch a new docker container.
#
# Execute run-parts against a creation directory, and make both the ID
# and the NAME of the new container availalbe to those scripts via the
# environment.
#
# Steve
# --