on 2012-07-26
echo STARTING CLASS
git --version
which git
brew update && brew upgrade
ls
clear
pwd
find ~/Dropbox -name '*conflicted copy*' |
#!/bin/bash | |
# Put this in your crontab to be notified when your repo is dirty or commits needs to be pushed to a remote. | |
# Example crontab: | |
# MAILTO=user@yourdomain | |
# 0 * * * Mon-Fri /path/to/check-repo-status /path/to/repo | |
cd $1 | |
git status | grep 'working directory clean' 2>/dev/null 1>/dev/null || { | |
git status | |
git diff | |
exit |
#!/bin/bash | |
# | |
# Displays the current git branch name and the dirty state in your Bash shell | |
# prompt. Add a line like this to your ~/.bashrc file: | |
# | |
# . ~/path/to/gist/bash-git-prompt | |
# | |
# To use this, you must enable "enable programmable completion features". | |
# Look at your ~/.bashrc for something like: | |
# |
I was inspired by Selena Deckelmann's list of Career Resources for Women (http://www.chesnok.com/daily/career-resources-for-women/), but couldn't think of much to contribute. So I thought maybe those of us already in the field and in a position to mentor could work on creating more. Please fork or comment and add your own!
#!/bin/sh | |
# https://developer.mozilla.org/en/docs/Rhino/Debugger | |
java -cp $(brew --prefix)/Cellar/rhino/1.7R4/libexec/js.jar org.mozilla.javascript.tools.debugger.Main "$@" |
#!/bin/bash | |
# manage Tmux | |
if [ -n "$TMUX" ]; then # in tmux | |
if [ -n "$COLORTERM" ]; then # in rich VT | |
export TERM=xterm-256color-italic | |
fi | |
elif tmux list-sessions > /dev/null 2>&1 ; then | |
tmux attach # try to attach |
The MIT License (MIT) | |
Copyright (c) 2015 ajfisher | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
# Description: Boxstarter Script | |
# Author: Alec Clews <[email protected]> (forked from Jess Frazelle <[email protected]>) | |
# Last Updated: 2018-01-10 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
function Remove-StoppedContainers { | |
docker container rm $(docker container ls -q) | |
} | |
function Remove-AllContainers { | |
docker container rm -f $(docker container ls -aq) | |
} | |
function Get-ContainerIPAddress { | |
param ( |