Skip to content

Instantly share code, notes, and snippets.

View jbarone's full-sized avatar

Joshua Barone jbarone

  • New Orleans, LA, USA
View GitHub Profile
@jbarone
jbarone / boxstarter.ps1
Last active May 4, 2018 17:06 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Revisions By: Joshua Barone
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2018-05-04
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Aliases
alias ls='ls -G'
alias ll='ls -FGlAhp'
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
# Bash completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
### Keybase proof
I hereby claim:
* I am jbarone on github.
* I am jbarone (https://keybase.io/jbarone) on keybase.
* I have a public key whose fingerprint is 748A 1BD5 194D F8A3 7E87 1936 0A69 04E3 BD89 575D
To claim this, I am signing this object:
#!/bin/bash
# This hook is run after every virtualenv is activated.
proj_name=$(echo $VIRTUAL_ENV|awk -F'/' '{print $NF}')
if [ -d "$PROJECT_HOME/$proj_name" ] ; then
cd $PROJECT_HOME/$proj_name
fi
@jbarone
jbarone / gitconfig
Last active February 28, 2016 02:21
[core]
autocrlf = false
safecrlf = true
pager = diff-highlight | less
[alias]
co = checkout
ci = commit
st = status -sb
br = branch
hist = log --pretty=format:\"%h %ad | %s [%an]\" --graph --date=short
@jbarone
jbarone / create-project.bash
Last active December 25, 2015 01:09
Bash script for creating new django projects
#!/bin/bash
function create-project()
{
if [ $# -eq 0 ]
then
echo "You must provide a project name"
return
fi