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
// Copyright (c) 2011 Meadhbh S. Hamrick | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights to | |
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
// of the Software, and to permit persons to whom the Software is furnished to do | |
// so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in all |
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 | |
# Copyright (c) 2003-2013, Meadhbh S. Hamrick. All Rights Reserved. | |
# Released under a BSD License. See http://opensource.org/licenses/BSD-2-Clause | |
# | |
# This script uses openssl to generate a self-signed certificate. Usage is | |
# like this: | |
# gssc <host name> [-p password] [-s subject] [-b bitlength] | |
# The host name parameter is the subject name of the certificate; i.e. - the | |
# FQDN of the host you're generating a certificate for. This is also the base | |
# name for the key, certificate signing request and certificate files. If you |
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
// Copyright (c) 2014, Meadhbh S. Hamrick | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are | |
// met: | |
// | |
// * Redistributions of source code must retain the above copyright | |
// notice, this list of conditions and the following disclaimer. | |
// * Redistributions in binary form must reproduce the above copyright |
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
; dysfunction.dys | |
; | |
; Dysfunction is a new specification for communicating typed, structured, | |
; dynamic data between computing systems (or processes on the same system.) | |
; It defines a transfer syntax and processing expectations for systems which | |
; produce and consume formated data. This file is a brief introduction to | |
; Dysfunction, along with a few examples. | |
; | |
; Dysfunction is used in the same way JSON or XML might be used to store or | |
; communicate human readable representations of structured data. It is designed |
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 _pad() | |
// | |
// pads the input with count numbers of char characters. Examples: | |
// _pad( "7" ) => "7" | |
// _pad( "A", 4 ) => " A" | |
// _pad( "7", 4, "*" ) => "***7" | |
function _pad( input, count, char ) { | |
count = count ? count : 0; | |
return String( Array( count ).join( ( char ? char : ' ' ) ) + input ).slice( - count ); |
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
; SonOfDysfunction.sod | |
; | |
; "SON of Dysfunction" is a serializable object notation (SON) built | |
; after the experimental "Dysfunction" transfer syntax. "SON of Dysfunction" | |
; (aka SOD) defines a transfer syntax, a type system, a set of XPath-ish macros | |
; to identify a nodes in transferred data structures and several recommended | |
; utility macros. | |
; | |
; The primary objective of SOD mostly to have a flexible object notation which | |
; worked like JSON but allowed comments. Like JSON, SOD targets systems with |
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
Copyright (c) 2014, Smithee, Spelvin, Agnew & Plinge, Inc. | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are | |
met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright |
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
; ddn.ddn | |
; | |
; This document describes the Dynamic Data Notation (DDN). DDN is a superset | |
; of JavaScript Object Notation and fills a similar role. It differs from JSON | |
; in a few important ways: | |
; | |
; * DDN supports comments. Semi-colons (;), hash markes (#) and C++ style | |
; "slash slash" di-graphs (//) all begin a "to the end of the line" style | |
; comment. C-style "slash splat" (/*) and "splat slash" (*/) digraphs | |
; enclose bounded comments. |
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
# Figure out how big the input image is | |
GEO_INPUT=`identify $1 | cut -f 3 -d ' '` | |
X_INPUT=`echo $GEO_INPUT | cut -f 1 -d x` | |
Y_INPUT=`echo $GEO_INPUT | cut -f 2 -d x` | |
# Slice off a 2 pixel wide strip from the left side of the image | |
# Store as temp.jpg | |
convert $1 -crop 2x${Y_INPUT}+0+0 temp.jpg | |
# Now trim off the top of the temp.jpg. But we have to create a new image |
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
# raspiuser | |
# | |
# Having a fixed username / password combination is generally considered | |
# insecure. This script renames the default 'pi' user to one of your own | |
# choosing (please choose a name other than 'pi'.) Run it as root, passing | |
# the new username as the first parameter: | |
# | |
# sudo ./raspihork testuser | |
# |
OlderNewer