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
@soup-bowl
soup-bowl / deskdash.code-workspace
Last active May 15, 2021 09:02
Deskdash Workspace
{
"folders": [
{
"path": "deskdash",
"name": "Dashboard"
},
{
"path": "deskdash-api",
"name": "Communicator"
}
#! /bin/bash
# Script by soup-bowl - https://github.com/soup-bowl/
# Changes the screen brightness of the official Raspberry Pi touchscreen.
# If no argument is provided, it will guess a value based on the time of day.
if [ -z "$1" ]; then
currenttime=$(date +%H:%M)
if [[ "$currenttime" > "18:00" ]] || [[ "$currenttime" < "24:00" ]]; then
echo 40 > /sys/class/backlight/rpi_backlight/brightness
@soup-bowl
soup-bowl / update-dns.sh
Last active July 29, 2022 14:42
Dynamic DNS using Cloudflare & a local device
#!/bin/sh
NEW_IP=`curl -s http://ident.me/`
DOMAIN='example.com'
DOM_ZONE='' # Run commented command to find this info out.
R_ZONE='' # Run commented command to find this info out.
CF_EMAIL='' # Your Cloudflare email address.
CF_TOKEN='' # https://dash.cloudflare.com/profile/api-tokens - Create one with Zone:Read and Zone:Edit perms.
# To get DOM_ZONE, run:
@soup-bowl
soup-bowl / docker-compose.yml
Last active September 7, 2022 21:09
Docker-compose LAMP dev stack
version: '3.6'
services:
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: e9w86036f78sd9
volumes:
- "./database:/var/lib/mysql"
db_pma:

Keybase proof

I hereby claim:

  • I am soup-bowl on github.
  • I am soupbowl (https://keybase.io/soupbowl) on keybase.
  • I have a public key ASD1wvBYqjnQrKHB-KByCbXJqpyqYmaSt_Pf4Osx9PCo0Qo

To claim this, I am signing this object:

@soup-bowl
soup-bowl / lego-creator.yml
Last active January 19, 2023 13:00
Lutris - Lego Creator (Not working)
name: Lego Creator
game_slug: lego-creator
version: Installer
slug: lego-creator-installer
runner: wine
script:
game:
arch: win32
exe: $GAMEDIR/drive_c/Program Files/LEGO Media/Constructive/CREATOR/Creator.exe
@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];
@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 / 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 \
{
"next": "2025-01-24"
}