To run:
python gtk-desktop-quote-display.py
If facing an error: No module named GI
in virtualenv, try this:
pip install vext
pip install vext.gi
To run:
python gtk-desktop-quote-display.py
If facing an error: No module named GI
in virtualenv, try this:
pip install vext
pip install vext.gi
*** Best video in mp4 format [if available] in 1080p *** | |
$ youtube-dl -f 'bestvideo[height<=1080 && ext=mp4]+bestaudio' https://www.youtube.com/watch?v=LXb3EKWsInQ | |
*** For ease of use make alias for this command *** | |
$ alias yt="youtube-dl -f 'bestvideo[ext=mp4][height<=1200]+bestaudio[ext=m4a]' -o '%(title)s'" | |
Youtube-dl Tutorial With Examples | |
Here, I have compiled most commonly used Youtube-dl commands to download a video or playlist from YouTube. |
# The construction `curl http://example.com/shellscript.sh | bash` fills me with boiling rage | |
# | |
# export BASH_ENV=/usr/local/bin/blockCurlPipeBash.sh | |
if [[ $(grep "$(cat /proc/$$/cmdline | tr '\000' "\n" | tail -1)$" /etc/shells) ]] | |
then | |
# |- In case of non-interactive session -| |- dump PID table to find all sibling PIDs -| | |
# | |
echo $- | grep -qv i && ps awwwx -ocmd,pid,ppid | grep "$(ps -p $$ -o ppid | tail -1)$" | while read p | |
do |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <math.h> | |
#define debug(...) | |
//#define debug printf | |
// torus radii and distance from camera |
"""Hello world, with a genetic algorithm. | |
https://twitter.com/matthen2/status/1769368467067621791 | |
""" | |
import random | |
import time | |
from dataclasses import dataclass | |
from itertools import chain | |
from typing import Iterable, List |