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
# Description: Boxstarter Script | |
# Author: Jess Frazelle <[email protected]> | |
# Edited by: Will Wolff-Myren <[email protected]> | |
# Last Updated: 2018-10-19 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# |
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
<form id="ltiForm" action="https://lti.tools/saltire/tp" method="POST"> | |
<input name="lti_message_type" type="hidden" value="basic-lti-launch-request"> | |
<input name="lti_version" type="hidden" value="LTI-1p0"> | |
<input name="resource_link_id" type="hidden" value="resourceLinkId"> | |
<input name="oauth_consumer_key" type="hidden" value="jisc.ac.uk"> | |
<input name="oauth_nonce" type="hidden" value="MTUxNTM2NzA0Nw=="> | |
<input name="oauth_signature_method" type="hidden" value="HMAC-SHA1"> | |
<input name="oauth_timestamp" type="hidden" value="1515367047"> | |
<input name="oauth_version" type="hidden" value="1.0"> | |
<input name="oauth_signature" type="hidden" value="M70zaLRx9Wh8gxet5G3pPRNY+MM="> |
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
var oauth = require('oauth-sign'); | |
var action = 'https://lti.tools/saltire/tp'; | |
var method = 'POST'; | |
var timestamp = Math.round(Date.now() / 1000); | |
var params = { | |
// LTI Required Parameters | |
lti_message_type: 'basic-lti-launch-request', | |
lti_version: 'LTI-1p0', | |
resource_link_id: 'resourceLinkId', | |
// OAuth 1.0a Required Parameters |
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 | |
# Pre-requisites: curl git zsh vim exuberant-ctags | |
# Install: oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# Install: timss/vimconf (https://github.com/timss/vimconf#installation) | |
mkdir -p ~/.vim/vimconf | |
git clone https://github.com/timss/vimconf.git ~/.vim/vimconf |
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 | |
# TODO: Remove pve-enterprise, add pve-no-subscription repo to sources.list(*) | |
# Update packages, install essentials | |
apt update | |
apt install -y build-essential git zsh htop | |
# Update Proxmox Appliance Manager (https://forum.proxmox.com/threads/no-turnkey-fresh-install-5-1-35.38199/) | |
pveam update |
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
Get-ChildItem "C:\path\to\folder" -recurse | Where-Object { (Get-Content $_) -like '*TextToFind*' } | Select-Object { $_.FullName} |
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
bash -c "$(curl -fsSL https://raw.githubusercontent.com/jldeen/dotfiles/wsl/configure.sh)" | |
# Package Source: Node 10.x (https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions) | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
# Update package cache, upgrade all packages... | |
sudo apt update && sudo apt full-upgrade -y | |
# Install: Development Tools... | |
sudo apt install -y build-essential git nodejs |
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
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
var oauth = require('oauth-sign'); | |
var action = 'http://lti.tools/saltire/tp'; | |
var method = 'POST'; | |
var timestamp = Math.round(Date.now() / 1000); | |
var params = { | |
// LTI Required Parameters |
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
// https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams | |
function getHashValueForKey(key) { | |
var hash = window.location.hash.substr(1); | |
var searchParams = new URLSearchParams(hash); | |
return searchParams.get(key); | |
} |