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
/** | |
* Create an Element from string using template tag for insertion into DOM | |
* @param {string} html | |
* @return {Element} | |
*/ | |
function createElement(html) { | |
if(html === null || html === undefined) | |
return null ; | |
const element = window.document.createElement('template') ; | |
element.innerHTML = html ; |
This file has been truncated, but you can view the full file.
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
// ==UserScript== | |
// @name bedifferent-editing-toolkit | |
// @description Editing toolkit for designers working on the CQUni BeDifferent Moodle Platform | |
// @version 1.0.3 | |
// @grant none | |
// @noframes | |
// @include https://bedifferent.cqu.edu.au/* | |
// @include https://u-bedifferent.catalyst-au.net/* | |
// @include https://staging-bedifferent.catalyst-au.net/* | |
// ==/UserScript== |
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 | |
# | |
# Don't change the following lines unless you know what you are doing | |
# They execute the config options starting with 'do_' below | |
grep -E -v -e '^\s*#' -e '^\s*$' <<END | \ | |
sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x - | |
# | |
############# INSTRUCTIONS ########### | |
# | |
# Change following options starting with 'do_' to suit your configuration |
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
/** | |
Decode a php serialized value to json. This function only supports basic | |
data types: | |
- arrays (will always become a json object) | |
- booleans | |
- integers | |
- floats | |
- strings | |
- NULL |
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
node_modules | |
tmp |
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
/* | |
This helper script bridges compatibility between the Greasemonkey 4 APIs and | |
existing/legacy APIs. Say for example your user script includes | |
// @grant GM_getValue | |
And you'd like to be compatible with both Greasemonkey 4 and Greasemonkey 4 | |
(and for that matter all versions of Violentmonkey, Tampermonkey, and any other | |
user script engine). Add: |
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
#LOCALE | |
sudo perl -p -i -e 's/^(en_GB.*)$/# $1/ ; s/^# en_AU\.UTF-8 UTF-8$/en_AU.UTF-8 UTF-8/ ;' /etc/locale.gen | |
sudo locale-gen | |
#TIMEZONE | |
sudo rm /etc/localtime | |
sudo ln -s /usr/share/zoneinfo/Australia/Queensland /etc/localtime | |
sudo rm /etc/timezone | |
echo "Australia/Queensland" | sudo tee /etc/timezone | |
#KEYBOARD |
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
# Connection name | |
connection adafruit | |
# Secure SSL/TLS | |
address io.adafruit.com:8883 | |
# adjust path as approriate to point to directory with PEM encoded .crt CA files | |
bridge_capath /etc/ssl/certs/ | |
# For CentOS 7 (and other RHEL derivatives), use this directive instead of bridge_capath | |
# bridge_cafile /etc/ssl/certs/ca-bundle.crt |
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
// allows using all Jquery AJAX methods in Greasemonkey | |
// https://gist.github.com/damoclark/f01b957797b7dd2c33d6 | |
// https://gist.github.com/monperrus/999065 | |
// inspired from http://ryangreenberg.com/archives/2010/03/greasemonkey_jquery.php | |
// works with JQuery 1.5 | |
// (c) 2016 Damien Clark | |
// (c) 2011 Martin Monperrus | |
// (c) 2010 Ryan Greenberg | |
// | |
// Example usage with JQuery: |
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 | |
#Load configuration options from filename passed in on command line | |
. $1 | |
################## SAMPLE config file contents ################## | |
##!/bin/sh | |
# | |
#host=`hostname` | |
##Get date and time of commencement of backup |
NewerOlder