Get the reported and actual number of frames in a video.
Note: I recently found a video that reported having 2985 frames, but actually only had 29 frames, which were all keyframes.
| #!/bin/bash | |
| # set -x | |
| print_usage() { | |
| echo "$0 [--map=0:3] video_file" >&2 | |
| echo "" >&2 | |
| echo "With video_file the path to a file like mkv which embeds the subtitles" >&2 | |
| echo "--map: use the specified embedded subtitle." >&2 | |
| echo "" >&2 |
Install/copy:
Run keybinds.ahk with autohotkey, Win+Enter spawns new terminal.
| Leave a comment with the name of an application (or multiple) that replaces a function typically done with a modern web browser. | |
| I.E. an application that allows YouTube to be watched without a browser. |
| // decrypting Amtrak's real-time train location geoJSON feed | |
| // based on https://github.com/Vivalize/Amtrak-Train-Stats | |
| const fetch = require('node-fetch'); | |
| const CryptoJS = require('crypto-js'); | |
| // this is the xhr call done by https://www.amtrak.com/track-your-train.html containing encrypted train location data | |
| const dataUrl = 'https://maps.amtrak.com/services/MapDataService/trains/getTrainsData'; | |
| // these constants are pulled from RoutesList.v.json, which is an object with keys 'arr', 's', and 'v' | |
| const sValue = '9a3686ac'; // found at s[8] |
| #!/bin/bash | |
| IN=$1 | |
| OUT=$2 | |
| true ${SD_PARAMS:="-55dB:d=0.3"}; | |
| true ${MIN_FRAGMENT_DURATION:="20"}; | |
| export MIN_FRAGMENT_DURATION | |
| if [ -z "$OUT" ]; then |
| esphome: | |
| name: bulb_75w_rgbw_qpw06 | |
| platform: ESP8266 | |
| board: esp01_1m | |
| wifi: | |
| ssid: 'YOURWIFISSID' | |
| password: 'YOURWIFIPASSWORD' | |
| logger: |
| type Primitive = | |
| | boolean | |
| | number | |
| | string | |
| | bigint | |
| | symbol | |
| | null | |
| | undefined; | |
| type Narrowable = |