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 / 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 / Generate_GitSHA1_forAfile.sh
Last active September 4, 2020 10:31
Calculate Git sha1 for a file
(echo -en "blob $(wc -c < $file)\00";cat $file)|sha1sum -b | cut -d " " -f 1
or of course
git hash-object $file
@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 / Pomodoro_Template.tsktmpl
Created December 29, 2009 11:07
Pomodoro template for taskcoach
<?xml version="1.0" ?>
<?taskcoach release="0.77.0" tskversion="27"?>
<tasks>
<task id="168052332:1262058476.11" startdatetmpl="Today() + TimeDelta(0)" status="1" subject="Pomodoro Task">
<description>
Estimated : xP
Actual (X):
Internal Interuptions ('):
External Interuption (-):
@alecthegeek
alecthegeek / yahoo pipe to filter github RSS feeds
Created November 10, 2009 03:30
yahoo pipe to filter github RSS feeds
http://pipes.yahoo.com/pipes/pipe.info?_id=cde169b7095489431b69b47395e07298
@alecthegeek
alecthegeek / gist:226499
Created November 4, 2009 23:24 — forked from claudinec/gist:226453
Locate dropbox conflicts
find ~/Dropbox -name '*conflicted copy*'
@alecthegeek
alecthegeek / build IDs with git
Created November 4, 2009 22:04
Generate build ID in Git
use the output of git log -1 '--pretty=format:%h %ai' (example: "d19611c 2009-10-01 01:58:19 -0400")
(from Nikolas Coukouma)
@alecthegeek
alecthegeek / Text mode 'gitk --all'. Thanks to schacon
Created November 2, 2009 03:09
Provide a text graph of git repo
git log --pretty=oneline --abbrev-commit --all --graph