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 | |
# Change to the directory for this script. | |
cd "$(dirname "$(realpath "$0")")" | |
if ! [ -d ve ]; then | |
python3 -m venv ve | |
fi | |
ve/bin/pip install -q -U youtube-dl |
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 script downloads WoW addons to ~/Downloads in the new-addons directory, | |
# and replaces current versions of the addons with the updated addons. | |
# Makes Invoke-WebRequest not slow and useless. | |
$global:ProgressPreference = 'SilentlyContinue' | |
$ErrorActionPreference = "Stop" | |
cd ~/Downloads | |
$wowPath = "${env:ProgramFiles(x86)}\World of Warcraft\Interface\AddOns" | |
# Write (filename, url) here for the addons you want. |
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 -eu | |
# A script for quickly creating Vader tests for ALE linter callbacks. | |
# Generate boilerplate for variables. | |
variables=() | |
while read -r; do | |
variables+=("ale_$REPLY") | |
done < <(grep 'ale#Set' "$1" | grep -o '[a-z]\+_[a-z_]\+') |
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
" Use Tab and Shift+Tab for either completion or SnipMate. | |
function! SmartTab() abort | |
if pumvisible() | |
return "\<C-n>" | |
endif | |
return snipMate#TriggerSnippet() | |
endfunction | |
function! SmartShiftTab() abort |