Skip to content

Instantly share code, notes, and snippets.

View angus65's full-sized avatar

Chris Hoffman angus65

View GitHub Profile
@angus65
angus65 / svn ignore
Created December 19, 2013 22:52
Svn Ignore pattern I use for tortoise svn
*.so *.so.[0-9]* *.o .lo .la ## ..rej .rej .~ ~ .# .DS_Store thumbs.db Thumbs.db *.bak *.class *.exe *.dll *.mine *.obj *.ncb *.lib *.log *.idb *.pdb *.ilk .msi .res *.pch *.suo *.exp .~ .~ ~. release Release debug Debug ignore Ignore bin Bin obj Obj *.csproj.user *.user _ReSharper.* ReSharper. *.resharper.user *.al .libs *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp *.cache *.pdb
@angus65
angus65 / SVN_AutoCommit.bat
Last active January 2, 2016 15:29
Auto Commit of SVN Changes into SubVersion.
# Delete Missing Files
svn status | ? { $_ -match '^!\s+(.*)' } | % { svn rm $Matches[1] }
# Add New Files
svn status | ? { $_ -match '^\?\s+(.*)' } | % { svn add $Matches[1] }
# Remove Locks
svn cleanup
# Commit with a message.
svn commit -m "Night Automatic commit" --username <<SVN_USER_NAME>> --password <<SVN_PASSWORD>>
# Remove Locks
svn cleanup
@angus65
angus65 / 0_reuse_code.js
Created January 19, 2014 21:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@angus65
angus65 / bashrc_git_alais
Last active August 29, 2015 13:56
git alias commands for bashrc
alias less='less -r'
# --show-control-chars: help showing Korean or accented characters
alias ls='ls -F --color --show-control-chars'
alias ll='ls -l'
alias g='git '
alias got='git '
alias get='git '
alias ga='git add '
@angus65
angus65 / svn_2_git_commands
Last active February 14, 2017 20:36
SVN to Git conversion
#Create Authors File
java -jar svn-migration-scripts.jar authors http://10.20.101.11:8080/svn/PVM_Web/ choffman > ~/authors_temp.txt
#use Git to clone the SVN Repo to local folder
git svn clone --stdlayout --authors-file=authors.txt http://10.20.101.11:8080/svn/PVM_Utilities/trunk/EdiDownload ediDownload
#NON standard repos.... like Utilities
git svn clone --authors-file=authors.txt http://10.20.101.11:8080/svn/PVM_Utilities/trunk/EdiDownload ediDownload
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
fi
# Initializes Oh My Zsh
# add a function path
fpath=($ZSH/functions $ZSH/completions $fpath)