Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Chris Hoffman angus65

🏠
Working from home
View GitHub Profile
View gist:8302cf7eec777ed9e9a38a5d04874275
# 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)
@angus65
angus65 / svn_2_git_commands
Last active Feb 14, 2017
SVN to Git conversion
View svn_2_git_commands
#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
@angus65
angus65 / bashrc_git_alais
Last active Aug 29, 2015
git alias commands for bashrc
View bashrc_git_alais
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 / 0_reuse_code.js
Created Jan 19, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@angus65
angus65 / SVN_AutoCommit.bat
Last active Jan 2, 2016
Auto Commit of SVN Changes into SubVersion.
View SVN_AutoCommit.bat
# 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 / svn ignore
Created Dec 19, 2013
Svn Ignore pattern I use for tortoise svn
View svn ignore
*.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