Skip to content

Instantly share code, notes, and snippets.

View osmanmesutozcan's full-sized avatar
♻️

Osman Mesut OZCAN osmanmesutozcan

♻️
View GitHub Profile
@osmanmesutozcan
osmanmesutozcan / timescale--db--backend--base.py
Created September 24, 2020 16:50 — forked from dedsm/timescale--db--backend--base.py
WeRiot Django Timescale integration
import logging
from django.contrib.gis.db.backends.postgis.base import \
DatabaseWrapper as PostgisDBWrapper
from django.db import ProgrammingError
from .schema import TimescaleSchemaEditor
logger = logging.getLogger(__name__)
@osmanmesutozcan
osmanmesutozcan / minimal_ghc_ghcjs_nix.sh
Created June 3, 2020 12:44 — forked from louispan/minimal_ghc_ghcjs_nix.sh
Install Cabal, GHC, or GHCJS with one Nix command
# install nix (5.5 mins)
curl https://nixos.org/nix/install | sh
# open a new shell to source nix
bash
# query available haskell compilers
nix-env -qaP -A nixpkgs.haskell.compiler [QUERY]
# install ghc (2.5 mins, cached binary)
@osmanmesutozcan
osmanmesutozcan / Readme.md
Last active March 19, 2018 12:56 — forked from oozliuoo/Readme.md
CeleryPipelineDemo

Quick demo of implementing pipelines via Celery

How to use

  1. Install Celery and Redis
  2. Start your redis locally
  3. Run three workers with name worker1@localhost, worker2@localhost and worker3@localhost
  4. Run the main.py

Improvements made to the original version