Skip to content

Instantly share code, notes, and snippets.

@jesselcampbell
jesselcampbell / git-clean.bash
Last active September 11, 2017 17:48
Git clean: delete merged branches
# Source: https://stevenharman.net/git-clean-delete-already-merged-branches
# To delete local branches which have already been merged into master
$ git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d
# You can omit the master branch argument to remove local branches which have already been merged into the current HEAD
$ git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
# To update the local list of remote branches
$ git remote update origin --prune
@jesselcampbell
jesselcampbell / install.sh
Last active August 8, 2017 21:29 — forked from corygibbons/setup.sh
Homebrew install script
#!/bin/sh
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install zsh, git, Node and NPM
brew install zsh
brew install git
brew install node
brew install yarn
@jesselcampbell
jesselcampbell / html-elements.html
Last active November 4, 2022 19:44
HTML Elements
<h1>Basic Elements</h1>
<p>The purpose of this page is to help determine the default styling of all possible HTML elements so nothing is overlooked in our final product.</p>
<hr>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>