REALLY simple (4 lines) script that uses Tmux to split the terminal vertically and open nvtop to the left and btop to the right.
As I said really simple!
#!/bin/sh
#!/bin/sh | |
pacman -Qi | awk $@ ' | |
BEGIN { | |
units["B"] = 0 | |
units["KiB"] = 1 | |
units["MiB"] = 2 | |
units["GiB"] = 3 | |
if (unit == "") unit = "MiB" | |
if (min == "") min = 50 | |
if (pad == "") pad = 10 |
from pypresence import Presence | |
import time | |
client_id = "APP CLIENT" | |
RPC = Presence(client_id) | |
RPC.connect() | |
#https://www.youtube.com/watch?v=dQw4w9WgXcQ |
import cv2, os | |
watermark = cv2.imread(os.path.join("watermark.jpg")) | |
h_wtmk, w_wtmk = watermark.shape[:2] | |
def resize(inpath: str, outpath: str, size: tuple = (768, 512), inter: int = cv2.INTER_AREA) -> None: |
/* ==== Typeracer Cheat ==== */ | |
//Paste this script into the developer console right before the race start | |
//Now you can press any key and it will enter the correct one | |
var arrSpan = document.querySelectorAll('[unselectable="on"]'); | |
var fullSentence = ''; | |
arrSpan.forEach(function (item) { | |
fullSentence += item.innerHTML; |
const b64toBlob = (b64Data, contentType='', sliceSize=512) => { | |
const byteCharacters = atob(b64Data); | |
const byteArrays = []; | |
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) { | |
const slice = byteCharacters.slice(offset, offset + sliceSize); | |
const byteNumbers = new Array(slice.length); | |
for (let i = 0; i < slice.length; i++) { | |
byteNumbers[i] = slice.charCodeAt(i); |
import os, sys | |
from PIL import Image | |
def rezise(dir, size: tuple = (768, 512)) -> None: | |
for infile in os.listdir(dir): | |
outfile = os.path.splitext(infile)[0] + "_resized.thumbnail" | |
if infile != outfile: | |
try: |