Skip to content

Instantly share code, notes, and snippets.

View AubreyHewes's full-sized avatar
💭
I may be slow to respond.

Aubrey AubreyHewes

💭
I may be slow to respond.
View GitHub Profile
@AubreyHewes
AubreyHewes / werckerNotifyDeploymentViaTrello.js
Created December 21, 2016 23:22
Wercker NotifyDeployment to Trello Card
// --------------------------------------------------------
//
// Notify a Trello card on a new deployment
//
// NOTE: This is a Wercker related CI script
// NOTE: This depends on the Wercker CI environment!
//
// Required ENV:
// TRELLO_API_KEY, TRELLO_API_TOKEN, TRELLO_CARD_ID
// Wercker ENV (supplied by Wercker):
@AubreyHewes
AubreyHewes / npm-shrinkwrap.json
Created June 30, 2016 09:41
sprity lwip dependency override for node v6
{
"dependencies": {
"sprity": {
"version": "1.0.8",
"dependencies": {
"sprity-lwip": {
"version": "1.0.3",
"dependencies": {
"lwip": {
"version": "0.0.9"
@AubreyHewes
AubreyHewes / nodegit-050-push-to-remote-failure-poc.js
Created October 7, 2015 20:44
nodegit 0.5.0 push to remote failure poc
#!/usr/bin/env /usr/bin/node
/**
* NOTE: Run in a project root that already has a remote configured
*
* # v0.5.0 (this is the npm default version)
*
* `npm install nodegit@^v0.5.0`
*
* NOTE: DOES_NOT fetch from S3 (see also https://github.com/nodegit/nodegit/issues/736)
<link rel="import" href="../chart-js/chart-js.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../chart-js/chart-js.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@AubreyHewes
AubreyHewes / designer.html
Last active February 16, 2018 02:56
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
@AubreyHewes
AubreyHewes / topbloemen-imporder.php
Last active January 24, 2017 09:27
DEPRECATED topbloemen import order interface
<?php
// DEPRECATED: interface no longer exists: use https://webservice.topbloemen.nl/soap/order/?wsdl
//
// redirect to new location at topbloemen using the given parameters to import a new topbloemen order
header('Location: http://bloemist.topbloemen-ws.nl/imporder.php?' . http_build_query([
'usr' => 'X', // username
'psw' => 'X', // password
'prdnam' => 'X', // some name
'prcinc' => 'X', // price inc
'prcexc' => 'X', // price ex
@AubreyHewes
AubreyHewes / WP_Redis.php
Last active August 29, 2015 14:14
Wordpress Redis plugin (dokku/dokku-alt redis plugin spec compatible)
<?php
/*
* Plugin Name: WP_Redis
* Description: Exposes Redis to Wordpress as WP_Redis class. Requires ENV variable REDIS_URL (i.e. redis://localhost:port; dokku / dokku-alt compatible )
* Author: Aubrey Hewes<aubrey@hewes.org.uk>
* Version: 1.0
* License: MIT
*/
/**
@AubreyHewes
AubreyHewes / Dockerfile
Created January 21, 2015 23:42
BitchX Dockerfile (Docker, BitchX, Dockerised BitchX)
FROM ubuntu:14.10
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get upgrade -y --no-install-recommends && \
apt-get install -y --no-install-recommends \
build-essential \
libssl-dev \
ncurses-dev \
@AubreyHewes
AubreyHewes / ubuntu-install-bitchx.sh
Created January 21, 2015 23:24
Compile and Install BitchX on Ubuntu
#!/bin/sh
####################################################################################
#
# Download Compile and Install BitchX on Ubuntu
#
####################################################################################
# download bitchx source
# @todo make smarter, i.e. regexp, though now uses _always_ available commands (sic)