This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2020, University of Oxford | |
*/ | |
import React from 'react' | |
import PropTypes from 'prop-types' | |
/** | |
* This is just an div that covers the whole of the iframe. When the surrounding | |
* page is scrolled the div is moved to the new location. You should just have | |
* a single one of these components in an application and all components should |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 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 canvas.instructure.com -w .... | |
# and if you need to update a token you need to first delete it with: | |
# security delete-generic-password -a buckett -s canvas.instructure.com | |
# This will also mean that the the security tool has read access by default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From end for first comment to package declaration | |
/*\//,/^package/ { | |
# Remove anything inside a comment | |
/^\/\*\*/,/*\// { | |
d | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var spData = null; | |
var columnTitle = []; | |
var URL_COL_NUMBER = 11; // Column L | |
var EMAIL_COL_NUMBER = 8; // Col I |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# You must run this in the Sakai working directory in master branch | |
# chcherrypick.sh -u (to update your repo) | |
# chcherrypick.sh -m (to check the list of pending cherry picks even they are not Verified in jira) | |
# chcherrypick.sh (to check the list of pending cherry picks) | |
# | |
SEPARATOR=$'\n'"###" | |
SEPARATOREND="###" | |
CNT=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Simple script to make your copy of maven use coloured output | |
# Details from http://www.aheritier.net/united-colors-of-maven/ | |
if [[ -z "$M2_HOME" ]]; then | |
echo \$M2_HOME unset, please set and re-run this script 1>&2 | |
exit 1 | |
fi | |
cd $M2_HOME || ( echo "\$M2_HOME isn't set to a directory" 1>&2; exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# script for splitting multi-cert input into individual certs | |
# Artistic Licence | |
# | |
# v0.0.1 Nick Burch <[email protected]> | |
# v0.0.2 Tom Yates <[email protected]> | |
# v0.0.3 Matthew Buckett <[email protected]> | |
# | |
use strict; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Deletes all user myworkspaces we can find. | |
-- Matthew Buckett | |
BEGIN WORK; | |
CREATE TEMPORARY TABLE delete_ids ( | |
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 ~ |
NewerOlder