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
# /// script | |
# dependencies = [ | |
# "loguru>=0.7.3", | |
# "openpyxl>=3.1.5", | |
# "safe-result>=4.0.3", | |
# ] | |
# /// | |
import re |
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
# /// script | |
# dependencies = [ | |
# "loguru>=0.7.3", | |
# "openpyxl>=3.1.5", | |
# "safe-result>=4.0.3", | |
# ] | |
# /// | |
import re |
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 Google Search + | |
// @namespace http://tampermonkey.net/ | |
// @version 1.9 | |
// @description Extend Google Search with additional options. | |
// @author overflowy | |
// @match https://www.google.com/search* | |
// @match https://www.google.*/search* | |
// @run-at document-start | |
// @grant none |
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 HN Plus | |
// @match https://*.ycombinator.com/* | |
// @grant none | |
// @version 2.1 | |
// @author overflowy | |
// @description Adds favicons to HN links and navigation menu for less known sections | |
// @inject-into content | |
// ==/UserScript== |
NewerOlder