Skip to content

Instantly share code, notes, and snippets.

View valeriansaliou's full-sized avatar
💫
Per aspera ad astra

Valerian Saliou valeriansaliou

💫
Per aspera ad astra
View GitHub Profile

Keybase proof

I hereby claim:

  • I am valeriansaliou on github.
  • I am valerian (https://keybase.io/valerian) on keybase.
  • I have a public key ASAoeFcGq8cTxJMg6NVKnrqOa8YafbxlxNmDmA00RyqURwo

To claim this, I am signing this object:

@valeriansaliou
valeriansaliou / letsencrypt_cron_wrapper.sh
Last active November 28, 2016 09:26
Let's Encrypt manual certificate renew for a static private key
#!/bin/bash
# Cron wrapper, call this directly from your cron. Depends on renew script (letsencrypt_manual_renew.sh).
ADMIN_EMAIL=hostmaster@server.tld
RENEWLOG=`/srv/data_server/certs/tools/letsencrypt_manual_renew.sh 2>&1`
rc=$?
if [[ $rc -ne 0 ]]; then
defaults delete com.apple.dock expose-animation-duration; killall Dock
@valeriansaliou
valeriansaliou / setup_docker_machine_route_macos.sh
Created January 26, 2016 09:08
Setups the route to Docker machine networking layer
#!/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; }
// 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 August 29, 2015 14:20
GitLab Upgrade Scripts
#!/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