Skip to content

Instantly share code, notes, and snippets.

View fakuivan's full-sized avatar

fakuivan

  • Posadas, Misiones, Argentina
  • 02:02 (UTC -03:00)
View GitHub Profile
@fakuivan
fakuivan / check_pdb.sh
Created September 26, 2024 23:17
Check if the bedrock dedicated server release contains a pdb file
with_temp_file () {
local temp
temp="$(mktemp)"
trap "rm ${temp@Q}" RETURN
"$@" "$temp"
}
download_has_pdb () {
local version="$1"
local temp_file="$2"
@fakuivan
fakuivan / python_cope.py
Created November 9, 2025 22:30
Python helpers to make working with `Result`s more like python
from typing import Concatenate, NoReturn, overload, NamedTuple, Any
from collections.abc import Callable
from returns.result import Result, Success, Failure
from returns.pipeline import is_successful
type EarlyReturnF[R] = Callable[[R], NoReturn]
def early_return_exc[**Spec, R](