Skip to content

Instantly share code, notes, and snippets.

@PProvost
PProvost / TakeControlOf.cmd
Created February 2, 2009 01:46
Use this script to "take control of" files that you can't access.
:: Use this script to "take control of" files that you can't access. Particularly
:: useful for external NTFS volumes that were created on another computer or by
:: another user
takeown /f %1 /r /d y
icacls %1 /grant administrators:F /t
@PProvost
PProvost / Wow Minitimer
Created February 9, 2009 20:57
Wow/Lua minitimer code from wowprogramming.com
-- From http://wowprogramming.com/misc/snippets/Minitimer
local total = 0
local function onUpdate(self,elapsed)
total = total + elapsed
if total >= 2 then
print("ping!")
total = 0
end
@PProvost
PProvost / menurc
Created March 9, 2009 18:33
Photoshop-ish shortcuts for GIMP 2.x
; This file installs keyboard shortcuts from Photoshop 6 in GIMP 2.2.
;
; Rename it to 'menurc' and place it into your personal GIMP directory:
; ~/.gimp-2.2 folder (Linux) or C:\Documents and Settings\<user>\.gimp-2.2
; folder (Windows).
;
; There is a web-page describing these keybindings at
; http://epierce.freeshell.org/gimp/gimp_ps.php
;
(gtk_accel_path "<Actions>/view/view-show-selection" "<Control>h")
local healer_mode_raid_top = 85
function oUF_Quaiche:RAID_ROSTER_UPDATE()
self:CheckPartyVisibility()
if self.healerMode then
local max = 0
for i = 1,MAX_RAID_MEMBERS do
local subgroup = select(3, GetRaidRosterInfo(i))
if subgroup > max then max = subgroup end
@PProvost
PProvost / Fixing git remote config
Created April 14, 2009 17:37
Fixing git remote config
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
@PProvost
PProvost / gist:96272
Created April 16, 2009 06:43
To generate a not too insane changelog
# 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
@PProvost
PProvost / MyAddons.txt
Created May 5, 2009 16:37
My Warcraft addons list
Name
----
!BugGrabber
!Swatter
acb_Auras
acb_BattleGround
acb_CastBar
acb_Cooldowns
acb_FlightTimes
@PProvost
PProvost / RotateImage.ps1
Created May 13, 2009 17:23
PowerShell script for rotating a set of images.
ls *.png | % {
write-host "Rotating " + $_.Fullname;
$img = new-object system.drawing.bitmap $_.Fullname;
$img.RotateFlip("Rotate270FlipNone");
$img.Save($_.FullName)
}
@PProvost
PProvost / gist:123691
Created June 4, 2009 16:14
A little hack to acces DTE without having an IServiceProvider
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;
@PProvost
PProvost / gist:134076
Created June 22, 2009 17:02
Disable SMS Virus on Windows
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