Skip to content

Instantly share code, notes, and snippets.

Delivering Groceries

Brandon Lawrence Brantron

Delivering Groceries
Block or report user

Report or block Brantron

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
Brantron / .zshrc
Created Sep 4, 2018
an interactive git branch selector for fzf
View .zshrc
alias branchlist="git for-each-ref --sort='-authordate' --format='%1B[0;34m%(refname:short)%1B[m ===> %1B[1;35m%(subject)' refs/heads | sed -e 's-refs/heads/--'"
function branches() {
local branch_name=$(branchlist | fzf --ansi -m)
if [[ $branch_name ]]; then
echo $branch_name | awk '{print $1}' | xargs git co
Brantron / Kill Rails for Mac
Last active Aug 29, 2018
Kill rails process on Mac from command line
View Kill Rails for Mac
Put this functionin your ~/.bash_profile
function krails() {
lsof -i tcp:3000 | awk -v N=2 '{print $N}' | tail -n -2 | xargs -L1 kill -9
then from the terminal reload with `source ~/.bash_profile` and you can run `krails` anytime in the terminal to kill all rails processes
View index.html
<div class="row">
<div class="columns">
<p>Lazy Load Test</br>Titles and Dates</p>
<div id="cand"></div>
You can’t perform that action at this time.