Last active
November 8, 2019 15:31
-
-
Save petevb/1955c9d62c93a888ddf4 to your computer and use it in GitHub Desktop.
[Building new machines] #cicd #dev
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 | |
# alias.sh | |
shopt -s expand_aliases | |
# Must set this option, else script will not expand aliases. | |
alias ll="ls -l" | |
# May use either single (') or double (") quotes to define an alias. | |
# twotime: https://www.npmjs.com/package/twotime | |
alias tt="twotime" | |
alias tts="tt start $*" | |
alias ttf="tt finish $*" | |
alias ttfa="tt finish --all $*" | |
alias ttr="tt resume $*" | |
alias ttp="tt pause $*" | |
# legacy aliases until I unlearn them | |
alias onetime="tt" | |
alias ots="onetime time start $*" | |
alias otr="onetime t restart -o $*" | |
alias otp="onetime t pause $*" | |
alias otf-day="onetime time finish --all -o $*" | |
function otf() { | |
for (( i=$1; i>=0; i-- )); | |
do | |
echo finishing $i ... | |
otf-day $i | |
done | |
} | |
#alias otf2="doIt $1" | |
# ---------------------- | |
# Git Aliases | |
# ---------------------- | |
alias ga='git add' | |
alias gaa='git add .' | |
alias gaaa='git add --all' | |
alias gau='git add --update' | |
alias gb='git branch' | |
alias gbd='git branch --delete ' | |
alias gc='git commit' | |
alias gcm='git commit --message' | |
alias gcf='git commit --fixup' | |
alias gco='git checkout' | |
alias gcob='git checkout -b' | |
alias gcom='git checkout master' | |
#alias gcos='git checkout staging' | |
alias gcod='git checkout develop' | |
alias gd='git diff' | |
alias gda='git diff HEAD' | |
alias gdd='git difftool HEAD..origin/develop --dir-diff' | |
alias gdt='git difftool HEAD..origin/develop --dir-diff' | |
alias gi='git init' | |
alias glg='git log --graph --oneline --decorate --all' | |
alias gld='git log --pretty=format:"%h %ad %s" --date=short --all' | |
alias gm='git merge --no-ff' | |
alias gma='git merge --abort' | |
alias gmc='git merge --continue' | |
alias gp='git pull' | |
alias gpr='git pull --rebase' | |
alias gr='git rebase' | |
alias gs='git status' | |
alias gss='git status --short' | |
alias gst='git stash' | |
alias gsta='git stash apply' | |
alias gstd='git stash drop' | |
alias gstl='git stash list' | |
alias gstp='git stash pop' | |
alias gsts='git stash save' | |
# https://coderwall.com/p/-mydag/my-best-essential-git-aliases-what-are-your-s | |
alias gitlog="git log --color --graph --pretty=format:'%Cgreen[%Creset%h%Cgreen]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gittoday="git log --color --graph --pretty=format:'%Cgreen[%Creset%h%Cgreen]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --since=yesterday" | |
# ---------------------- | |
# Git Functions | |
# ---------------------- | |
# Git log find by commit message | |
function glf() { git log --all --grep="$1"; } |
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 | |
if defined AUTORUN_HAS_BEEN_RUN exit /b | |
echo. | |
echo ### .dos-aliases.cmd ### | |
echo. | |
echo Setting up aliases... | |
echo. | |
doskey ls=dir /ogn /w $* | |
doskey ll=dir /ogn /p /n /q /r $* | |
set dircmd=/ogn /w | |
:: edit this doc. | |
doskey alias=code %USERPROFILE%\.dos-aliases.cmd | |
doskey ConEmu=d:\OneDrive\apps\ConEmu\ConEmuPortable.exe $* | |
doskey sudo=ConEmu -c $* -new_console:a | |
doskey ssa=start-ssh-agent | |
doskey ci=code-insiders $* | |
:: Common directories | |
doskey ttc=cd /d c:\code\ttc | |
doskey home=cd /d %USERPROFILE% | |
:: twotime terseness | |
doskey onetime=twotime $* | |
doskey tt=twotime $* | |
doskey tts=twotime start --tp $* | |
doskey ttr=twotime resume $* | |
doskey ttp=twotime pause $* | |
doskey ttf=twotime finish $* | |
doskey ttfa=twotime finish --all $* | |
doskey ttfal=for /l %%i in ($1+0,-1,1) do twotime finish --all -o %%i | |
doskey ttfao=for /l %%i in ($1+0,-1,1) do twotime finish --all -o %%i | |
doskey ttl=twotime list $* | |
:: show what you did | |
doskey /macros:all | |
echo. | |
echo Don't forget to start SSH agent! (alias "ssa") | |
set AUTORUN_HAS_BEEN_RUN=1 |
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
[winUpdater] | |
recentlySeenVersion = 2.23.0.windows.1 | |
[user] | |
name = petevb | |
email = [email protected] | |
[core] | |
autocrlf = true | |
editor = 'C:\\Users\\PetevanBlerk\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\Code - Insiders.exe' --wait | |
filemode = false | |
[difftool "bc"] | |
path = D:\\OneDrive\\apps\\bc4\\bcomp.exe | |
[mergetool "bc"] | |
path = D:\\OneDrive\\apps\\bc4\\bcomp.exe | |
[diff] | |
tool = bc | |
[merge] | |
tool = bc | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
[branch] | |
autosetuprebase = always | |
[log] | |
decorate = true | |
abbrevCommit = true | |
[alias] | |
co = checkout | |
cob = co -b | |
cod = co develop | |
cp = cherry-pick | |
p = pull | |
#squash = merge --squash | |
st = status | |
df = diff | |
b = branch | |
r = reset | |
rh = r --hard | |
rho = r --hard origin | |
logol = log --pretty=format:"%h\\ %s\\ [%cn]" | |
lo = log --pretty=format:"%h\\ %s\\ [%cn]" | |
dd = difftool --dir-diff | |
work = !git lo --author petevb --before today --after \"seven days ago\" | |
info = !git st && echo && git remote -v |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
#Enable-RemoteDesktop | |
#cinst vs2013.4 | |
cinst tfs2013powertools -y | |
cinst visualstudio2013-webessentials.vsix -y | |
cinst resharper -Version 8.2.3000.5176 -y | |
cinst wixtoolset -y | |
cinst rdcman -y | |
cinst sublimetext3 -y | |
cinst nodejs.install -y | |
#cinst mongodb -y | |
cinst vlc -y | |
cinst ffmpeg -y | |
cinst mediainfo -y | |
cinst windbg -y | |
cinst atom -y | |
cinst git -y | |
cinst 7zip -y | |
cinst beyondcompare -y | |
cinst fiddler4 -y | |
cinst ConEmu -y | |
cinst Vs2013AzurePack_2_2 -source webpi -y | |
cinst Microsoft-Hyper-V-All -source windowsFeatures -y | |
cinst IIS-WebServerRole -source windowsfeatures -y |
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
7zip 16.4.0.20170506 | |
7zip.install 16.4.0.20170506 | |
Atom 1.0.7 | |
autohotkey.portable 1.1.25.02 | |
Brackets 1.9 | |
chocolatey 0.10.5 | |
chocolatey-core.extension 1.3.1 | |
ChocolateyGUI 0.13.2 | |
curl 7.54.0 | |
diffmerge 4.2.0.697 | |
DotNet4.5 4.5.20120822 | |
DotNet4.5.2 4.5.2.20140902 | |
f.lux 3.12 | |
filezilla 3.25.2 | |
github 3.2.0.0 | |
GoogleChrome 58.0.3029.110 | |
GoogleChrome.Canary 28.0.1461.0 | |
hyper 1.3.3 | |
licecap 1.26.0.20170325 | |
mongodb 3.2.10 | |
mongodb.install 3.2.10 | |
ngrok.portable 2.0 | |
nodejs.install 8.0.0 | |
notepadplusplus.install 7.4.1 | |
nvm 1.1.1 | |
nvm.portable 1.1.1 | |
PowerShell 5.1.14409.20170510 | |
putty 0.69 | |
putty.portable 0.69 | |
python 3.6.1 | |
python3 3.6.1 | |
screenhero 2.3.600.20161002 | |
vcredist2010 10.0.40219.2 | |
visualstudiocode 1.12.2 | |
yarn 0.24.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment