Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Papp jeffpapp

View GitHub Profile
@jeffpapp
jeffpapp / clean.ps1
Created Feb 22, 2021
Cleanup local git branches powershell
View clean.ps1
git checkout dev && (git branch -D @(git branch | select-string -NotMatch "dev|main" | Foreach {$_.Line.Trim()}))
@jeffpapp
jeffpapp / GitHubActions.yml
Created Jun 8, 2020
GitHub Packages Private Nuget
View GitHubActions.yml
name: Build .Net Core projects
on:
push:
branches:
- master
- dev
pull_request:
branches:
- dev
View gist:ab8af8616f21e7e67dad68d2eb4047a9
https://github.com/dotnet/aspnetcore/issues/21183#issuecomment-619461697
View docker-compose.yml
version: '3'
services:
jekyll:
image: jekyll/jekyll:latest
command: jekyll serve --force-polling
ports:
- 4000:4000
volumes:
- .:/srv/jekyll
@jeffpapp
jeffpapp / cleanbranches
Last active Jan 8, 2020
Clean Git Merged Branches Powershell
View cleanbranches
# 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 $_}
View Boxstarter
Enable-RemoteDesktop
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Set-TaskbarOptions -Size Small -Combine Never
cinst GoogleChrome
cinst Firefox
cinst fiddler4
cinst 7zip.install
cinst adobereader