Skip to content

Instantly share code, notes, and snippets.

View stevep's full-sized avatar

Steve Pfisterer stevep

  • Stout Logic, LLC
  • Chicago, IL
View GitHub Profile
@stevep
stevep / 0_reuse_code.js
Created July 29, 2016 16:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
#
# This script is triggered by crontab every 5 minutes.
# Logs to /var/log/ui-server/<host>-rails_check.log.
log_dir=/var/log/my_rails_app
mkdir -p $log_dir
log_file=$log_dir/$(hostname)-rails_check.log
# Limits in MB