I hereby claim:
- I am pulkitgoyal56 on github.
- I am pulkitgoyal56 (https://keybase.io/pulkitgoyal56) on keybase.
- I have a public key ASCdnDOZTkkAI7Ogv1qPJnq1PmVHcQU69f7ZVQkA8qWIkgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
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 "[email protected]" -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() |