Skip to content

Instantly share code, notes, and snippets.

View steve-stonehouse's full-sized avatar
🏠
Working from home

Stephen Stonehouse steve-stonehouse

🏠
Working from home
  • Plymouth
View GitHub Profile
@steve-stonehouse
steve-stonehouse / keybase.md
Last active January 15, 2018 17:45
keybase.md

Keybase proof

I hereby claim:

  • I am steve-stonehouse on github.
  • I am sstonehouse (https://keybase.io/sstonehouse) on keybase.
  • I have a public key ASAfjy7Uhc2uxrTrRgMQBG98D2p4aL3G2BykSlXFr7T3igo

To claim this, I am signing this object:

@steve-stonehouse
steve-stonehouse / redirects.sh
Created August 31, 2017 15:39
CSV to Apache rewrites
rm -f -- $1_formatted.txt
declare -A redirects
while IFS=',' read col1 col2
do
redirects[$col1]=$col2
done < $1
for i in "${!redirects[@]}"; do
IFS='.' read -a fromurl <<< $i