Skip to content

Instantly share code, notes, and snippets.

Avatar

Valerian Saliou valeriansaliou

View GitHub Profile
@valeriansaliou
valeriansaliou / setup_docker_machine_route_macos.sh
Created Jan 26, 2016
Setups the route to Docker machine networking layer
View setup_docker_machine_route_macos.sh
#!/bin/bash
# Script to instruct the Mac how to route packets to the
# software defined network where containers created via boot2docker
# reside. This lets you casually directly to ports (ssh, http, etc. etc.)
# on those containers.
function ERROR(){ echo "ERROR: $*" ; }
function FAIL(){ echo "FAILING: $*" ; exit 1; }
View crisp_email_set.js
// CRISP_READY_TRIGGER is read as a "crisp ready" callback
CRISP_READY_TRIGGER = function() {
// Set user email once crisp is ready
$crisp.user.email.set("USER_EMAIL_THERE");
};
@valeriansaliou
valeriansaliou / upgrade_gitlab
Last active Aug 29, 2015
GitLab Upgrade Scripts
View upgrade_gitlab
#!/bin/sh
if [ "$1" ]; then
# Upgrade both GitLab CE + GitLab CI
upgrade_gitlab_ce "$1";
upgrade_gitlab_ci "$1";
else
echo "[upgrade_gitlab] Please feed me with upgrade branch (X-X-stable)"
fi