This file contains hidden or 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
Handlebars.registerHelper('equal', function(lvalue, rvalue, options) { | |
if (arguments.length < 3) | |
throw new Error("Handlebars Helper equal needs 2 parameters"); | |
if( lvalue!=rvalue ) { | |
return options.inverse(this); | |
} else { | |
return options.fn(this); | |
} | |
}); |
This file contains hidden or 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
Directory Server Diagnosis | |
Performing initial setup: | |
Trying to find home server... | |
Home Server = exchange01 |
This file contains hidden or 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
Repadmin: running command /showrepl against full DC localhost | |
WaterStreet\EXCHANGE01 | |
DSA Options: IS_GC | |
Site Options: (none) |
This file contains hidden or 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
net use Z: \\server\share /user:username password |
This file contains hidden or 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
rundll32 printui.dll,PrintUIEntry /y /q /n “Printer name” |
This file contains hidden or 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
@echo off | |
ECHO***************************************************************************************** | |
ECHO Please close all running programs, and plug into A/C power if you are on a laptop. | |
ECHO This will take a LONG time to complete. | |
ECHO ***************************************************************************************** | |
REM This batch will set Check Disk to run after reboot, run Disk Cleanup, delete temp files, | |
REM run Disk Defragmenter, delete this file, and reboot the machine, starting Check Disk | |
REM Check Disk | |
REM ================ |
This file contains hidden or 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
@ECHO OFF | |
REM This program is free software: you can redistribute it and/or modify | |
REM it under the terms of the GNU General Public License as published by | |
REM the Free Software Foundation, either version 3 of the License, or | |
REM (at your option) any later version. | |
REM | |
REM This program is distributed in the hope that it will be useful, | |
REM but WITHOUT ANY WARRANTY; without even the implied warranty of | |
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or 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
echo \<?xml version=\"1.0\" encoding=\"UTF-8\"?\> | |
echo \<kml xmlns=\"http://www.opengis.net/kml/2.2\"\> | |
function Place { | |
echo \<Placemark\> | |
echo \<name\>$1\</name\> | |
echo \<description\>\</description\> | |
echo \<Point\> | |
echo \<coordinates\>$3,$2,0\</coordinates\> | |
echo \</Point\> |
This file contains hidden or 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
@echo off | |
echo **YOU MUST BE AN ADMINISTRATOR ON THIS MACHINE FOR THE SCRIPT TO WORK PROPERLY** | |
echo THIS SCRIPT WORKS FOR WINDOWS XP AND WINDOWS 7 | |
REM This determines if you're running XP or Windows 7 | |
ver | find "XP" > nul | |
if %errorlevel% == 1 goto :win7 | |
break | |
REM This runs if XP is found. The Windows 7 commands are at the bottom of this script | |
echo IDENTIFIED WINDOWS XP | |
echo Checking if printer "[PRINTER NAME HERE]" already exists |
This file contains hidden or 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
# Danny McClelland | |
# The great bash profile of 2013 | |
export HISTTIMEFORMAT='%Y-%b-%d %a %H:%M:%S - ' | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
# Create a POW entry for the current site |