Skip to content

Instantly share code, notes, and snippets.

View Cemu0's full-sized avatar
🕹️
OMG

Quoc Anh Cemu0

🕹️
OMG
  • Spent so much time in startup... but then no more!
  • VN
  • 10:44 (UTC +07:00)
  • YouTube @Cemu0
View GitHub Profile
@Cemu0
Cemu0 / captureRTSP.sh
Last active January 23, 2025 17:03
ffmpeg python create mp4
#!/bin/bash
while true; do
# Capture a frame from the RTSP stream
filename="$(date +\%Y-\%m-\%d_\%H-\%M-\%S).png"
filepath="/output2/$(date +\%Y-\%m-\%d_\%H-\%M-\%S).png"
ffmpeg -rtsp_transport tcp -i 'rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0' -vframes 1 -q:v 1 -s hd1080 -pix_fmt yuv420p "$filepath"
# Append the filename to files.txt
echo "$filename" >> /output2/files.txt
@Cemu0
Cemu0 / cheat10F.py
Created November 1, 2020 02:31
Code for cheater
# this code writen by Cemu0
# no Copyright or license
import keyboard
import time
string = "your typing things here"
keyboard.wait('end')
for i in string:
if i == ' ':
keyboard.press_and_release('space')
@Cemu0
Cemu0 / hassio_jetson_nano.sh
Last active April 17, 2021 19:45 — forked from det-peralta/hassio_jetson_nano.sh
Install Hassio on Nvidia Jetson Nano
sudo -i
apt-get install software-properties-common
add-apt-repository universe
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat
#The jetson already has docker installed
#curl -fsSL get.docker.com | sh
curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s -- -m qemuarm-64