Skip to content

Instantly share code, notes, and snippets.

/***************************************************************************
IR Ferraris Reader
2019 Adlerweb//Bitbastelei
Florian Knodt - www.adlerweb.info
Note: Just a few minutes of coding, not heavily tested, etc
***************************************************************************/
#include <Arduino.h>
@n-bell
n-bell / TestDatabase.user.js
Created September 13, 2019 22:35
Tampermonkey / Greasemonkey Dexie.js database storage in javascript
// ==UserScript==
// @name TESTDatabase
// @namespace foobar.com
// @version 0.1.1
// @description testing database functionality
// @include https://sample.somesite.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @require https://unpkg.com/dexie@latest/dist/dexie.js
// @grant GM_getValue
// @grant GM_setValue
@satori99
satori99 / app.js
Last active April 17, 2024 09:36
This is a proof-of-concept for using ffmpeg as a HTTP video stream proxy that can reduce the volume of ad-breaks
/**
* This is a proof-of-concept for using ffmpeg as a HTTP video stream proxy
* that can reduce ad volume.
*
* It only works on streams containing SCTE35 data packets.
* You can check a stream using:
*
* ffmpeg -hide_banner -i <SOURCE_URL> 2>&1 | grep scte_35
*
* Start the demo:
@DrChai
DrChai / Dockerfile
Last active March 21, 2021 22:14
docker-acme.sh-nginx-proxy-companion
FROM neilpang/acme.sh
ADD ./new_entry.sh /new_entry.sh
RUN chmod +x /new_entry.sh
ENTRYPOINT ["/new_entry.sh"]

Technical details for https://stackoverflow.com/a/44169445/6730571

Details of investigation:

On a base system, /usr/bin/java is a symlink that points to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java, which is an Apple wrapper tool that locates and executes the actual java.

(Do not touch anything in those 2 system directories. It should actually be impossible due to "System Integrity Protection" anyway.)

If you don't have Java installed, attempting to execute java will open a dialog that invites you to install it.

@nickoala
nickoala / 0_python_email.md
Last active February 11, 2025 20:23
Use Python to send and receive emails

Use Python to:

  • send a plain text email
  • send an email with attachment
  • receive and filter emails according to some criteria
@maxpoletaev
maxpoletaev / youtube_migrate.py
Last active July 31, 2021 16:52
Transfer YouTube subscriptions to another account
"""
Automatic migration of subscriptions to another
YouTube account with Python and Selenium.
Tested with:
- selenium 3.0
- firefox 49.0
- python 3.5
1. Install selenium from pypi:
@baderj
baderj / twitch_past_broadcast_downloader.py
Last active March 5, 2023 21:43
script to download past broadcasts from twitch.tv
import requests
import sys
import json
import re
import os
import string
import argparse
BASE_URL = 'https://api.twitch.tv'