Skip to content

Instantly share code, notes, and snippets.

View soup-bowl's full-sized avatar
🚚
Moving, limited availability

Casey LP soup-bowl

🚚
Moving, limited availability
View GitHub Profile
@soup-bowl
soup-bowl / custom.css
Last active October 29, 2024 22:37
Pocket inspired theme for Wallabag
/*
* Pocket-inspired theme for Wallabag
* by soup-bowl - https://github.com/soup-bowl/
* MIT licensed 2024
* Tested against Wallabag 2.6.9
* https://gist.github.com/soup-bowl/c7633877404a214e4f41010b4d5f4994
*/
@import url("https://fonts.googleapis.com/css2?family=Ledger&display=swap");
@soup-bowl
soup-bowl / handbrake.json
Created August 30, 2024 15:35
Presets for HandBrake for converting my rips to an optimised MKV format.
{
"PresetList": [
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:aac"
],
"AudioEncoderFallback": "av_aac",
"AudioLanguageList": [
"eng"
id Name Gender Meaning
1 Liam Male Strong-willed warrior
2 Emma Female Whole or complete
3 Avery Universal Elf ruler
4 Oliver Male Olive tree planter
5 Sophia Female Wisdom
6 Jackson Male Son of Jack
7 Mia Female Mine or bitter
8 Harper Universal Harp player
9 James Male Supplanter
from machine import Pin
from time import sleep
vu=Pin(15,Pin.OUT)
di=Pin(16,Pin.IN)
while True:
try:
if di.value()== True:
vu.value(True)
@soup-bowl
soup-bowl / windlight-bristol.ini
Last active September 30, 2023 23:06
The "Bristol" sky WindLight configuration, by Torey Linden for Second Life
[Atmosphere & Lighting]
Ambient_Color = RGB(41,33,27) HSL(27,20,13)
Blue_Horizon = RGB(61,61,61) HSL(0,0,24)
Blue_Density = RGB(8,8,8) HSL(0,0,3)
Haze_Horizon = 0.24
Haze_Density = 1.89
Moisture_Level = 0.000
Droplet_Radius = 800.0
Ice_Level = 0.000
Density_Multiplier = 0.3100
@soup-bowl
soup-bowl / imdb-plex-name.js
Last active August 30, 2024 19:52
UserScript to show films in Plex-preferred naming syntax
// ==UserScript==
// @name IMDb Name Output for Plex
// @version 0.3
// @description Prints out a pre-formatted name for my Plex library. Click on the name to copy to clipboard.
// @author soup-bowl
// @namespace https://gist.github.com/soup-bowl/c98165af8a13e9e0956cadb71ea0354f
// @match https://www.imdb.com/*
// @match https://imdb.com/*
// @grant none
// ==/UserScript==
@soup-bowl
soup-bowl / Dockerfile
Last active June 13, 2023 07:45
Whatsthis Devcontainer Workspace (clone as .devcontainer directory)
FROM mcr.microsoft.com/devcontainers/typescript-node:0-20
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
wget \
ca-certificates \
apt-transport-https \
gnupg \
dirmngr \
&& wget https://packages.microsoft.com/config/debian/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
@soup-bowl
soup-bowl / Code.gs
Created February 22, 2023 20:50
ReviveToday closed inbox auto-reply
function autoReply() {
var label = GmailApp.getUserLabelByName("AutoReply");
var threads = GmailApp.search('label:inbox label:unread to:[email protected]');
var sender = "[email protected]";
var senderName = "ReviveToday Do Not Reply";
var message = "Hello,<br><br>Thank you for your email. Unfortunately, due to a high level of spam and malicious emails this inbox is now closed.<br><br>The following are now the alternative options:<ul><li>For discussions on all things retro, please consider joining the <a href='http://revive.today/discord'>ReviveToday Discord</a>.</li><li>For website matters, please use the <a href='http://revive.today/contact'>Contact form</a>.</li></ul><br><br>Kind regards,<br>ReviveToday Team";
var subject = "Auto-Reply: Discontinued Inbox";
for (var i = 0; i < threads.length; i++) {
var thread = threads[i];
@soup-bowl
soup-bowl / rightmove.py
Last active February 22, 2023 21:11
Scrape RightMove
import urllib3
from lxml import html
http = urllib3.PoolManager()
r = http.request('GET', 'https://www.rightmove.co.uk/properties/<ID>')
if r.status == 200:
content = html.fromstring(r.data.decode('utf-8'))
scripts = content.xpath('//script')
- year: 2024
url: https://www.pantone.com/color-of-the-year/2024
colors:
- name: Peach Fuzz
code: 13-1023
hex: "#febe98"
rgb: [254, 190, 152]
- year: 2023
url: https://www.pantone.com/color-of-the-year/2023
colors: