News for hackers. Stuff that matters.
Re:Happy Git Commits by mgunes on Wednesday August 04, 2010 @10:28AM (#1574548)
I'm reminded of the git bell (http://news.ycombinator.com/item?id=482133) and git merge fail camera (http://news.ycombinator.com/item?id=1039984).
Re:Happy Git Commits by graywh on Wednesday August 04, 2010 @12:58PM (#1575000)
The camera was for hg, not git. :)
Re:Happy Git Commits by jazzychad on Wednesday August 04, 2010 @01:27PM (#1575097)
We do this at Notifo once we push committed code to GitHub. We get a message on our phones using Notifo and the GitHub hooks that plays, coincidentally, that same kids cheering sound. We also have a Commit Cam in the office which posts to DailyBooth to capture commit rapture. The first one came out perfect: http://dailybooth.com/jazzychad/6742332
Re:Happy Git Commits by bialecki on Wednesday August 04, 2010 @01:11PM (#1575043)
I like this one. You know, get pumped up to deploy new code. http://www.xbo85.dial.pipex.com/wavs/rumble.wav
Re:Happy Git Commits by limmeau on Wednesday August 04, 2010 @02:21PM (#1575319)
Git hooks aside (MacOS's "say" command can also help here), I like the way Brandon's picture pops out from under the article. It is one of those pieces that's so fun to use that I end up using it a few times extra, like the cup holder in my former boss's Saab 9000 or the carrying handle of my girlfriend's Bernina sewing machine.
Re:Happy Git Commits by elasticdog on Wednesday August 04, 2010 @01:57PM (#1575212)
It really should only cheer if the commit passes all of the automated tests...just sayin' :-)
Re:Happy Git Commits by jallmann on Thursday August 05, 2010 @12:37PM (#1578549)
Re:Happy Git Commits by avar on Wednesday August 04, 2010 @11:33AM (#1574713)
That thing is really creepy if you do a git-rebase with a lot of commits.
Re:Happy Git Commits by zemanel on Wednesday August 04, 2010 @12:03PM (#1574797)
here's a list of interesting wav's : http://tf2wiki.net/wiki/Engineer_voice_commands
Re:Happy Git Commits by pavel_lishin on Wednesday August 04, 2010 @02:28PM (#1575342)
Re:Happy Git Commits by city41 on Wednesday August 04, 2010 @12:51PM (#1574966)
I got this to work in Windows using msysgit. I downloaded sndrec32.exe (which used to come with Windows but no longer does, stand alone exe that can play wavs at the command line) and added this to my post-commit

/path/to/sndrec32.exe -play -close -embedding /path/to/happykids.wav

Re:Happy Git Commits by ltackett on Wednesday August 04, 2010 @02:48PM (#1575405)
Here's the code I've been using for git push -- with different sounds for success and failed pushes.

http://gist.github.com/508516

And the tunes: http://music.lorintackett.com/audio/succeed.mp3 http://music.lorintackett.com/audio/fail.mp3

Re:Happy Git Commits by wmat on Wednesday August 04, 2010 @05:53PM (#1576089)
I can't wait to set up a dozen or so Monty Python inspired commit sound bites: http://www.intriguing.com/mp/sounds.php

The perfect commit message to pipe loudly out of the speakers: http://www.intriguing.com/mp/_sounds/lb/stupid.wav

Re:Happy Git Commits by j_baker on Wednesday August 04, 2010 @04:53PM (#1575846)
I'd really like to have this as the sound that plays whenever you do a successful merge in svn.
Re:Happy Git Commits by arthurk on Wednesday August 04, 2010 @11:14AM (#1574663)
You could also use a Nabaztag and let the rabbit dance on post-commit.
Re:Happy Git Commits by sxtxixtxcxh on Wednesday August 04, 2010 @01:43PM (#1575160)
I set up my svn commands to play the Super Mario Bros theme from 1-1 while committing.

If successful, it plays the level complete jingle, and if it fails, Mario dies.

Re:Happy Git Commits by mgrouchy on Wednesday August 04, 2010 @12:49PM (#1574957)
I have been playing around with doing something like this, but on deploy rather then commit, just to get some audible recognition of a successful deploy or failure.
Re:Happy Git Commits by malditogeek on Wednesday August 04, 2010 @03:45PM (#1575622)
What about happy Ruby tests!? http://github.com/malditogeek/redgreen_supermario :D
Re:Happy Git Commits by swah on Wednesday August 04, 2010 @10:41AM (#1574574)
Suggestion accepted. Now I only I could play a random sound...
Re:Happy Git Commits by mapleoin on Wednesday August 04, 2010 @11:05AM (#1574640)
You could try something like this:

  timeout 3s cat /dev/urandom > /dev/dsp
Re:Happy Git Commits by ciupicri on Wednesday August 04, 2010 @04:20PM (#1575746)
There's no /dev/dsp on Fedora. This should be a more portable solution:

   dd if=/dev/urandom bs=176400 count=3 | play -t raw -r 44100 -e signed-integer -b 16 -c 2 -\
play is a part of the SoX software (Sound eXchange, the Swiss Army knife of audio manipulation).
Re:Happy Git Commits by jeebusroxors on Wednesday August 04, 2010 @12:02PM (#1574793)
Untested, but should get you close enough.

    #!/usr/bin/env bash
    F_NUM=$(($RANDOM % $(ls ~/.git/sounds/$i| wc -l)))
    n=0
    for i in *
      do
       if [[ n -eq $F_NUM ]]
         then
           afplay ~/.git/sounds/$i > /dev/null 2>&1 &
       fi
       n=$((n + 1))
    done
Re:Happy Git Commits by slug on Wednesday August 04, 2010 @12:50PM (#1574962)
My version:

#!/bin/bash

  SOUNDPATH=${HOME}/.play-random/sounds

  if [ ! -d ${SOUNDPATH} ]; then
      echo "Create and populate '${SOUNDPATH}' directory"
      exit 1;
  fi

  SOUNDS=($(ls "${SOUNDPATH}"))
  NUM_SOUNDS=${#SOUNDS[*]}

  if [ ${NUM_SOUNDS} -eq 0 ]; then
      echo "No sound files found in '${SOUNDPATH}' directory"
      exit 1;
  fi

  # select which sound to play
  SOUND="${SOUNDPATH}/${SOUNDS[$((RANDOM%NUM_SOUNDS))]}"
  echo ${SOUND}

  /usr/bin/aplay ${SOUND}
code at: http://aeminium.org/slug/software/shell/#play.random.sh

There's a way of removing that ls ${DIR} and use an echo ${DIR}/* at the expense of making it a bit uglier to detect when there's no sound files.

Re:Happy Git Commits by muitocomplicado on Wednesday August 04, 2010 @02:51PM (#1575414)

  #!/bin/sh

  SOUND=$(ls ~/Sounds |sort -R |tail -1)
  afplay ~/Sounds/$SOUND > /dev/null 2>&1 &
Re:Happy Git Commits by asksol on Wednesday August 04, 2010 @01:49PM (#1575183)
I commit so often, I'm afraid the first cheer won't finish before the second starts.
Re:Happy Git Commits by jrockway on Wednesday August 04, 2010 @12:48PM (#1574951)
Really?