Skip to content

Instantly share code, notes, and snippets.

View willwm's full-sized avatar

Will Wolff-Myren willwm

View GitHub Profile
@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
@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
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
<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=">
@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
},
[
@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
#
# https://win32.io/posts/How-To-Find-Text-PowerShell
Get-ChildItem "C:\path\to\folder" -recurse | Where-Object { (Get-Content $_) -like '*TextToFind*' } | Select-Object { $_.FullName }
# ...as a function:
function Find-TextInFiles($searchPath, $text) {
Get-ChildItem $searchPath -recurse | Where-Object { (Get-Content $_) -like '*$text*' } | Select-Object { $_.FullName }
}
@willwm
willwm / remove-win10-crapware.ps1
Created July 18, 2018 00:07
Remove Windows 10 OOBE crapware
#--- Uninstall unecessary applications that come with Windows out of the box ---
# 3D Builder
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage
# Autodesk
Get-AppxPackage *Autodesk* | Remove-AppxPackage
# Bing Weather, News, Sports, and Finance (Money):
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
@willwm
willwm / bootstrapwindows10.ps1
Last active December 25, 2019 13:08 — forked from zloeber/bootstrapwindows10.ps1
Boxstarter Windows 10 Configuration
<#
https://gist.github.com/willwm/3937943714b3a418fc1df5c62d379648
The command to run, built from the raw link of this gist
Win+R
iexplore http://boxstarter.org/package/url?<RAW GIST LINK>
@willwm
willwm / nvm.sh
Last active July 19, 2020 04:40
Install nvm
# Install nvm:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# Configure nvm shell context:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Install Node.js via nvm:
nvm install node