Skip to content

Instantly share code, notes, and snippets.

View PauloViniciusBaleeiro's full-sized avatar

Paulo Vinicius Baleeiro PauloViniciusBaleeiro

  • Jumpi Sorocaba/SP Brazil
View GitHub Profile
@nibro7778
nibro7778 / git_custom_command_win.md
Created April 4, 2018 12:25 — forked from lucijafrkovic/git_custom_command_win.md
Add custom git command (Windows)

Creating a custom git command in Windows

  1. create a cmd/bat file with the command. E.g. retag.cmd, save it in C:\git-scripts for example

  2. add your git commands to the file. For example, this set of commands deletes the specified tag from your current branch both locally and remotely, then tags it with the same tag and pushes the change remotely

    git tag -d %1

    git push origin :refs/tags/%1

@ipmb
ipmb / settings.py
Last active October 24, 2025 14:36
Django logging example
import logging.config
import os
from django.utils.log import DEFAULT_LOGGING
# Disable Django's logging setup
LOGGING_CONFIG = None
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper()
logging.config.dictConfig({