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
for file in *.flac; do flac -cd "$file" | lame -f –-preset extreme – "${file%.flac}.mp3"; done |
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
# Source: http://adventuresinswitching.blogspot.com/2008/04/convert-shn-shorten-to-mp3-or-flac-in.html | |
# convert all shn files in the current directory to wav | |
shntool conv -o wav *.shn | |
# convert all wav files in the current directory to mp3 | |
for file in *.wav; do $(lame -V2 "$file" "${file%.wav}.mp3"); done | |
# clean up the mess | |
rm *.wav |
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
-- The following will convert from itemloc to inventory slot or container bag,slot | |
local ITEM_INVENTORY_PLAYER = 0x00300000 | |
local ITEM_INVENTORY_BAGS = 0x00200000 | |
local MASK_BAG = 0xf00 | |
local MASK_SLOT = 0x3f | |
local bagMap = { | |
[0x000] = 0, | |
[0x100] = 1, | |
[0x200] = 2, |
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
-- Declare this near the top of your addon | |
local L = setmetatable({}, {__index=function(t,i) return i end}) | |
-- Then for english use the english statement in the usage, like this: | |
tooltip:SetText( L["Click here to see something"] ) | |
-- Later when you want to add a locale, change the declaration of L to include the new language in the base table | |
local L = setmetatable(GetLocale() == "koKR" and { | |
["Click here to see something"] = "something in korean", | |
} or {}, {__index=function(t,i) return i end}) |
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
To kill/disable/prevent SMS from getting on your system: | |
1. Stop the CcmExec CcmFramework services (check HKLM:\System\CurrentControlSet\Services) | |
2. Wait until they're all down and happy | |
3. Delete the following folders: | |
x86: | |
\Windows\System32\CCM | |
\Windows\System32\CCMSetup |
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
global::EnvDTE.DTE dte = Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(global::EnvDTE.DTE)) as global::EnvDTE.DTE; | |
global::EnvDTE.ProjectItem item = dte.Solution.FindProjectItem(relativeToPathName); | |
global::EnvDTE.Project project = item.ContainingProject; |
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
ls *.png | % { | |
write-host "Rotating " + $_.Fullname; | |
$img = new-object system.drawing.bitmap $_.Fullname; | |
$img.RotateFlip("Rotate270FlipNone"); | |
$img.Save($_.FullName) | |
} |
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
Name | |
---- | |
!BugGrabber | |
!Swatter | |
acb_Auras | |
acb_BattleGround | |
acb_CastBar | |
acb_Cooldowns | |
acb_FlightTimes |
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
# To generate a not too insane changelog | |
# If only I could figure out how to make it show tags too | |
git log --name-status --pretty=oneline --abbrev-commit | |
# Or a shorter one... | |
git log --pretty=oneline --abbrev-commit |
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
git config branch.master.remote origin | |
git config branch.master.merge refs/heads/master |