xrandr --output DP-1 --set "Broadcast RGB" "Full"/etc/X11/xorg.conf.d/50-disable-mouse-accel.conf
| # Options to pass to earlyoom | |
| # /etc/default/earlyoom | |
| EARLYOOM_ARGS="-r 3600 -n --avoid '(^|/)(init|systemd|Xorg|sshd|pipewire(-pulse)?|dunst|nitrogen|polybar|NetworkManager|dbus-daemon|xss-lock|nm-applet)$' --prefer '(^|/)(Discord|thunderbird|rust-analyzer|lens|telegram-desktop|firefox|chromium)$'" |
| """ | |
| clipbooru.py | |
| Go through a list of (md5).(ext), downloads them from danbooru, and compute CLIP | |
| embeddings. Images are downloaded in parallel while inference is being done, so | |
| this should run as fast as your hardware/network can handle. | |
| """ | |
| # requirements.txt | |
| """ |
| <# | |
| .SYNPOSIS | |
| Download all danbooru pages | |
| #> | |
| Param( | |
| [string]$DanbooruURL = "https://danbooru.donmai.us/" | |
| ) | |
| $DanbooruURL = $DanbooruURL.TrimEnd("/") |
| """ | |
| ultra jank discord bot for automatic1111's stable diffusion webui | |
| uses the --api | |
| """ | |
| import re | |
| import os | |
| import io | |
| import time | |
| import json | |
| import base64 |
| """ | |
| discord.py==2.0.1 | |
| diffusers==0.2.4 | |
| transformers | |
| scipy | |
| ftfy | |
| """ | |
| import os | |
| import time |
| import argparse | |
| import aiohttp | |
| import asyncio | |
| import time | |
| import logging | |
| import sys | |
| import http | |
| import urllib.parse | |
| FROM continuumio/anaconda3:2021.11 | |
| # Fetch Java, Scala, and Spark | |
| RUN set -ex; \ | |
| apt-get update; \ | |
| apt-get install -y default-jre default-jdk scala gnupg; \ | |
| wget -qO /tmp/spark.tgz https://dlcdn.apache.org/spark/spark-3.2.0/spark-3.2.0-bin-hadoop2.7.tgz; \ | |
| wget -qO /tmp/spark.tgz.asc https://downloads.apache.org/spark/spark-3.2.0/spark-3.2.0-bin-hadoop2.7.tgz.asc; \ | |
| wget -qO- https://downloads.apache.org/spark/KEYS | gpg --import -; \ | |
| gpg --verify /tmp/spark.tgz.asc /tmp/spark.tgz; \ |
this is a non-exhaustive list, in no particular order, of stuff I found online that makes me consider throwing all electronics away and going to live in the mountains instead. loosely inspired by the cursed iceberg.
| #!/usr/bin/env python3 | |
| """ | |
| PianoTeqnician | |
| Reroute MIDI events to two instances of Pianoteq to circumvent the free trial | |
| limitation on certain keys. All enabled keys are routed to one normal instance | |
| of Pianoteq, and the disabled ones are routed to another instance, but shifted | |
| one semitone down. Then, on that other instance of Pianoteq, tune the piano to | |
| 466 Hz to restore the pitch of the shifted notes. |