Skip to content

Instantly share code, notes, and snippets.

View drlongnecker's full-sized avatar
🎯
Working on everything and anything.

David R. Longnecker drlongnecker

🎯
Working on everything and anything.
View GitHub Profile
@drlongnecker
drlongnecker / SendTo-Campfire.ps1
Created January 16, 2012 18:55
Posting to Campfire from PowerShell
param (
[string]$RoomNumber = (Read-Host "The room to post to (default: 123456) "),
[string]$Message = (Read-Host "The message to send ")
)
$defaultRoom = "123456"
if ($RoomNumber -eq "") {
$RoomNumber = $defaultRoom
}
$authToken = "YOUR AUTH TOKEN"
@drlongnecker
drlongnecker / deploy.xml
Created February 10, 2012 16:34
DeployTo PowerShell xml configuration file
<?xml version="1.0" encoding="utf-8" ?>
<settings>
<common>
<release>.\release</release>
<web.config>
<appsettings>
</appsettings>
</web.config>
</common>
@drlongnecker
drlongnecker / DeployTo.ps1
Created February 10, 2012 16:32
DeployTo PowerShell build backup and deployment script.
param (
[string]$Deploy,
[switch]$SkipBackup,
[string]$Settings = "settings.xml"
)
$success = $false
function writeError($message) {
Write-Host $message -Foreground Red
break;
@drlongnecker
drlongnecker / rift.ahk
Created March 23, 2012 22:08
RIFT Melee Tab-Out Prevention!
#IfWinActive, RIFT
!Tab::
send {tab}
return
#Tab::
send {tab}
return
#IfWinActive
@drlongnecker
drlongnecker / lazymerge.ps1
Created July 25, 2012 15:48
Lazy Git Merge
# for when you're just too lazy to type out the merge command
# and change branches
function merge([string] $target, [string] $source) {
if ($source -eq "") {
$symbolicref = git symbolic-ref HEAD
$source = $symbolicref.substring($symbolicref.LastIndexOf("/") +1)
}
write-host "Merging $source into $target" -for white -ba red
git checkout $target; git merge $source; git checkout $source
@drlongnecker
drlongnecker / macrochanger.lua
Created March 23, 2018 16:49
macrochanger.lua
-- A quick rewrite of the Windower addon for Ashita v3 that swaps your macro pallette on job change.
-- Yes, I'm lazy.
_addon.name = 'MacroChanger'
_addon.author = 'Derahine'
_addon.version = '1.0.0.0'
require 'common'
jobs = {