The a as b
operation may look like a type casting or type conversion operation, but it is not.
a as b
actually performs a
type assertion.
No type conversion or "casting" happens.
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYXG7ZZ/Jx5N4YmsHOTH0KcT0q0ppxpbsEY/vd+o6KY [email protected] |
The a as b
operation may look like a type casting or type conversion operation, but it is not.
a as b
actually performs a
type assertion.
No type conversion or "casting" happens.
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
from pprint import pprint | |
import calendar | |
from enum import Enum, IntEnum, Flag, IntFlag | |
pp = pprint | |
# source: https://levelup.gitconnected.com/python-tricks-i-can-not-live-without-87ae6aff3af8 | |
def sep() -> None: | |
print("=======================================") |
tl;dr of: https://www.kenmoini.com/blog/quick-n-dirty-adding-disks-to-proxmox/
lsblk
cfdisk /dev/sda
pvcreate /dev/sda1
pve
): vgextend pve /dev/sda1
vgs
.pip install watchdog
may fail to build on newer versions of macos because the local python is configured to build for arm64.
Either install python from the packages provided by python.org, or set the ARCHFLAG
env variable by running:
export ARCHFLAGS="-arch x86_64"
pip install watchdog
# The following command works for downloading when using Git for Windows: | |
# curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
# | |
# Download this file using PowerShell v3 under Windows with the following comand: | |
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore | |
# | |
# or wget: | |
# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
# User-specific files |