Skip to content

Instantly share code, notes, and snippets.

Joshua Gall SirkleZero

Block or report user

Report or block SirkleZero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@SirkleZero
SirkleZero / project-stats.ps1
Created Apr 19, 2015
A simple Powershell script to analyze a solution directory and provide simple code statistics.
View project-stats.ps1
param (
[ValidateScript({$_ | Test-Path -PathType Container})]
[Parameter(Mandatory=$true)]
[string] $path
)
[string[]] $extensions =
".asp",
".Domain",
".Repository",
@SirkleZero
SirkleZero / git-aliases.gitconfig
Last active Apr 14, 2018
A collection of useful Git aliases
View git-aliases.gitconfig
[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
@SirkleZero
SirkleZero / git-all.ps1
Created Sep 25, 2012
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.
View git-all.ps1
$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 / killscc.ps1
Created May 26, 2012 — forked from stephengodbold/killscc.ps1
Removes source control bindings, and optionally backs up the original files
View killscc.ps1
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
You can’t perform that action at this time.