I like and prefer BUN... AI drifts😵💫. THIS stops that from happening.
Human and AI-Paired Programming Environments (HAIPPy)
| // zod schema | |
| z.object({ | |
| // valid if string or: | |
| optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
| nullable: z.string().nullable(), // field explicitly `null` | |
| nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
| }); | |
| // type | |
| { |
| var _____WB$wombat$assign$function_____ = function(name) { | |
| return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; | |
| }; | |
| if (!self.__WB_pmw) { | |
| self.__WB_pmw = function(obj) { | |
| this.__WB_source = obj; return this; | |
| } | |
| } |
| [gcode_macro PREP_PRINT] | |
| description: Loads and starts the print | |
| variable_x_max: 0 | |
| variable_y_max: 0 | |
| variable_z_max: 0 | |
| variable_nozzle: 0 | |
| variable_fila_dia: 0 | |
| variable_bed_temp: 0 | |
| variable_extruder_temp: 0 | |
| variable_chamber_temp: 0 |
| docker run \ | |
| -e UFP_USERNAME='orther' \ | |
| -e UFP_PASSWORD='' \ | |
| -e UFP_ADDRESS='10.4.8.1' \ | |
| -e UFP_SSL_VERIFY='false' \ | |
| -e RCLONE_DESTINATION='unifi-protect-s3:/unifi_protect_backup' \ | |
| -v '/volume1/data/backups/unifi-protect-backup':'/data' \ | |
| -v '/volume1/docker/appdata/unifi-protect-backup':'/config' \ | |
| -v '/volume1/docker/appdata/unifi-protect-backup':'/root/.config/rclone' \ | |
| ghcr.io/ep1cman/unifi-protect-backup |
This script can be copied into the browser console and used to disable wifi on the T-Mobile 5G Home Internet router. The web interface for the router doesn't allow you to disable it.
[cmd]+[opt]+i)password value updated to be your actual password and hit entertmobileHomeInternetDisableWifi() and hitting enterModified WhittlesJr's forked version to prevent some devices from loading its drivers. In my case, NVIDIA's USB Host controller is in the same IOMMU group, and specifying vfio-pci option didn't prevent the device from loading xhci_usb driver.
IOMMU Group 1 00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07)
IOMMU Group 1 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] [10de:1f11] (rev a1)
IOMMU Group 1 01:00.1 Audio device [0403]: NVIDIA Corporation TU106 High Definition Audio Controller [10de:10f9] (rev a1)
IOMMU Group 1 01:00.2 USB controller [0c03]: NVIDIA Corporation TU106 USB 3.1 Host Controller [10de:1ada] (rev a1)
This is pretty out of date now... you may want to look elsewhere
Newer guides than mine (mine is a bit dated and has a lot of rough edges):
Have you looked at these?
This post was adapted from an earlier Twitter thread.
It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.
It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)
And then there's Rollup, which apparently requires ESM to be u