docs/conf.py
import importlib
import inspect
import os
import sys
# Manually execute first: sudo -i | |
# Usage: wget -q -O - "$@" https://gist.githubusercontent.com/tsaqib/c8915096c7fde8ade3971ff51f764da7/raw/ --no-cache | sh | |
# After installation, codebase can be found at /usr/lib/python2.7/dist-packages/openerp | |
apt-get update -y && apt-get upgrade -y | |
wget http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb | |
dpkg -i wkhtmltox-0.12.1.2_linux-jessie-amd64.deb | |
apt-get install -f | |
rm wkhtmltox-0.12.1.2_linux-jessie-amd64.deb | |
wget -O - https://nightly.odoo.com/odoo.key | apt-key add - |
@echo off | |
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i | |
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i |
https://realpython.com/blog/python/asynchronous-tasks-with-django-and-celery/
$ pip install celery
$ sudo apt-get install rabbitmq-server
Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"
I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)
Main features:
import uuid | |
import timeit | |
import lz4 | |
import os | |
from timeit import Timer | |
import sys | |
import blosc | |
DATA = open(sys.argv[1], "rb").read() | |
LZ4_DATA = lz4.block.compress(DATA) |
# original post http://askubuntu.com/questions/831262/how-to-install-pgadmin-4-in-desktop-mode-on-ubuntu-16-04 | |
sudo apt-get install python3-venv python3-pip libpq-dev python3-dev | |
mkdir myVenvs | |
cd myVenvs | |
pyvenv pgadmin4-ve | |
source pgadmin4-v/bin/activate | |
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.1/pip/pgadmin4-1.1-py3-none-any.whl |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by: