Skip to content

Instantly share code, notes, and snippets.

# This all assumes you have the process running in
# a terminal screen and you're on Linux-like system.
# First off, suspend the process and background it
ctrl-z # suspend the process
bg # restart/continue the process in the background
# Now create files to log to. They can be called anything,
# Personally I would end the in .log. E.g. could be
# /var/logs/myprocess-stdout.log,
@mariorz
mariorz / compile_handlebars.sh
Created April 29, 2012 22:34
Handlebar compilation with name-spacing and folder structure
#! /usr/bin/env sh
# Detects files inside static/js/apps/<app_name>/templates
# compiles files to static/js/var/apps/<app_name>/templates
# Example: static/js/apps/cms/templates
TEMPLATE_DIR="static/js/apps"
TEMPLATE_DIR_TAIL="templates"
TEMPLATE_FILES_DELIMITER=":*:"
TEMPLATE_FILES=""
@mariorz
mariorz / 0_reuse_code.js
Created June 5, 2014 05:45
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