Skip to content

Instantly share code, notes, and snippets.

View fliptip's full-sized avatar
🐬

⇪ FlipTip fliptip

🐬
  • Lower Saxony, Germany
View GitHub Profile
import cv2
import numpy as np
import subprocess as sp
import sys
import time
from collections import deque
# --- Configuration ---
M3U8_URL = "https://h056.video-stream-hosting.de/stadtosnabrueck-rtplive/_definst_/mp4:camera2.stream/chunklist_w823426331.m3u8?ref=erleben.osnabrueck.de"
WIDTH = 1920
@fliptip
fliptip / m3u8-to-mp4.md
Created March 30, 2024 01:13 — forked from tzmartin/m3u8-to-mp4.md
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
Search operator What it does Example
“ ” Quotation marks match exact phrases. “steve jobs”
OR Returns results with either term. jobs OR gates
AND Returns results with both terms. jobs AND gates
- Excludes specified term. jobs -apple
* Matches zero or more characters. steve * apple
( ) Groups expressions together. (ipad OR iphone) apple
define: Defines specified term. define:entrepreneur
cache: Shows cached versions of page. cache:apple.com
//VERSION=3
function setup() {
return {
input: ["B02", "B03", "B04", "B08", "B12", "dataMask"],
output: { bands: 5 }
};
}
function evaluatePixel(sample) {
let min = Math.min(sample.B02, sample.B03, sample.B04, sample.B08, sample.B12);
// ==UserScript==
// @name add PWA tags
// @namespace http://tampermonkey.net/
// @version 1
// @description add pwa tags for iOS
// @author fliptip
// @include *
// @updateURL https://gist.github.com/FlipTip/54bf09bee300566011ee56fac8cc2353/raw/pwatags.user.js
// ==/UserScript==
code_name Weather condition
units WMO code 4501 (if <=0):WMO code 4677 (if >0)]
9 THUNDERSTORM(S)
8 SHOWER(S)
7 SNOW
6 RAIN
5 DRIZZLE
4 FOG
3 SANDSTORM
{
"version": 8,
"name": "Positron",
"metadata": {},
"sources": {
"carto": {
"type": "vector",
"url": "https://tiles.basemaps.cartocdn.com/vector/carto.streets/v1/tiles.json"
}
},
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
data:application/x-ms-dos-executable;base64,TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%0D%0AAAAACAEAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1v%0D%0AZGUuDQ0KJAAAAAAAAADlgy4aoeJASaHiQEmh4kBJcpBDSKbiQElykEVIHOJASXKQREir4kBJw5q9%0D%0ASaLiQEnDmkVIieJAScOaREiw4kBJw5pDSKjiQElykEFIpOJASaHiQUnU4kBJwZhESLXiQEnBmEJI%0D%0AoOJASVJpY2ih4kBJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUEUAAGSGBwAzeqdiAAAAAAAAAADw%0D%0AACIACwIOIACIAgAAjgEAAAAAADCjAAAAEAAAAAAAQAEAAAAAEAAAAAIAAAUAAgAAAAAABQACAAAA%0D%0AAAAAYAUAAAQAALUTYQADAGDBgIQeAAAAAAAAEAAAAAAAAAAAEAAAAAAAABAAAAAAAAAAAAAAEAAA%0D%0AAAAAAAAAAAAA5LgDADwAAAAAIAUAaC0AAADgBADEIAAAAAAAAAAAAAAAUAUAVAcAAMCSAwAcAAAA%0D%0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJEDAEABAAAAAAAAAAAAAACgAgBQAwAAAAAAAAAAAAAA%0D%0AAAAAAAAAAAAAAAAAAAAALnRleHQAAACwhwIAABAAAACIAgAABAAAAAAAAAAAAAAAAAAAIAAAYC5y%0D%0AZGF0YQAAaiQBAACgAgAAJgEAAIwCAAAAAAAAAAAAAAAAAEAAAEAuZGF0YQAAAOgDAQAA0AMAAA4A%0D%0AAACyAwAAAAAAAAAAAAAAAABAAADALnBkYXRhAADEIAAAAOAEAAAiAAAAwAMAAAAAAAAAAAAAAAAA%0
@fliptip
fliptip / index.html
Created May 27, 2022 19:45
unicode to punycode
Unicode utf-8
<input oninput="runa();" id="a">
<hr>
Unicode Character
<input oninput="runc();" id="c">
<hr>
ASCII
<input oninput="runb();" id="b">