Skip to content

Instantly share code, notes, and snippets.

@maxandersen
maxandersen / readme
Last active August 29, 2015 14:02
how to send pdfs to a certain picky expense system
Install "sendEmail"
on OSX I did that with 'brew install sendemail'
on fedora/red hat 'yum sendEmail' should work too (not tested).
http://caspian.dotconf.net/menu/Software/SendEmail/
Then use the script below and do this in the dir with your pdf's for the script (it will just take all *.pdf).
@emmanuelbernard
emmanuelbernard / beep.pl
Last active December 17, 2015 06:58 — forked from anonymous/beep.pl
Do not look for (and expand) message and nick when reacting to DCC sig
#
# Copyright (C) 2006-2012 Sebastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2011 Nils Görs <weechatter@arcor.de>
# Copyright (C) 2011 ArZa <arza@arza.us>
# Copyright (C) 2013 Emmanuel Bernard <code@mel.emmanuelbernard.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
@emmanuelbernard
emmanuelbernard / build.sh
Created January 20, 2011 09:28
build your project in the background while you can work on the next bug
#!/bin/bash
# Clones your existing repo and run the maven tests off this clone
# Tests are run on the the current branch at the time of cloning
#
# Note that you can work on the next bug while this is going on as
# tests are run off a cloned repo.
#
# $ build.sh
# runs 'maven clean install'
#
@hferentschik
hferentschik / gist:765019
Created January 4, 2011 16:51
Switched JDKs on Mac
J_VERSIONS_DIRECTORY="/System/Library/Frameworks/JavaVM.framework/Versions"
J_COMMANDS_SUBPATH="Commands"
J_HOME_SUBPATH="Home"
function availableJVMs()
{
ls -1 $J_VERSIONS_DIRECTORY | grep ^[0-9].[0-9]
}
function listJava()
@emmanuelbernard
emmanuelbernard / build.sh
Created November 5, 2010 09:49
Run your tests on a cloned local repository. Clone or sync up your current repo with a cloned repo in ../privatebuild/reponame and run maven clean test on it.
#!/bin/bash
#run ./build.sh on another terminal window
#it will clone your existing repo and run the maven tests off this clone
#the branch tests are run from is the current branch
#
# ./build.sh
#the cloned repo will live in ../DIRECTORY_ROOT/REPO_DIRECTORY
DIRECTORY_ROOT="../privatebuild/"