Skip to content

Instantly share code, notes, and snippets.

View willwm's full-sized avatar

Will Wolff-Myren willwm

View GitHub Profile
@willwm
willwm / boxstarter.ps1
Last active April 1, 2021 02:57 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# 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
#
@willwm
willwm / MAX-Falcon-8-V2_-Navigation-Layout.kbd.json
Last active July 3, 2018 22:11
MAX Falcon-8 V2: Navigation Layout
[
{
"backcolor": "#878787",
"name": "MAX Falcon-8 V2: Navigation Layout",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-E1xx",
"plate": true
},
[
<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=">
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
@willwm
willwm / zshvimconf.sh
Last active July 19, 2020 04:36
OhMyZsh + Vimconf
#!/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
@willwm
willwm / proxmox-install.sh
Last active March 21, 2025 06:27
Fresh Proxmox Server install script
#!/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
Get-ChildItem "C:\path\to\folder" -recurse | Where-Object { (Get-Content $_) -like '*TextToFind*' } | Select-Object { $_.FullName}
@willwm
willwm / wsl-freshinstall.sh
Last active July 3, 2018 22:12
Awesome installation script for WSL Ubuntu
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
@willwm
willwm / index.js
Created December 23, 2017 10:49
requirebin sketch
// 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
@willwm
willwm / getHashValueForKey.js
Last active April 15, 2018 11:40
Retrieve the value associated with 'key' from window.location.hash
// 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);
}