This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# When a command fails, bash exits instead of continuing with the rest of the script. | |
set -o errexit | |
# This will make the script fail, when accessing an unset variable. | |
# When you want to access a variable that may or may not have been set, | |
# use "${VARNAME-}" instead of "$VARNAME", and you’re good. | |
set -o nounset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import requests | |
from bs4 import BeautifulSoup | |
def export_to_csv(url: str): | |
r = requests.get(url) | |
soup = BeautifulSoup(r.text, "html.parser") | |
table = soup.find("table", {"id": "downloadTableEN"}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "nala" | |
version = "0.10.0" | |
description = "Commandline frontend for the apt package manager" | |
authors = [ | |
"Blake Lee <[email protected]>", | |
"Sourajyoti Basak <[email protected]>", | |
] | |
license = "GPL-3.0-or-later" | |
readme = "README.rst" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"typeCheckingMode": "basic", | |
"strictListInference": true, | |
"strictDictionaryInference": false, | |
"strictParameterNoneValue": true, | |
"reportFunctionMemberAccess": "error", | |
"reportMissingModuleSource": "none", | |
"reportMissingTypeStubs": "error", | |
"reportUnusedImport": "error", | |
"reportUnusedClass": "error", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name hetzner-gui | |
// @namespace Violentmonkey Scripts | |
// @match https://console.hetzner.cloud/console/* | |
// @grant none | |
// @version 1.0 | |
// @author [email protected] | |
// @description 11/06/2023, 12:15:51 | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
import time | |
def timer(func): | |
@functools.wraps(func) | |
def wrapper_timer(*args, **kwargs): | |
tic = time.perf_counter() | |
value = func(*args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Favicons for HN | |
// @namespace Violentmonkey Scripts | |
// @match https://*.ycombinator.com/* | |
// @grant none | |
// @version 1.0 | |
// @author [email protected] | |
// @description 12/19/2022, 9:34:53 AM | |
// @inject-into content | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Immobiliare.it Blacklist | |
// @namespace Violentmonkey Scripts | |
// @match https://www.immobiliare.it/* | |
// @grant none | |
// @version 1.0 | |
// @author [email protected] | |
// @run-at document-idle | |
// @description 18/12/2022, 21:13:07 | |
// ==/UserScript== |