Skip to content

Instantly share code, notes, and snippets.

Avatar

Dominik Geldmacher oryon-dominik

View GitHub Profile
@oryon-dominik
oryon-dominik / decorators_debug_db_queries.py
Last active Jul 24, 2021
Decorator for debugging Django database queries
View decorators_debug_db_queries.py
import time
import functools
import logging
from django.db import connection, reset_queries
logger = logging.getLogger("django")
View jupyter-theme-settings.sh
#!/bin/bash
# pip install --upgrade notebook
# pip install jupyterthemes
# change onedork colors in ...\site-packages\jupyterthemes\styles\onedark.less
# @unrendered-text: #f5da42;
# @header-fg: #f5da42;
# e.g in docker:
# sed -i 's/@unrendered-text: #7aa05d;/@unrendered-text: #f5da42;/g' /usr/local/lib/python3.8/site-packages/jupyterthemes/styles/onedork.less
View corporate-terminal-settings.json
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"startOnUserLogin": true,
@oryon-dominik
oryon-dominik / terminal-settings.json
Last active Dec 22, 2020
Windows Terminal Settings
View terminal-settings.json
// This file was initially generated by Windows Terminal 1.4.3243.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"startOnUserLogin": true,
@oryon-dominik
oryon-dominik / windows-terminal-quake-dropdown.ahk
Last active Dec 20, 2020
AutoHotkey script to emulate Quake-Windows-Terminal behaviour
View windows-terminal-quake-dropdown.ahk
;; Quake-Windows-Terminal AutoHotkey.
;; Inspired from https://github.com/ehpc/quake-windows-bash
;; and https://github.com/rengler33/dotfiles/blob/master/C/Users/Rub/wt-quake-like.ahk
#SingleInstance force
WindowsTerminal = C:\Users\%A_UserName%\AppData\Local\Microsoft\WindowsApps\wt.exe
View python.json
{
"TODO": {
"prefix": "todo",
"body": ["# TODO: $CURRENT_MONTH_NAME $CURRENT_DATE, $CURRENT_YEAR: "
],
"description": "Add TODO"
},
"DEBUG": {
"prefix": "debug",
View vscode-settings.json
{
// window
"window.title": "${rootName}${separator}${activeEditorShort}",
"window.titleBarStyle": "native",
"window.menuBarVisibility": "toggle",
"window.zoomLevel": 0,
"window.customMenuBarAltFocus": true,
// external data-flows off
"telemetry.enableCrashReporter": false,
@oryon-dominik
oryon-dominik / vscode-extension-list
Last active Oct 18, 2020
vscode extension list for a smooth productive python developer experience
View vscode-extension-list
13xforever.language-x86-64-assembly
aaron-bond.better-comments
abusaidm.html-snippets
adpyke.codesnap
alefragnani.Bookmarks
alefragnani.project-manager
alexcvzz.vscode-sqlite
AndersEAndersen.html-class-suggestions
Anjali.clipboard-history
batisteo.vscode-django