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 / 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 / JSONEditor-Theme-Bootstrap3-Horizontal
Created November 4, 2014 23:15
JSONEditor Theme: Bootstrap3 (form-horizonta)
/*jshint strict: false, -W116: false, -W098: false */
/**
* Copy of the Bootstrap 3 Theme; tweaked for horizontal form (form-horizontal)
*
* @todo remove ridiculous amount of nesting; is a lib issue; create issue?
*/
JSONEditor.defaults.themes.bootstrap3horizontal = JSONEditor.AbstractTheme.extend({
labelWidth: 3,
@AubreyHewes
AubreyHewes / Install Budgie Desktop Ubuntu.md
Created May 11, 2017 12:47
Install Budgie Desktop on Ubuntu

Budgie on Ubuntu

Source: http://tipsonubuntu.com/2016/11/09/install-budgie-desktop-ubuntu-16-04-16-10/

Ubuntu Budgie now is an official Ubuntu flavor. For those who want to try this Gnome 3 based desktop environment, here is how to install Budgie Desktop in Ubuntu 16.04, Ubuntu 16.10. Also a complete uninstall guide is available. Budgie Desktop is a modern desktop features heavy integration with the GNOME stack. It’s the default desktop environment of Ubuntu Budgie (formerly known as Budgie Remix), which now is an official Ubuntu flavor.

Install Budgie Desktop in Ubuntu:

Budgie Remix Team has an official PPA repository. So far Ubuntu 16.04, Ubuntu 16.10, and their derivatives are supported.

@AubreyHewes
AubreyHewes / redux-form-react-quill.jsx
Created November 10, 2017 16:40 — forked from Gaya/redux-form-react-quill.jsx
How to use React Quill inside Redux Forms
import React from 'react';
import { Field } from 'redux-form';
import ReactQuill from 'react-quill';
function renderQuill({ input }) {
return (
<ReactQuill
{...input}
onChange={(newValue, delta, source) => {
if (source === 'user') {
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ChartJS from 'chart.js';
/**
* React Wrapper Component for ChartJS charts
* Based on comment by @MatthewHerbst @https://github.com/reactjs/react-chartjs/issues/112
*
* For chart documentation see @see http://www.chartjs.org/docs/latest
*/
@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 / 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 / gist:5875278
Created June 27, 2013 09:45
JIRA Re-Index script
#!/bin/sh
### CUSTOM SETTINGS ###
USERNAME=<jira_username>
PASSWORD=<jira_password>
HOSTNAME=<jira_hostname>
### FIXED SETTINGS ###
DASHBOARD_PAGE_URL=http://${HOSTNAME}/secure/Dashboard.jspa
INDEX_PAGE_URL=http://${HOSTNAME}>/secure/admin/jira/IndexReIndex.jspa
COOKIE_FILE_LOCATION=jiracoookie
#!/bin/sh
# Reference ip6tables firewall rules for ICMPv6.
# Ref: https://www.cert.org/downloads/IPv6/ip6tables_rules.txt
#
# 11/07/2008
# Ryan Giobbi, CERT
#
# Please send feedback to <rag@cert.org>
# Don't use these rules on production systems without testing.
@AubreyHewes
AubreyHewes / rules-both.iptables
Created October 26, 2017 15:48 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# 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