Skip to content

Instantly share code, notes, and snippets.

@Rihcus
Rihcus / ngrok-plex.py
Last active May 11, 2024 08:17 — forked from nagleaidan/ngrok-plex.py
Run plex through ngrok with SSL via duckdns
#!/usr/bin/python3
from plexapi.myplex import MyPlexAccount
import sys
import json
import requests
import time
import socket
# please make sure to install PlexAPI via pip, "pip install PlexAPI"
from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
# If modifying these scopes, delete the file token.pickle.
SCOPES = ['https://www.googleapis.com/auth/drive',
'https://www.googleapis.com/auth/drive.file',
@dieseltravis
dieseltravis / stars.md
Created January 16, 2020 17:54
Awesome Stars
@tiagofreire-pt
tiagofreire-pt / self-signed-certificate-with-custom-ca-for-home-assistant.md
Last active March 28, 2025 21:53 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA for Home Assistant

Create Root Certificate Authority and self-signed certificate for your Home Assistant. Compatible with Chrome browser > version 58, including the macOS Catalina 10.15 / iOS 13 (and above) new requirements.

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@bengrosser
bengrosser / mastodon-demetricator.css
Last active November 20, 2022 07:02
Mastodon Demetricator
/*
Mastodon Demetricator
(quick version)
by ben grosser, June 2019
updated Nov 14, 2022
https://bengrosser.com
To Use:
@AnielaMW
AnielaMW / p_and_p.rb
Last active March 11, 2019 22:08
Pride and Prejudice Ruby Logic
puts "Pride and Prejudice Logic"
# It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife.
class Man
attr_reader :truth
def initialize (name, single, fortune)
@fortune = fortune
@single = single
@jessamynwest
jessamynwest / peacefuleasygmail.css
Last active April 23, 2024 18:35
Slightly calmer gmail
@-moz-document url-prefix("https://mail.google.com/mail/") {
/*
*****
This style is based off of Nicer New Gmail but it's really more of a slash and burn approach.
NO COLORS except tiny bit of red and yellow and some blue I can't get rid of.
I know just enough CSS to be dangerous and not enough to really make things work correctly. Some things it
chokes on:
- tabs! I don't use them so who cares what they look like
- hangout/chat tab - I disabled this as soon as they added it, maybe it's blue, I don't know
@bwestergard
bwestergard / jan16.md
Created February 26, 2018 19:20
Lanetix Union: Email To Management (January 16, 2018)

To the management of Lanetix,

We, the software engineers of Lanetix in Washington and San Francisco, are proud to announce that we are unionizing with the News Guild (Communication Workers of America).

For many workers in our industry, hopping from firm to firm as challenges arise is a lamentable but unquestioned mode of life. Today, we demonstrate a new approach.

By organizing, we rise to the challenge of preserving and strengthening culture which has attracted an unusually diverse and distinguished team. With a collective voice on the job, we can successfully navigate the productive tensions that are part and parcel of growth in a turbulent industry.

We are united in our resolve to achieve consistency in titles and salaries, recruitment of talented staff engineers, regular raises, scheduled appraisals on an objective basis, 401k matching, just cause for termination, and rational work from home, paid time off, and overtime policies. But beyond these prosaic objectives, we aim to set a new standard for tr

@narfdotpl
narfdotpl / README.md
Created July 4, 2017 17:06
Quick note about ESP32 servo test

In this video I used TCP sockets. I have since switched to UDP sockets with no buffering. Results are similarly smooth but servos are more responsive.

I use the following setup:

  • SparkFun ESP32 Thing
  • MG92B servos
  • ESP32 is an access point (creates a wifi network) and a UDP socket server
  • gamepad communicates with the phone over bluetooth
  • phone joins the wifi network and sends data to the UDP socket
  • I need only one-way communication
@Ircama
Ircama / Digispark.md
Last active May 9, 2025 05:51
Configuring the Digispark ATtiny85 board for Arduino IDE and upgrading the bootloader

Configuring the Digispark ATTINY85 board for Arduino IDE and upgrading the bootloader

Warning: this document has to be updated by pointing to https://github.com/SpenceKonde/ATTinyCore

This note describes the configuration of an ATtiny85 based microcontroller development board named Digispark and similar to the Arduino line. It is available in many online marketplaces for roughly 1 dollar (e.g., Ebay, Amazon, AliExpress) and is shipped fully assembled, including a V-USB interface (a software-only implementation of a low-speed USB device for Atmel's AVR microcontrollers). Coding is similar to Arduino: it uses the familiar Arduino IDE and is already provided with a ready-to-use bootloader (