Skip to content

Instantly share code, notes, and snippets.

View alecthegeek's full-sized avatar
🤖
Dem keyboards don't go click click on their own you know

Alec Clews alecthegeek

🤖
Dem keyboards don't go click click on their own you know
View GitHub Profile
@alecthegeek
alecthegeek / profile.ps1
Last active March 14, 2019 04:00 — forked from sixeyed/profile.ps1
PowerShell profile with aliases for common Docker commands
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 (
@alecthegeek
alecthegeek / boxstarter.ps1
Last active March 4, 2019 23:43 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Alec Clews <alec.clews@papercut.com> (forked from Jess Frazelle <jess@linux.com>)
# 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:
@alecthegeek
alecthegeek / LICENSE
Last active November 14, 2015 02:16 — forked from ajfisher/LICENSE
Preparation for BuzzConf
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:
#!/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
@alecthegeek
alecthegeek / gist:7595870
Last active December 29, 2015 01:49 — forked from anonymous/gist:7595857
Running HomeBrew Rhino debugger on OS X
#!/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 "$@"
@alecthegeek
alecthegeek / gist:3354044
Created August 15, 2012 00:00 — forked from garann/gist:3353532
Crowdsourced career mentorship for female developers

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!

Applying for jobs

Interviewing

Professional behavior

Negotiation

GA Git Class Command History

on 2012-07-26

echo STARTING CLASS
git --version
which git
brew update && brew upgrade
ls
clear

pwd

@alecthegeek
alecthegeek / bash-git-prompt
Created March 4, 2010 03:36 — forked from elecnix/bash-git-prompt
Displays the current git branch name and the dirty state in your Bash shell
#!/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:
#
@alecthegeek
alecthegeek / git-croncheck
Created March 4, 2010 03:24 — forked from elecnix/git-croncheck
be notified when your repo is dirty
#!/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
@alecthegeek
alecthegeek / gist:226499
Created November 4, 2009 23:24 — forked from claudinec/gist:226453
Locate dropbox conflicts
find ~/Dropbox -name '*conflicted copy*'