-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |