Skip to content

Instantly share code, notes, and snippets.

View Ravendwyr's full-sized avatar
🛍️
Unexpected item in bagging area.

Kerrinen Hope Ravendwyr

🛍️
Unexpected item in bagging area.
View GitHub Profile
@Ravendwyr
Ravendwyr / mass-delete.sh
Created August 8, 2013 11:10
Mass delete .DS_Store files.
#! /bin/sh
echo "Beginning cleanup..."
cd /
find . -name '*.DS_Store' -type f -delete
echo "Cleanup complete."
@Ravendwyr
Ravendwyr / convert-files.sh
Created August 8, 2013 11:17
Convert all files in a directory from Window-style line endings to Unix-style.
#! /bin/sh
echo "Beginning conversion..."
for x do
echo "Converting $x..."
tr -d '\015' < "$x" > "$x.new"
mv "$x.new" "$x"
done
@Ravendwyr
Ravendwyr / upgrade-tags.sh
Created February 15, 2015 19:30
Replace all git tags with annotated git tags.
#! /bin/sh
git tag -l | while read tag; do git checkout $tag; git tag -d $tag; GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag -a $tag -m "Tagging as $tag."; git push origin :refs/tags/$tag; done
git push --tags
@Ravendwyr
Ravendwyr / Geppetto.lua
Created July 31, 2016 21:56
Geppetto for 7.0.3
Geppetto = {}
--[[=====================================
Scanning tooltip
--=====================================]]
local tip = CreateFrame("GameTooltip")
local linecache = {}
tip:SetOwner(WorldFrame, "ANCHOR_NONE")
for i=1,40 do
linecache[i] = tip:CreateFontString()
tip:AddFontStrings(linecache[i], tip:CreateFontString())