Skip to content

Instantly share code, notes, and snippets.

@IanSimpson
IanSimpson / converter.php
Last active April 25, 2019 23:08
LightTag to AWS Comprehend annotation conversion tool
<?php
/**
* index.php
*
* LightTag to AWS Comprehend annotation converter
*
* @author Ian Simpson <ian@logicstudio.nz>
* @copyright 2019 The Logic Studio Limited
* @license GPL 3
* @license https://opensource.org/licenses/GPL-3.0 GNU General Public License version 3
@IanSimpson
IanSimpson / idle_screen.xml
Created August 19, 2018 23:53
TLS Phone Screen
<?xml version="1.0" encoding="UTF-8"?>
<Screen>
<SoftkeyBar>
<Layout height="13" >
<DisplayList>
<X>0</X>
<Y>0</Y>
</DisplayList>
</Layout>
<ButtonShape id="0" width="43" height="13">
@IanSimpson
IanSimpson / httpoxyfix.sh
Last active July 19, 2016 00:17
httpoxy fix for Apache (Ubuntu + others)
#!/bin/bash
echo "RequestHeader unset Proxy early" | sudo dd of=/etc/apache2/conf-available/httpoxy.conf
sudo a2enconf httpoxy
sudo service apache2 reload
@IanSimpson
IanSimpson / imb.php
Created May 28, 2015 11:03
PHP IMB Barcode Converter
<?
/**
* IMB Converter
* =============
* This class takes a numeric code (in the valid format) and returns a string in ATDF format, ready to be printed
* with the USPS IMB font
*
* Code extracted from TCPDF and modified to operate standalone. See http://www.tcpdf.org
*
* Usage: