Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Adapted from: https://gist.github.com/mythmon/4151152
export LEEROY_URL="https://leeroybot.herokuapp.com/"
LEEROY_RERUN="https://raw.github.com/lonnen/leeroy-rerun/master/leeroy-rerun.py"
# Usage
[[ -z $1 ]] && {
echo "Rerun a Leeroy job for Kuma."
{# Randomly determine if the new heading should be shown #}
{% set show_new_heading = random_boolean() %}
{% if show_new_heading %}
<h1>The Best Documentation Around</h1>
{% endif %}
<script>
window['optimizely'] = window['optimizely'] || [];
@openjck
openjck / kuma-vagrant-reset.sh
Last active August 29, 2015 14:02
Take common steps to fix the Kuma development environment. Basically the equivalent of resetting Firefox or unplugging a router. Restarts as much as possible without losing data.
#!/bin/bash
# Configuration
KUMA_ROOT=/path/to/kuma
# Script
# https://www.youtube.com/watch?v=ckIMuvumYrg
pushd .
cd $KUMA_ROOT
vagrant halt