Skip to content

Instantly share code, notes, and snippets.

@estorgio
estorgio / Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver).md
Last active December 6, 2025 02:38
Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

@maple3142
maple3142 / CVE-2025-55182.http
Last active December 6, 2025 02:35
CVE-2025-55182 React Server Components RCE POC
POST / HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Next-Action: x
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Length: 459
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"
@EverythingSmartHome
EverythingSmartHome / All open windows and doors
Last active December 6, 2025 02:32
A collection of useful templates for Home Assistant dashboards
{{ states.binary_sensor
| selectattr('attributes.device_class', 'in', ['door','window'])
| selectattr('state', 'equalto', 'on')
| list | count }}
@WarriorRocker
WarriorRocker / holiday-train-automation.yaml
Last active December 6, 2025 02:31
ESPHome Lego Power Functions
alias: Holiday Train On every Hour
description: ""
trigger:
- platform: time_pattern
minutes: "0"
seconds: "0"
condition:
- condition: time
before: "22:30:00"
after: "08:30:00"
@12joan
12joan / user-keys-considered-harmful.md
Created December 5, 2025 12:35
User-controlled Keys Considered Harmful - Two Important Takeaways from CVE-2025-55182

User-controlled Keys Considered Harmful

Two important takeaways from CVE-2025-55182

We now have a public POC for CVE-2025-55182, the React Server vulnerability that allows remote code execution on affected servers. The details of how the exploit works are fascinating, and they highlight a couple of important but obscure facts about JavaScript itself that all JS developers should be aware of so that we hopefully don't make the same mistakes in our own code.

1. Promises are overloaded

You may have heard that promises are not monads. This is because the then function is overloaded to act as both map and bind. For anyone without a functional programming background, here's a quick summary of what that means.

@e88y
e88y / WSL2 - Reclaim disk space and move distributions.md
Last active December 6, 2025 02:27
WSL2 - Reclaim disk space and move distributions

WSL2 – Reclaim Disk Space

You may notice that your system drive runs out of space when using WSL-Distibutions. So you might ask how to move these stuff to another hard drive or get some space back from your precious drive. Warning: Some commands here might be destructive - I take no responsibilities for any lost data. Read, understand and then decide to follow instructions or not.

How to get space back from WSL virtual disks

https://superuser.com/questions/1606213/how-do-i-get-back-unused-disk-space-from-ubuntu-on-wsl2

The Problem: WSL will dynamically grow the virtual disk (ext4.vhdx) but never shrink it to reclaim unused space. (See also

@clarkenheim
clarkenheim / Zip Codes to DMAs
Last active December 6, 2025 02:26
TSV file containing zip codes and the DMA they fall in to. Method: calculate the centre point of every zip code geo boundary, plot those points on a DMA boundary map, find the containing DMA of each zip centroid
This file has been truncated, but you can view the full file.
zip_code dma_code dma_description
01001 543 SPRINGFIELD - HOLYOKE
01002 543 SPRINGFIELD - HOLYOKE
01003 543 SPRINGFIELD - HOLYOKE
01004 543 SPRINGFIELD - HOLYOKE
01005 506 BOSTON (MANCHESTER)
01007 543 SPRINGFIELD - HOLYOKE
01008 543 SPRINGFIELD - HOLYOKE
01009 543 SPRINGFIELD - HOLYOKE
@raghav4
raghav4 / Ansicolor.md
Created February 8, 2020 07:17
Color codes for console using Ansi