Skip to content

Instantly share code, notes, and snippets.

View ralph's full-sized avatar

Ralph von der Heyden ralph

View GitHub Profile
@ralph
ralph / heroku_restart.sh
Last active July 17, 2020 08:42 — forked from mattheworiordan/restart.sh
Heroku scheduled restarts
#!/bin/bash
# Set up the Heroku scheduler to run this command every hour.
# Source: https://gist.github.com/ralph/b1b4023e0c03aa8c68f8219cd089de46
utc_hour=`date -u +'%H' | sed 's/^0*//'`
modulo="${RESTART_EVERY_X_HOURS:-6}"
n=$(($utc_hour % $modulo))
echo $n
run:
rbenv install ./2.2.2-railsexpress
or edit install.sh to include the RUBY_VERSION you want to install and run the script.
@ralph
ralph / list-link.js
Last active August 29, 2015 14:02 — forked from spiegela/list-link.js
/* Put your CSS here */
html, body {
margin: 20px;
}
.color {
height: 200px;
width: 200px;
}