.s
- Show the stack+
,-
,*
,mod
- Math operators/mod
- performs both / and mod
drop
and2drop
- drop a stack item (once / twice)dup
- duplicate a stack itemrot
- rotate the stack
#!/usr/bin/env bash | |
# | |
# NixOS "Erase Your Darlings" ZFS install script based on: | |
# | |
# - Original install script by mx00s (https://gist.github.com/mx00s/ea2462a3fe6fdaa65692fe7ee824de3e) | |
# - Erase Your Darlings (https://grahamc.com/blog/erase-your-darlings) | |
# - ZFS Datasets for NixOS (https://grahamc.com/blog/nixos-on-zfs) | |
# - NixOS Manual (https://nixos.org/nixos/manual/) | |
# |
[alias] | |
lol = log --oneline --graph --decorate --date-order | |
lola = log --oneline --graph --decorate --date-order --all | |
s = status -s | |
ka = !gitk --all --date-order | |
k = !gitk --date-order | |
pull-sm = !git pull && git submodule update --recursive && git lfs fetch --all && git lfs pull | |
smu = !git submodule update --init --recursive && git lfs fetch --all && git lfs pull | |
smr = !git reset --hard --recurse-submodule && git submodule sync --recursive && git submodule update --init --force --recursive && git submodule foreach --recursive git clean -ffdx && git lfs fetch --all && git lfs pull |
# Disable "unknown" errors and missing type stubs... | |
# pyright: reportUnknownMemberType=false | |
# pyright: reportUnknownVariableType=false | |
# pyright: reportUnknownArgumentType=false | |
# pyright: reportMissingTypeStubs=false | |
# ...or, alternatively, only suppress individual objects (but disables intellisense) | |
from typing import Any |
from __future__ import annotations | |
from dataclasses import dataclass, asdict, is_dataclass | |
from typing import Any | |
from typing_extensions import dataclass_transform # pip install typing-extensions | |
import dacite # pip install dacite | |
import json | |
@dataclass_transform(kw_only_default=True) | |
class SerdeJson: | |
def __init_subclass__(cls): |
Github goto line (alternative to using 'L' hotkey): | |
javascript:document.getElementById(`L${prompt("Line number")}`).click() |
if [[ -z "$PROMPT_HOSTNAME" ]]; then | |
PROMPT_HOSTNAME="\h" | |
fi | |
# Set if using __git_ps1 | |
# GIT_PS1_SHOWDIRTYSTATE=1 | |
# GIT_PS1_SHOWSTASHSTATE=1 | |
# GIT_PS1_SHOWUNTRACKEDFILES=1 | |
[ -s "/etc/bash_completion.d/git" ] && source /etc/bash_completion.d/git |
#!/usr/bin/env bash | |
# exit when any command fails | |
set -e | |
trap 'echo ''; echo Error at $(basename "$0"):${LINENO}: $BASH_COMMAND' ERR | |
# Get this script's directory | |
SDIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")" | |
I'm running Windows 10. I am using Git-bash, but the same issues happen when run from Powershell.
I have tried Python 3.9 and 3.7, fresh installs.
pyo3 Gitter discussion: https://gitter.im/PyO3/Lobby?at=6143ba0b7cd57813a8cbc355
use pyo3::prelude::*;