Extract a single frame (as PNG) from the video at a chosen timestamp:
ffmpeg -ss 00:00:05 -i input.mp4 -frames:v 1 -q:v 2 frame.png
wget $(npm view @mediapipe/face_mesh dist.tarball) |
A step-by-step guide for rescuing data from damaged or unreadable SD cards using Live Ubuntu, ddrescue
, photorec
, and testdisk
.
#include <WiFi.h> | |
const char* ssid = "ssid"; | |
const char* password = "password"; | |
int btnGPIO = 0; | |
int btnState = false; | |
void setup() | |
{ |
import SwiftUI | |
import UIKit | |
struct GIFImageView: UIViewRepresentable { | |
let gifName: String | |
func makeUIView(context: Context) -> UIImageView { | |
let imageView = UIImageView() |
git reflog expire --expire=now --all | |
git gc --prune=now --aggressive |
If you want UserDefaults
to clear every time you install a new Debug build via Xcode, regardless of version or build number, you can inject a unique marker that changes on every build.
Go to:
Build Settings
→User-Defined
→ click+
eval $(ssh-agent -s) | |
ssh-add ~/.ssh/id_ed25519 |
#include <BLEDevice.h> | |
#include <BLEScan.h> | |
#include <BLEAdvertisedDevice.h> | |
BLEScan* pBLEScan; | |
int scanTime = 5; // Scan for 5 seconds | |
BLEAdvertisedDevice* closestDevice = NULL; | |
/* | |
-30 to -50 dBm: The device is very close (a few centimeters). | |
-50 to -70 dBm: The device is relatively close (a few meters). |