- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
class BaseMeta(type): | |
def __init__(cls, *args): | |
cls.f = cls.f # comment this line and run again! | |
pass | |
def f(cls): | |
print(cls) | |
class Derived(metaclass=BaseMeta): | |
pass |
## Set ENV variables for path abbreviations H (Home) and P (Projects) | |
export H="$HOME" # ~ | |
export P="$H/projects" | |
## Generate SSH Key for GitHub and add to SSH Agent | |
ssh-keygen -t ed25519 -C "pulkitmds@gmail.com" -f $H/.ssh/mykey | |
eval "$(ssh-agent -s)" | |
## Show public key |
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
FFMPEG YouTube Live Stream
https://drjohnstechtalk.com/blog/2019/04/live-stream-to-youtube-from-a-raspberry-pi-webcam/
Papier
https://www.crx4chrome.com/extensions/hhjeaokafplhjoogdemakihhdhffacia/
Miscellaneous
import sys | |
def get_base_prefix_compat(): | |
"""Get base/real prefix, or sys.prefix if there is none.""" | |
return getattr(sys, "base_prefix", None) or getattr(sys, "real_prefix", None) or sys.prefix | |
def in_virtualenv(): | |
return get_base_prefix_compat() != sys.prefix | |
in_virtualenv() |