Skip to content

Instantly share code, notes, and snippets.

View pmutua's full-sized avatar
🐲
Focus mode

Philip Mutua pmutua

🐲
Focus mode
View GitHub Profile
@codingjoe
codingjoe / django_docs.md
Last active July 24, 2022 23:16
Build Django docs like a pro!

Build Django docs like a pro!

Sphinx config

docs/conf.py

import importlib
import inspect
import os
import sys
@tsaqib
tsaqib / install-odoo8.sh
Last active November 8, 2017 08:00
Installer script for Odoo 8 on Debian & Ubuntu VM/Azure
# 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 -

Installation of Phoenix on Ubuntu 16.04

  • Don't use the Ubuntu packages provided, instead:
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb 
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang elixir
@daredude
daredude / docker-clear.bat
Created June 5, 2016 10:53
delete all docker container and images on windows
@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
@mau21mau
mau21mau / README.md
Last active May 1, 2024 19:47
Configure Celery + Supervisor With Django
@Yogendra0Sharma
Yogendra0Sharma / README.md
Created January 12, 2017 08:43 — forked from genomics-geek/README.md
Setting up a Dockerized web application with Django REST APIs, ReactJS with Redux pattern, and Webpack Hot Reloading! Mouthful.

Guide on how to create and set up a Dockerized web app using Django REST APIs and ReactJS

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:

  • Django REST APIs
  • ReactJS with Redux Pattern
  • Webpack module bundler manager
@itdaniher
itdaniher / bench.py
Created January 30, 2017 20:58
python-blosc / python-lz4 profiling
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)
@mdiener21
mdiener21 / install-pgadmin4-py3.sh
Last active December 26, 2017 23:03
install pgadmin4 desktop ubuntu 16
# 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
@nikhita
nikhita / update-golang.md
Last active June 10, 2024 18:50
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

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:

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 10, 2024 18:39
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example