Skip to content

Instantly share code, notes, and snippets.

Matthew Buckett buckett

Block or report user

Report or block buckett

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
buckett / ccurl
Last active Mar 19, 2019
Canvas cURL
View ccurl
# Canvas cURL
# Just pulls OAuth token for Canvas from keychain and puts it in the Authorization header
# You can set passwords with:
# security add-generic-password -a buckett -s -w ....
# and if you need to update a token you need to first delete it with:
# security delete-generic-password -a buckett -s
# This will also mean that the the security tool has read access by default.
buckett /
Created Jan 21, 2019
Fix for failure to parse JSON in OAuth access token.
* Copyright 2002-2018 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
buckett / comments.sed
Created Nov 14, 2017
This removes comments before the package declaration (useful for .java files). This was used because some files has 2 license headers.
View comments.sed
# From end for first comment to package declaration
/*\//,/^package/ {
# Remove anything inside a comment
/^\/\*\*/,/*\// {
View video-index.html
<!doctype html>
<script src=""></script>
<script type="text/javascript">
var spData = null;
var columnTitle = [];
var URL_COL_NUMBER = 11; // Column L
var EMAIL_COL_NUMBER = 8; // Col I
buckett /
Created May 25, 2017
Looks for TLD files inside JAR files for Tomcat jar scanning configuration.
# This attempts to look in all the jar files for any tag library description files (tlds).
# This is useful because to speed up tomcat startup you can stop if scanning everything
# and then add back in the files that are needed.
# This needs to be run on a tomcat folder that has unpacked wars as it won't find JARs inside
# WARs.
# It outputs the pattern to put in the `tldScan` attribute of the JAR scanner
buckett /
Last active Feb 25, 2016 — forked from juanjmerono/
Script to list pending commits in 11.x branch
# You must run this in the Sakai working directory in master branch
# -u (to update your repo)
# -m (to check the list of pending cherry picks even they are not Verified in jira)
# (to check the list of pending cherry picks)
buckett / make-maven-color
Created Oct 9, 2015
Makes maven output coloured, although the -q flag stops working when you do this.
View make-maven-color
# Simple script to make your copy of maven use coloured output
# Details from
if [[ -z "$M2_HOME" ]]; then
echo \$M2_HOME unset, please set and re-run this script 1>&2
exit 1
cd $M2_HOME || ( echo "\$M2_HOME isn't set to a directory" 1>&2; exit 1)
buckett / multi-cert
Created Jul 22, 2015
Show all the certificates in a certificate chains file.
View multi-cert
# script for splitting multi-cert input into individual certs
# Artistic Licence
# v0.0.1 Nick Burch <>
# v0.0.2 Tom Yates <>
# v0.0.3 Matthew Buckett <>
use strict;
buckett / delete-myworkspace.sql
Last active Aug 29, 2015
Delete all MyWorkspace sites from a Sakai deployment
View delete-myworkspace.sql
-- Deletes all user myworkspaces we can find.
-- Matthew Buckett
id varchar(99) UNIQUE
-- If you want to be more brutal you can exlude the join to sakai_user_id_map and just look for all IDs that start with ~
buckett /
Created May 19, 2015
Cleans out old docker images and containers.
# Clean all exited containers
docker ps -qaf status=exited | xargs docker rm
# Remove all unused images
docker images -f dangling=true -q | xargs docker rmi
You can’t perform that action at this time.