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 --global merge.tool diffmerge | |
git config --global mergetool.diffmerge.cmd "sgdm.exe --merge --result=\$MERGED \$LOCAL \$BASE \$REMOTE" | |
git config --global mergetool.diffmerge.trustExitCode true | |
# If you want to disable git's backup file creation uncomment the following line. | |
# Otherwise you might need to add *.orig into your .gitignore to prevent them | |
# being added to your repository. |
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
<# restoreDBs.ps1 | |
.SYNOPSIS | |
A script to restore multiple databases on SqlServer from this | |
Winsmarts.com afticle: http://bit.ly/17lTl6t | |
.DESCRIPTION | |
The script enumerates the .bak files in the current directory | |
and restores each file to a separate database named the same | |
as the file, minus the ".bak" extension. For example, this | |
file, "AuthDB.bak" will yield a database named "AuthDB" | |
.NOTES |
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
@echo off | |
REM I found this code here: http://k4gdw.us/1CSwWRX (StackOverflow) | |
setlocal enabledelayedexpansion | |
for %%a in (*_*) do ( | |
set file=%%a | |
ren "!file!" "!file:_= !" | |
) |
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
/* | |
* Scripts to remove data you don't need here | |
*/ | |
/* | |
* Now let's clean that DB up! | |
*/ | |
DECLARE @DBName VarChar(25) |
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
# | |
# Working with branches | |
# | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
# Push the current branch to the remote "origin", and set it to track | |
# the upstream branch | |
publish = "!git push -u origin $(git branch-name)" |
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
#!/bin/bash | |
# https://gist.github.com/robwierzbowski/5430952/ | |
# Create and push to a new github repo from the command line. | |
# Grabs sensible defaults from the containing folder and `.gitconfig`. | |
# Refinements welcome. | |
# Gather constant vars | |
CURRENTDIR=${PWD##*/} | |
GITHUBUSER=$(git config github.user) |
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
#!/bin/bash | |
#------------------------------------------------------------------------------- | |
# Name : git-remove-file.sh | |
# Written By: David Underhill, with modifications by, Bryan K. Johns, K4GDW | |
# Purpose : Script to permanently delete files / folders from your git | |
# : repository. To use it, cd to the root of your repository and then | |
# : run the script as shown. | |
# Calls : ./git-sanitize.sh path1 path2... | |
# Comments : This is my version of the git-delete-history script found here: |
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
# Execute the following commands one at a time from a bash prompt. | |
# download docx2txt by Sandeep Kumar | |
wget -O docx2txt.pl http://www.cs.indiana.edu/~kinzler/home/binp/docx2txt | |
# make a wrapper | |
echo '#!/bin/bash | |
docx2txt.pl $1 -' > docx2txt | |
chmod +x docx2txt | |
# make sure docx2txt.pl and docx2txt are your current PATH. Here's a guide |