Skip to content

Instantly share code, notes, and snippets.

View jeffpapp's full-sized avatar

Jeff Papp jeffpapp

View GitHub Profile
@jeffpapp
jeffpapp / clean.ps1
Last active July 20, 2023 13:54
Cleanup local git branches powershell
git branch | %{ $_.Trim() } | ?{ $_ -notmatch 'main|master|dev|(\* .*)' } | %{ git branch -D $_ }
@jeffpapp
jeffpapp / GitHubActions.yml
Created June 8, 2020 22:24
GitHub Packages Private Nuget
name: Build .Net Core projects
on:
push:
branches:
- master
- dev
pull_request:
branches:
- dev
https://github.com/dotnet/aspnetcore/issues/21183#issuecomment-619461697
@jeffpapp
jeffpapp / docker-compose.yml
Created February 28, 2019 04:32
Jekyll Docker
version: '3'
services:
jekyll:
image: jekyll/jekyll:latest
command: jekyll serve --force-polling
ports:
- 4000:4000
volumes:
- .:/srv/jekyll
@jeffpapp
jeffpapp / cleanbranches
Last active January 8, 2020 17:42
Clean Git Merged Branches Powershell
# Remove remote branches that don't exist anymore
git remote prune origin
# List branches, find ones where the origin is gone, then delete each branch name
git branch -vv | Select-String -Pattern "origin/.*: gone]" | ForEach-Object{($_ -split "\s+")[1]} | %{git branch -D $_}
@jeffpapp
jeffpapp / Boxstarter
Last active November 14, 2018 22:53
Use this url to install: http://boxstarter.org/package/nr/url?<rawUrl of this gist>
Enable-RemoteDesktop
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Set-TaskbarOptions -Size Small -Combine Never
cinst GoogleChrome
cinst Firefox
cinst fiddler4
cinst 7zip.install
cinst adobereader