Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<meta charset="utf-8">
<title></title>
<style>
body {
font: 10px sans-serif;
background:#000;
width:500px;
margin:0 auto;
{
"title": "System Resources",
"services": {
"query": {
"list": {
"0": {
"query": "collectd_type:\"load\"",
"alias": "Load",
"color": "#70DBED",
"id": 0,
import processing.serial.*; //we need the use of this library to communicate with the serial port
Serial myPort; // Create object from Serial class
//these are the diffent messages that we will send to the sign, remeber the sign has a protocol
String message0 = "<ID01>"; //wake up call
String message1 = "<ID01><PA><FQ><CC>Red Box "; //command for sign number 1, page 1, make text appear and stop , red colour font with the message 'red box'
String message2 = "<ID01><PA><FQ><CL>Green Box ";//same as above but colour of text is green as is the message
String message3 = "<ID01><PA><FL><CC> ";//clear screen by dropping away like rain.
char character; //we will send one charater at a time this is the place holder

The best way to use this tool is to hook apt's use of dpkg to run it before doing any package installs.

In your apt.conf, put this:

DPkg::Pre-Install-Pkgs {"xargs -rL1 bash /path/to/stripdeb.sh 2>&1 | logger -t stripdeb"}

Then, a demo:

% sudo apt-get install mysql-server-5.1

#!/bin/bash
# get the actual directory for this script, resolving links and relative paths
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
ARCH="${ARCH:-x86_64}"
RELEASE="${RELEASE:-`date +%Y_%m_%d_%H%M`}"

Keybase proof

I hereby claim:

  • I am artbikes on github.
  • I am artbikes (https://keybase.io/artbikes) on keybase.
  • I have a public key whose fingerprint is D582 65A0 319D 12C7 80AE 54C3 5B7E 877E 600B EF9A

To claim this, I am signing this object:

<?php
// quick and dirty argument parsing
foreach ($argv as $arg) {
if ($arg == '-f') {
define('FOLLOW', true);
}
if ($arg == '-h') {
define('HISTOGRAM', true);
}
$ mkdir expressWithLess && cd expressWithLess
$ express --css less-middleware && npm install
$ mv public/stylesheets/ public/styles
$ nano public/styles/style.less
@color: #00B7FF;
body { padding: 200px; font: 18px "Lucida Grande", Helvetica, Arial, sans-serif; }

Generate KEY and CSR:

openssl req -new -newkey rsa:2048 -nodes -keyout DOMAIN.key -out DOMAIN.csr

Echo the KEY in PEM format:

openssl rsa -in DOMAIN.key -outform PEM

Echo the CRT in PEM format:

#!/bin/bash
# Check out the blog post at:
#
# http://www.philipotoole.com/influxdb-and-grafana-howto
#
# for full details on how to use this script.
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname
INFLUXDB_DATABASE=test1