Skip to content

Instantly share code, notes, and snippets.

@kwasmich
kwasmich / EvilMouse.js
Last active May 24, 2023 15:31
UserScript for browser to enable Disney Plus on Linux
// ==UserScript==
// @name Enable Disney Plus on Linux
// @description This is your new file, start writing code
// @match *://*.disneyplus.com/*
// ==/UserScript==
Object.defineProperty(navigator, "userAgent", { value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36", configurable: true, enumerable: true, writable: true });
@kwasmich
kwasmich / Skip YouTube Ads.js
Last active May 24, 2023 15:30
Script for Userscripts browser extension to skip ads on Youtube.
// ==UserScript==
// @name Skip YouTube Ads
// @description This is your new file, start writing code
// @match *://*.youtube.com/*
// ==/UserScript==
function skipAd() {
const adPlaying = document.body.querySelector(".ad-showing");
if (!adPlaying) {

Install raspbian, set up your users however you would like, so long as you have sudo access on the user you are running this with. You probably want to resize the image so it fills the SD card as well.

  1. Copy this entire gist to your raspberry pi
  2. Do chmod +x step1.sh step2.sh iptables.sh in the gist folder (so that
  3. Run step1.sh a) This script does a few things - it first updates your raspberry pi, then it installs a few needed utilities, then it upgrades the firmware on your raspberry pi
@kwasmich
kwasmich / nan2inf.c
Last active May 21, 2016 13:58
Compiler cast "nan"s to "inf"s
//
// main.c
// IEEE754
//
// Created by Michael Kwasnicki on 20.05.16.
// Copyright © 2016 kwasi-ich.de. All rights reserved.
//
#include <stdint.h>