Skip to content

Instantly share code, notes, and snippets.

View soup-bowl's full-sized avatar
🎯
Focusing

Casey LP soup-bowl

🎯
Focusing
View GitHub Profile
- 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:
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 / tree.py
Last active November 27, 2023 12:40
LED Christmas Tree for Raspberry Pi - https://thepihut.com/products/3d-xmas-tree-for-raspberry-pi
from gpiozero import LEDBoard, PWMLED
from gpiozero.tools import random_values
from signal import pause
from time import time, sleep, strftime
class Tree(object):
def __init__(self):
self.active = False
self.tree = LEDBoard(*range(4,28),pwm=True)
self.star = PWMLED(2)
cms:
- name: "WordPress"
description: "A free and open-source content management system (CMS) that powers over 40% of the web. WordPress provides a flexible platform for creating blogs, websites, and e-commerce stores, and is known for its ease of use and customization options."
url: "https://wordpress.org/"
headers:
- "x-powered-by: WP Engine"
body:
- "//meta[@name='generator' and contains(@content, 'WordPress')]"
- "//*[contains(@href, 'wp-content')]"
- "//form[contains(@action, 'wp-login.php')]"
@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 September 20, 2023 17:55
UserScript to show films in Plex-preferred naming syntax
// ==UserScript==
// @name IMDb Name Output for Plex
// @version 0.2
// @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==
{
"next": "2025-01-24"
}
@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 / 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')
@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:admin@revive.today');
var sender = "admin@revive.today";
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];