Skip to content

Instantly share code, notes, and snippets.

View aheritier's full-sized avatar

Arnaud Héritier aheritier

View GitHub Profile
@remysaissy
remysaissy / .bash_profile_docker_osx.sh
Created January 5, 2016 15:12
Shell function to let a MacOSX user load a docker-machine environment and update OSX routes to access docker0 IPs directly
# Load the docker-machine environment and update the route to let MacOSX access containers IPs.
denv() {
eval $(docker-machine env $1)
SUBNET=$(docker network inspect $(docker network ls | grep bridge | awk '{ print $1; }') | grep Subnet | awk '{ gsub(/"/, "", $2); print $2; }')
sudo route -n delete $SUBNET
@jvanzyl
jvanzyl / gist:16da25976f8ad27293fa
Last active July 3, 2018 17:50
Validate a Maven Core Pull Request
#!/bin/sh
#
# PR validator: This script will checkout Maven, apply a PR, build the Maven distribution and
# run the Maven integration tests against the just-built distribution. If you
# successfully get to the end of this script then your PR is ready to be reviewed.
# Assumptions:
# 1) You have a functioning version of Maven installed (script tested with 3.2.1)
# 2) You have a decent connection. This script checks out everything from scratch and downloads
# everything into a clean local repository. Not terribly efficient but makes sure there is no
arnaud@petit-robot-1$ git dependency:go-offline
git: 'dependency:go-offline' is not a git command.
Allo, non mais allo quoi! T'utilises git et tu mets le mode offline?
Allô. Allô! Je ne sais pas, vous me recevez? T'utilises git et tu mets le mode offline?
C'est comme si j'te dis: t'es développeur et t'as des cheveux!
arnaud@petit-robot-1$