Skip to content

Instantly share code, notes, and snippets.

View SirkleZero's full-sized avatar

Joshua Gall SirkleZero

View GitHub Profile
@SirkleZero
SirkleZero / project-stats.ps1
Created April 19, 2015 04:24
A simple Powershell script to analyze a solution directory and provide simple code statistics.
param (
[ValidateScript({$_ | Test-Path -PathType Container})]
[Parameter(Mandatory=$true)]
[string] $path
)
[string[]] $extensions =
".asp",
".Domain",
".Repository",
@SirkleZero
SirkleZero / killscc.ps1
Created May 26, 2012 06:45 — forked from stephengodbold/killscc.ps1
Removes source control bindings, and optionally backs up the original files
param (
[ValidateScript({$_ | Test-Path -PathType Container})]
[Parameter(Mandatory=$true)]
[string] $folder,
[switch] $backup
)
function killReadOnlyFlag(){
get-childitem "$folder" -recurse | % {
# Test for ReadOnly flag and remove if present
@SirkleZero
SirkleZero / git-all.ps1
Created September 25, 2012 22:40
This powershell script will enumerate the Git projects in a parent directory, perform a fetch on each remote and then print out the status of the repo.
$global:GitAllSettings = New-Object PSObject -Property @{
FolderForegroundColor = [ConsoleColor]::Cyan
}
function git-all()
{
$s = $global:GitAllSettings
dir -r -i .git -fo | % {
pushd $_.fullname
cd ..
@SirkleZero
SirkleZero / git-aliases.gitconfig
Last active April 14, 2018 22:10
A collection of useful Git aliases
[alias]
ci = commit
br = branch
co = checkout
df = diff
st = status -b -s
sc = commit -S -m
last = log -1 HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
testmerge = merge --no-commit --no-ff