Skip to content

Instantly share code, notes, and snippets.

View oryon-dominik's full-sized avatar

Dominik Geldmacher oryon-dominik

View GitHub Profile
@oryon-dominik
oryon-dominik / decorators_debug_db_queries.py
Last active November 14, 2023 08:35
Decorator for debugging Django database queries
import time
import functools
import logging
from django.db import connection, reset_queries
log = logging.getLogger("django")
@oryon-dominik
oryon-dominik / jupyter-theme-settings.sh
Last active January 26, 2021 09:41
jupyter theme settings
#!/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
@oryon-dominik
oryon-dominik / terminal-settings.json
Last active September 29, 2022 11:42
Windows Terminal Settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@oryon-dominik
oryon-dominik / windows-terminal-quake-dropdown.ahk
Last active October 17, 2023 17:06
AutoHotkey script to emulate Quake-Windows-Terminal behaviour
;; 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
@oryon-dominik
oryon-dominik / python.json
Last active December 20, 2021 19:58
python snippets
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@oryon-dominik
oryon-dominik / vscode-settings.json
Last active November 2, 2022 09:59
vscode settings
{
// * ///////////////////////////////////
// [--: SMILEYS :--]
// * ///////////////////////////////////
// ✨ ⭐ 🌟 🎇 💫 🚀
// 🙈 🙉 🙊
// 🐉 🐲 🐌 🐍 🐙 🦄 🦅 🦇 🦈 🐧 🦜 🦉 🦊 🦔 🕊️ 🦅 🐳
// 🧚 🧛 🧜 🧝 🧞 🧟 🧙‍♀️ 🧝‍♀️ 🧞‍♀️ 🤹
// 🍄 🔮 🧹 ⚗️ 👑 💣 🔥 🍭
@oryon-dominik
oryon-dominik / vscode-extension-list
Last active September 29, 2022 11:39
vscode extension list for a smooth productive python developer experience
13xforever.language-x86-64-assembly
4ops.terraform
aaron-bond.better-comments
adpyke.codesnap
alefragnani.Bookmarks
alefragnani.project-manager
alexcvzz.vscode-sqlite
AndersEAndersen.html-class-suggestions
Anjali.clipboard-history
atlassian.atlascode