Skip to content

Instantly share code, notes, and snippets.

@jamesmacwhite
jamesmacwhite / Workarounds for Netflix and the blocking of IPv6 tunnels.md
Last active March 22, 2025 23:33
Prevent proxy/VPN streaming error messages from Netflix when using a Hurricane Electric IPv6 tunnel.

Workarounds for Netflix and the blocking of Hurricane Electric IPv6 tunnels

The dreaded "You seem to be using an unblocker or proxy." error message. Cool story bro.

This gist was essentially created out of my own rant about Netflix being hostile to IPv6 tunnel services since June 2016. You are welcome to read my opinion on the matter, this is the more technical side to the issue and how to combat it within your own network.

Since I wrote this, various GitHub users have contributed their thoughts and ideas which has been incorporated into this gist. Thank you to everyone who have contributed their own methods and implementations.

The problem

Netflix now treats IPv6 tunnel brokers (such as Hurricane Electric) as proxy servers. A while ago it became apparent to users and Netflix that somewhat by accident, IPv6 tunnel users were being served content outside of their geolocation because of the way Netflix was identifyi

@Quentin-M
Quentin-M / iOS.xml
Created July 27, 2021 03:48
iPad Pro 12.9 (2021 / M1) + PleX - Sync'ing 4K HVEC / H.265 content without transcoding
<?xml version="1.0" encoding="utf-8"?>
<Client name="iOS">
<!--
Description: Allows sync'ing / downloading any PleX content, including 4K HVEC HDR10 content, to the iPad Pro 12.9 with M1 chip.
Author: Quentin Machu (https://github.com/Quentin-M)
Disclaimer: There might be a few combinations of unplayable content as I haven't tested rigorously, but that ain't my goal today.
Instructions: Replace iOS.xml in /usr/lib/plexmediaserver/Resources/Profiles/ (or use /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Profiles), profit $$$ while the battery lasts (if it does).
-->
<Settings>
<Setting name="DirectPlayStreamSelection" value="true" />
@lombax85
lombax85 / gist:e25d331c063da83c5060693cada1a54f
Created April 15, 2021 09:14
Powernap on M1 and Big Sur
# check wake requests
pmset -g log | grep "Wake Requests"
# check wake logs
pmset -g log | grep darkwake
# statistics
pmset -g stats
# check if powernap is enabled
@t3dotgg
t3dotgg / try-catch.ts
Last active March 22, 2025 23:30
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@newtonjob
newtonjob / MagicLoginLink.php
Created March 21, 2025 14:38
Magic login link using Laravel's `Password` broker
@Trucido
Trucido / openSUSE-Leap-42.3-pam_kwallet-guide.md
Last active March 22, 2025 23:24 — forked from benediktg/pam_kwallet-guide.md
How to configure pam_kwallet to auto-unlock kdewallet from sddm login credentials on openSUSE Leap 42.3 KDE Plasma5

How to configure pam_kwallet to auto-unlock the default kwallet5 "kdewallet" from sddm login credentials on openSUSE Leap 42.3 KDE Plasma5

Note: Many other guides & posts were attempted before creating this, however they either no longer work or are ugly hacks which don't follow SUSE's odd pam.d layouts. Essentially, this solution boils down to this: pam_kwallet needs to be loaded from it's own substack just like pam_gnome_keyring already is configured to do so, so new substacks were created based on the gnome_keyring ones so that they could be added to sddm. I'm unsure how both gnome_keyring and kwallet behave if both are loaded from the same substack so I kept them in separate stacks. This was tested with only kwallet5 installed but it should also optionally load the old kwallet4 if it's present. My understanding of PAM is limited, so I'm open to suggestions, but this seemed like the cleanest solution which doesn't get overwritten on updates, though it should probably be globally registered as a

// Run this command to generate base config and vs code settings:
// pnpm dlx @antfu/eslint-config@latest
import antfu from "@antfu/eslint-config";
export default antfu({
type: "app",
typescript: true,
formatters: true,
stylistic: {
@regbake
regbake / 03222025.md
Last active March 22, 2025 23:21
clutch preperation and saturday

Gathering thoughts, checklists, and bulletpoints

So much on my mind this morning

Truck

Preparing a clutch replacement for a 1988 F250

  • get a transmission jack []
  • buy vs. rent vs. sketchy-setup-with-floorjack [x] - buy from harbor freight and keep receipt
  • drain fluids from t-case and trans []
  • brush assortment and brake clean [x]
-- Laravel default tables
CREATE TABLE `cache` (
`key` varchar(190) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`expiration` int(11) NOT NULL,
UNIQUE KEY `cache_key_unique` (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
CREATE TABLE `migrations` (