Skip to content

Instantly share code, notes, and snippets.

@overflowy
overflowy / pyproject.toml
Created July 10, 2023 10:50
pyproject.toml example
[tool.poetry]
name = "nala"
version = "0.10.0"
description = "Commandline frontend for the apt package manager"
authors = [
"Blake Lee <blake@volian.org>",
"Sourajyoti Basak <wiz28@protonmail.com>",
]
license = "GPL-3.0-or-later"
readme = "README.rst"
{
"typeCheckingMode": "basic",
"strictListInference": true,
"strictDictionaryInference": false,
"strictParameterNoneValue": true,
"reportFunctionMemberAccess": "error",
"reportMissingModuleSource": "none",
"reportMissingTypeStubs": "error",
"reportUnusedImport": "error",
"reportUnusedClass": "error",
@overflowy
overflowy / hetzner-gui.user.js
Created June 11, 2023 10:46
Automatically select GUI-Mode when opening a Hetnzer console
// ==UserScript==
// @name hetzner-gui
// @namespace Violentmonkey Scripts
// @match https://console.hetzner.cloud/console/*
// @grant none
// @version 1.0
// @author overflowy@riseup.net
// @description 11/06/2023, 12:15:51
// ==/UserScript==
@overflowy
overflowy / timer.py
Created June 7, 2023 20:13
Timer decorator
import functools
import time
def timer(func):
@functools.wraps(func)
def wrapper_timer(*args, **kwargs):
tic = time.perf_counter()
value = func(*args, **kwargs)
@overflowy
overflowy / favicons-hn.user.js
Last active July 12, 2023 13:12
Favicons for HN
// ==UserScript==
// @name Favicons for HN
// @namespace Violentmonkey Scripts
// @match https://*.ycombinator.com/*
// @grant none
// @version 1.0
// @author overflowy@riseup.net
// @description 12/19/2022, 9:34:53 AM
// @inject-into content
// ==/UserScript==
@overflowy
overflowy / immobiliare-blacklist.js
Created December 18, 2022 21:27
Immobiliare.it Blacklist
// ==UserScript==
// @name Immobiliare.it Blacklist
// @namespace Violentmonkey Scripts
// @match https://www.immobiliare.it/*
// @grant none
// @version 1.0
// @author overflowy@riseup.net
// @run-at document-idle
// @description 18/12/2022, 21:13:07
// ==/UserScript==