Skip to content

Instantly share code, notes, and snippets.

Tom Chiverton tomchiverton

  • @thefalken
Block or report user

Report or block tomchiverton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tomchiverton
tomchiverton / route53.py
Last active Jan 6, 2020 — forked from nh2/route53.py
route53 hook for dehydrated - python2 / python3 + boto2 version. Tested on Ubuntu 16.04
View route53.py
#!/usr/bin/env python
# How to use:
#
# Ubuntu 16.04: apt install -y python-boto OR apt install -y python3-boto
#
# Specify the default profile on aws/boto profile files or use the optional AWS_PROFILE env var:
# AWS_PROFILE=example ./dehydrated -c -d example.com -t dns-01 -k /etc/dehydrated/hooks/route53.py
#
# Manually specify hosted zone:
View keybase.md

Keybase proof

I hereby claim:

  • I am tomchiverton on github.
  • I am falken (https://keybase.io/falken) on keybase.
  • I have a public key whose fingerprint is AAA7 ACCA 967D D815 19C4 05AC 00A3 5C6A 1C12 B561

To claim this, I am signing this object:

@tomchiverton
tomchiverton / upload.cfc
Created Sep 19, 2012 — forked from jsteenkamp/upload.cfc
ColdFusion code for Plupload file uploading including chunked transfers
View upload.cfc
<cfcomponent>
<cffunction name="upload" access="remote" returntype="struct" returnformat="json" output="false">
<cfscript>
var uploadDir = getTempDirectory(); // should be a temp directory that you clear periodically to flush orphaned files
var uploadFile = uploadDir & arguments.NAME;
var response = {'result' = arguments.NAME, 'id' = 0};
var result = {};
// if chunked append chunk number to filename for reassembly
if (structKeyExists(arguments, 'CHUNKS')){
@tomchiverton
tomchiverton / app.js
Created Aug 15, 2012
EmberJS list control that can tell what was clicked
View app.js
window.EvEditor=Em.Application.create({
VERSION: "0.0.2",
main:{ componentList:[{name:'a'},{name:'b'},{name:'c'}],
ComponentView : Em.View.extend({
tagName: 'li',
removeItem: function() {
var component = this.get('component');
alert(component.name);
}
})
You can’t perform that action at this time.