Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
📢
Starting a new role as Head of Communications at Mastodon!

Andy Piper andypiper

📢
Starting a new role as Head of Communications at Mastodon!
View GitHub Profile
@andypiper
andypiper / largeapp
Created March 8, 2014 17:38
Large app containers on Pivotal Web Services
$ cf-scale-demo git:(master) ✗ cf push largeapp -m 6G
Updating app largeapp in org apiper-org / space development as apiper@gopivotal.com...
OK
Uploading largeapp...
Uploading from: /Users/andyp/Development/cloudfoundry/cf-scale-demo
7.2K, 24 files
OK
Stopping app largeapp in org apiper-org / space development as apiper@gopivotal.com...
@andypiper
andypiper / dtrace of mosquitto_pub 1.2.3
Last active August 29, 2015 13:57
Mosquitto OS X issue
mosquitto-1.3 sudo dtruss mosquitto_pub -t andy -m "hello"
SYSCALL(args) = return
madvise(0x103D89000, 0x2000, 0x5) = 0 0
open("/dev/dtracehelper\0", 0x2, 0x7FFF5C02A010) = 3 0
__sysctl(0x7FFF5C0299A0, 0x6, 0x0) = 0 0
__sysctl(0x7FFF5C0299A0, 0x6, 0x7FFC7D000000) = 0 0
kqueue(0x7FFF5C029BD0, 0x7FFFFFE00050, 0x193) = 3 0
kevent(0x3, 0x7FFF5C029BB0, 0x1) = 0 0
socket(0x1, 0x1, 0x0) = 4 0
setsockopt(0x4, 0xFFFF, 0x1022) = 0 0
@andypiper
andypiper / Concierge Shell output
Last active August 29, 2015 13:57
Running moquette in Concierge
feeStr null
org.apache.commons.logging
org.fusesource.hawtbuf.hawtbuf
org.fusesource.hawtdb.hawtdb
log4j
org.dna.mqtt.moquette-bundle
org.apache.felix.javax.servlet
io.netty.buffer
io.netty.codec
io.netty.common
@andypiper
andypiper / system_profiler
Created March 26, 2014 18:25
Export Mac System info from cmdline
$ system_profiler -detailLevel mini SPPrefPaneDataType SPApplicationsDataType SPDeveloperToolsDataType SPExtensionsDataType > sysreport.txt
@andypiper
andypiper / GameDuino_HelloWorld.c
Created June 17, 2011 15:20 — forked from biomood/GameDuino_HelloWorld.c
Hello World for the Gameduino
#include <SPI.h>
#include <GD.h>
void setup() {
// give time for the gameduino splash screen to be displayed
delay(2500);
GD.begin();
// load character set
@andypiper
andypiper / README.md
Last active September 28, 2015 01:08 — forked from glejeune/READLE.md
A (very) simple chat service using MQTT

Install

  1. Install and run an MQTT broker (mosquitto is a good choice)

  2. Install mqtt and ncurses-ruby gems (the plain ncurses gem is harder to natively compile)

    sudo gem install mqtt ncurses-ruby

Run

@andypiper
andypiper / rainbow_serial.pde
Created February 5, 2012 00:29 — forked from anonymous/rainbow_serial.pde
File to drive Rainbowduino from simple serial interface
/*
Rainbowduino v3.0 Library examples:
Sets pixels on 2D plane (8x8 matrix)
*/
#include <Rainbowduino.h>
uint32_t colorRGB[13] = {0xFFFFFF,0x000000,0xFFFFFF,0x000,0xFF0000,0x00FF00,0x0000FF,0xFF0000,0x00FF00,0x0000FF,0xFF0000,0x00FF00,0x0000FF };
@andypiper
andypiper / Nanode_Tiny_Bas_Temp
Created February 10, 2012 22:16 — forked from anonymous/Nanode_Tiny_Bas_Temp
Nanode Tiny Basic with temperature sensing by @ceejay
// TinyBASIC.cpp : An implementation of TinyBASIC in C
//
// Author : Mike Field - hamster@snap.net.nz
//
// Based on TinyBasic for 68000, by Gordon Brandly
// (see http://members.shaw.ca/gbrandly/68ktinyb.html)
//
// which itself was Derived from Palo Alto Tiny BASIC as
// published in the May 1976 issue of Dr. Dobb's Journal.
//
@andypiper
andypiper / Styles.diff
Created March 5, 2012 18:15
Update location of Textual extensions for the wiki
diff --git a/Styles.textile b/Styles.textile
index c7a71cf..c77c5b8 100644
--- a/Styles.textile
+++ b/Styles.textile
@@ -3,9 +3,8 @@ The following is information related to styling Textual.
<h3>Introduction</h3>
* Styles are primarily developed using HTML & CSS — Two very common web standards.
-* (pre-version 2.1/non-sandboxed) Textual looks for all style files in the folder: [home folder] -> Library -> Application Support -> Textual -> Styles
+* Textual looks for all style files in the folder: [home folder] -> Library -> Application Support -> Textual -> Styles
@andypiper
andypiper / Main.java
Created March 26, 2012 15:42
Main.java
public static void main(String[] args) {
System.out.println("Hello GitHub");
}