Skip to content

Instantly share code, notes, and snippets.

@rolisz
rolisz / mic_check.py
Created February 2, 2023 15:41
Script to alert on microphone loudness
import time
from collections import deque
import numpy as np
import sounddevice as sd
from beepy import beep
from infi.systray import SysTrayIcon
last_alert = time.time() - 10
q = deque(maxlen=200)
@endor-force
endor-force / lovelace_energy.yaml
Created January 14, 2022 14:39
Example Home assistant lovelace YAML for presenting consumption energy data from HAN port
- title: Energi
id: energi
icon: mdi:home-lightning-bolt-outline
cards:
- type: energy-date-selection
- type: vertical-stack
cards:
- type: energy-usage-graph
- type: gauge
name: Aktuell förbrukning
@ChipCE
ChipCE / readme.md
Last active June 3, 2024 13:44
Klipper bed mesh on print area only macro install guide

READ THIS FIRST

Adaptive bed mesh is merged into klipper master branch. You can use this feature without this custom macro. Official klipper adaptive bed mesh

Klipper mesh on print area only install guide

What this macro do

  • This macro will dynamically changing the bed mesh area based on the size of the parts will be printed. The fw will only probe on the area that the part will be printed (plus mesh_area_offset value)
@rgrokett
rgrokett / gist:efa7b99abf7af68823ab59082d9320b7
Last active May 4, 2024 04:55
RTLSDR-Airband instructions for Raspberry Pi 3

RTLSDR-Airband instructions for Raspberry Pi 3

Build a Aircraft scanner from a Pi 3 and an RTL-SDR radio dongle and external audio PC speaker.

Full details are available at https://github.com/szpajder/RTLSDR-Airband/wiki

Hardware

  • Raspberry Pi 3 with at least 2 USB slots
  • RTL-SDR Dongle V3 (typical one, not ADS-B!)
  • USB powered speaker with stereo audio plug
  • Antenna with connecting cable for RTL-SDR dongle
@Samfox2
Samfox2 / README.md
Created May 2, 2019 20:20 — forked from tetkuz/README.md
GStreamer stream to HTML5

Description

[Server] GStreamer ---> HTML [Client]

Require

  • gstreamer-1.x
  • Browser which supports video tag of HTML5

debian

@lxe
lxe / goes16-rtlsdr.md
Last active June 6, 2024 04:19
Receive GOES-16 and GOES-17 Images with a Raspberry Pi and RTL-SDR dongle
@MawKKe
MawKKe / split_ffmpeg.py
Last active August 7, 2021 21:50
MOVED TO: https://github.com/MawKKe/audiobook-split-ffmpeg | Split audio file with ffmpeg based on chapter metadata
#!/usr/bin/env python3
import sys
import os
import re
import subprocess as sub
import argparse
import tempfile
import json
from concurrent.futures import ThreadPoolExecutor, as_completed
@steven2358
steven2358 / ffmpeg.md
Last active July 22, 2024 08:40
FFmpeg cheat sheet
@primaryobjects
primaryobjects / m3u8.md
Last active July 20, 2024 13:07
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.