Skip to content

Instantly share code, notes, and snippets.

View orther's full-sized avatar
🏠
Working from home

Brandon Orther orther

🏠
Working from home
View GitHub Profile
@orther
orther / remoteActionHandler.js
Last active April 23, 2024 06:22
think-done.com JS remoteActionHandler.js
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;
}
}
@orther
orther / PREP_PRINT.cfg
Created March 3, 2023 18:34 — forked from rootiest/PREP_PRINT.cfg
SuperSlicer Super Start for Klipper
[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
@orther
orther / gist:34f90cd5ca2444c0623fa8e2dd227cab
Created June 2, 2022 20:25
unifi-protect-backup docker command
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
@orther
orther / disable-tmobile-5g-home-internet-rotuer-wifi.md
Last active January 11, 2024 15:53
JS Code To Disable WiFi for T-Mobile 5G Home Internet Router

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.

Steps

  1. Go to http://192.168.12.1
  2. Open dev console (on mac [cmd]+[opt]+i)
  3. Copy the code from the below JS file and with the password value updated to be your actual password and hit enter
  4. Call the code by typing tmobileHomeInternetDisableWifi() and hitting enter
@orther
orther / Readme.md
Created December 28, 2021 07:38 — forked from vroad/Readme.md
NixOS: PCI Passthrough

Things I changed in this fork

Modified 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)
@orther
orther / NixSetup.md
Created November 7, 2021 19:20 — forked from rehno-lindeque/NixSetup.md
NixOS Setup (Virtualized + Haskell + Gnome3 + XMonad)

Setup NixOS (Virtualized + Haskell + Gnome3 + XMonad)

Before you get started

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?

@orther
orther / es-modules-are-terrible-actually.md
Created November 7, 2021 12:30 — forked from joepie91/es-modules-are-terrible-actually.md
ES Modules are terrible, actually

ES Modules are terrible, actually

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

@orther
orther / bookmarks.md
Created October 29, 2021 11:59 — forked from patheticGeek/bookmarks.md
Some useful things i have in my bookmarks
@orther
orther / Master List of Logical Fallacies.md
Last active May 26, 2021 11:48
Master List of Logical Fallacies
    • Master List of Logical Fallacies
  •  Fallacies are fake or deceptive arguments, "junk cognition," that is, arguments that seem irrefutable but prove nothing. Fallacies often seem superficially sound and they far too often retain immense persuasive power even after being clearly exposed as false. Like epidemics, fallacies sometimes "burn through" entire populations, often with the most tragic results, before their power is diminished or lost. Fallacies are not always deliberate, but a good scholar’s purpose is always to identify and unmask fallacies in arguments. Note that many of these definitions overlap, but the goal here is to identify contemporary and classic fallacies as they are used in today's discourse. Effort has been made to avoid mere word-games (e.g., "The Fallacist's Fallacy," or the famous "Crocodile's Paradox" of classic times), or the so-called "fallacies" of purely formal and symbolic, business and financial, religious or theological logic.  No claim is made to "academic rigor" in this
@orther
orther / idb-workaround.py
Created May 24, 2021 00:54 — forked from adapptor-kurt/idb-workaround.py
Helps Flipper connect to physical iOS devices more reliably.
#!/usr/bin/env python3
# See https://github.com/facebook/flipper/issues/262
import os
import sys
import syslog
import shlex
import time
import subprocess