Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Papp jeffpapp

View GitHub Profile
@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>
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
@jeffpapp
jeffpapp / cleanbranches
Last active January 8, 2020 17:42
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 $_}
@jeffpapp
jeffpapp / docker-compose.yml
Created February 28, 2019 04:32
Jekyll Docker
View docker-compose.yml
version: '3'
services:
jekyll:
image: jekyll/jekyll:latest
command: jekyll serve --force-polling
ports:
- 4000:4000
volumes:
- .:/srv/jekyll
View gist:ab8af8616f21e7e67dad68d2eb4047a9
https://github.com/dotnet/aspnetcore/issues/21183#issuecomment-619461697
@jeffpapp
jeffpapp / GitHubActions.yml
Created June 8, 2020 22:24
GitHub Packages Private Nuget
View GitHubActions.yml
name: Build .Net Core projects
on:
push:
branches:
- master
- dev
pull_request:
branches:
- dev
@jeffpapp
jeffpapp / clean.ps1
Created February 22, 2021 15:18
Cleanup local git branches powershell
View clean.ps1
git checkout dev && (git branch -D @(git branch | select-string -NotMatch "dev|main" | Foreach {$_.Line.Trim()}))