Skip to content

Instantly share code, notes, and snippets.

@plasx
plasx / instantclientguide.md
Last active December 12, 2018 03:15
Installing instant client 12 on macOS Sierra
@peatiscoding
peatiscoding / build-tag-push.py
Created January 24, 2018 15:20
a script to convert your docker-compose.yml (version 2) with build node to image node; this script required DOCKERHUB_USER environment available.
#!/usr/bin/python
import os
import subprocess
import time
import yaml
import re
user_name = os.environ.get("DOCKERHUB_USER")
@gfranxman
gfranxman / Makefile
Last active May 9, 2024 14:36
Makefile help target. Allows you to define groups of targets by starting a line with ## or expose a target with help test by including ## indented or after the target's dependencies.
.PHONY: help
# useage config
TARGETLEN:=$(shell echo 16)
# colors
BLUE:=$(shell echo "\033[0;36m")
GREEN:=$(shell echo "\033[0;32m")
YELLOW:=$(shell echo "\033[0;33m")
RED:=$(shell echo "\033[0;31m")
@lmann4
lmann4 / show_db_queries.py
Last active March 20, 2025 14:26
A utilitiy for adding printing and debugging queries.
import inspect
import logging
import shutil
import sys
from time import time
from types import MethodType
from typing import Optional
from django.conf import settings
from django.db import DEFAULT_DB_ALIAS, connections