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
#!/bin/bash | |
stash() { | |
# check if we have uncommited changes to stash | |
git status --porcelain | grep "^." >/dev/null; | |
if [ $? -eq 0 ] | |
then | |
if git stash save -u "git-update on `date`"; | |
then |
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
#!/bin/bash | |
# query the root of the repo because git status prints | |
# relative paths within the repo | |
if ! pushd "`git rev-parse --show-toplevel`" >/dev/null | |
then | |
echo "git rev-parse --show-toplevel failed to return the root dir of the repo" | |
exit 1 | |
else | |
gitroot=`pwd` |
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
:: Name: MsDepSvc.Port.cmd | |
:: Purpose: Modifies the TCP/IP port that the Web Deployment Agent Service | |
:: (MsDepSvc) listens on. Tested on Win7 Enterprise 32-bit. | |
:: Author: [email protected] | |
:: Revision: January 2013 | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
SETLOCAL ENABLEDELAYEDEXPANSION |
NewerOlder