Skip to content

Instantly share code, notes, and snippets.

@Gelminas
Gelminas / curl.md
Created June 16, 2018 13:10 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

sudo lsof -t -i tcp:8000 | xargs kill -9
#https://stackoverflow.com/questions/20239232/error-that-port-is-already-in-use
@Gelminas
Gelminas / Virtualenv + Celery + Supervisor.conf
Last active March 17, 2018 15:31
Virtualenv + Celery + Supervisor
[program:celery-worker]
environment=PATH="/<path to virtual env>/bin"
command=/<path to virtual env>/bin/celery -A <celery Name> worker --loglevel=INFO
directory="/<path to virtual env>/<folder>
user=myUser
numprocs=1
stdout_logfile=<path>/logs/celery.log
stderr_logfile=<path>/logs/celery.log
autostart=true
autorestart=true