Skip to content

Instantly share code, notes, and snippets.

View jonthdiaz's full-sized avatar
🏠
Working from home

Jonathan diaz jonthdiaz

🏠
Working from home
View GitHub Profile
#!/bin/sh
### BEGIN INIT INFO
# Provides: dockercompose
# Required-Start: $docker
# Required-Stop: $docker
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Docker Services
### END INIT INFO
@jonthdiaz
jonthdiaz / forever.md
Last active September 14, 2015 02:47 — forked from nickleefly/forever.md
forever your node app

Install Forever:

npm install forever -g

now your can run forever

forever --help
forever start app.js
import sys
import logging
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = ("Invalidates portions of the queryset cache based on the app names"
" or models provided as arguments to the command. If no arguments "
"are provided, nothing is done. To clear the entire queryset "