Just some FYI, to get started:
- I'm using a 16 GB Sandisk SD card.
- I have a model B Pi, 512 MB RAM (not really relevant, thought I'd mention it).
- Monitor and keyboard connected to the Pi itself, for now.
- Network working, internet access.
#!/bin/bash | |
waifu () { | |
if [[ $# -eq 0 ]]; then | |
cat << EOF | |
Usage: waifu [OPTIONS] FILE1 [FILE2 ...] | |
Options: | |
-d dry run, just print out the commands to exec. |
#!/usr/bin/env python3 | |
import Xlib.threaded | |
import Xlib | |
import Xlib.display | |
from Xlib import Xatom | |
from PIL import Image | |
import os.path | |
from collections import defaultdict | |
try: |
#!/bin/bash | |
MONITORS=$(xrandr | grep -o '[0-9]*x[0-9]*[+-][0-9]*[+-][0-9]*') | |
# Get the location of the mouse | |
XMOUSE=$(xdotool getmouselocation | awk -F "[: ]" '{print $2}') | |
YMOUSE=$(xdotool getmouselocation | awk -F "[: ]" '{print $4}') | |
for mon in ${MONITORS}; do | |
# Parse the geometry of the monitor | |
MONW=$(echo ${mon} | awk -F "[x+]" '{print $1}') |
pkgname=diffimg | |
_pkgname=Diffimg | |
pkgver=2.2.0 | |
pkgrel=1 | |
pkgdesc="Simple image comparison tool" | |
arch=('i686' 'x86_64') | |
license=('GPL2') | |
depends=(qt4 qwt-qt4 opencv2-opt freeimage) | |
makedepends=(qt4 qwt-qt4 opencv2-opt freeimage cmake) | |
url='http://sourceforge.net/projects/diffimg/' |
############################################################################### | |
# Author: ddnomad | |
# Version: 1.1.3 | |
# Last Update: 2020-07-06 | |
# | |
# External contributors: | |
# - u/momasf (https://www.reddit.com/user/momasf) - an excellent | |
# tip to use 'reflector' to speed up downloads during the base | |
# installation | |
# - eXhumer (https://github.com/eXhumer) - Fixes for things that |
#With the help of this script you can download parts from the Youtube Video that is live streamed, from start of the stream till the end | |
import urllib.request | |
import os | |
#E.G: "https://r4---sn-gqn-p5ns.googlevideo.com/videoplayback?expire=1603041842& ..... 2.20201016.02.00&sq=" | |
#The sound link should contain: &mime=audio in it. | |
#Here's an example from NASA LIVE: | |
#VIDEO: https://r5---sn-gqn-p5ns.googlevideo.com/videoplayback?expire=1603165657&ei=eQmOX8TeFtS07gO1xLWwDA&ip=79.115.11.159&id=DDU-rZs-Ic4.1&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160&source=yt_live_broadcast&requiressl=yes&mh=PU&mm=44%2C29&mn=sn-gqn-p5ns%2Csn-c0q7lnsl&ms=lva%2Crdu&mv=m&mvi=5&pl=20&initcwndbps=1350000&vprv=1&live=1&hang=1&noclen=1&mime=video%2Fmp4&gir=yes&mt=1603143920&fvip=5&keepalive=yes&fexp=23915654&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Clive%2Chang%2Cnoclen%2Cmime%2Cgir&sig=AOq0QJ8wRQIgQMnxy1Yk3HLTpqbOGmjZYH1CXCTNx6u6PgngAVGi4EQCIQDWyaye-u_KGyVQ0HRUsyKVaAzyXbmzDqOGVGpIyP7VtA%3D%3D&lspa |
#!/usr/bin/bash -xe | |
cat <<EOF > "${HOME}/.config/systemd/user/zoom.slice" | |
[Slice] | |
AllowedCPUs=0-4 | |
MemoryHigh=6G | |
EOF | |
cat /usr/share/applications/Zoom.desktop | sed -E 's#^(Exec=).*$#Exec=/usr/bin/systemd-run --user --slice=zoom.slice /opt/zoom/ZoomLauncher#' > "${HOME}/.local/share/applications/Zoom.desktop" |
#include <string> | |
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <stdlib.h> | |
using namespace std::literals; |
[Unit] | |
Description=Execute TPM2 Startup with Delay After Suspend | |
After=systemd-suspend.service systemd-hybrid-sleep.service systemd-hibernate.service | |
[Service] | |
Type=oneshot | |
ExecStartPre=/bin/sleep 5 | |
ExecStart=/usr/bin/tpm2_startup | |
[Install] |