Skip to content

Instantly share code, notes, and snippets.

View readloud's full-sized avatar
🌴
On vacation

読み上げ readloud

🌴
On vacation
View GitHub Profile
@readloud
readloud / FFMPEG Streaming.md
Created February 21, 2026 08:51
The Video Capture SDK offers powerful capabilities for streaming video from multiple sources directly into FFMPEG, which runs as an external process. This integration provides developers with exceptional flexibility, allowing you to use GPL/LGPL FFMPEG builds with any configuration of video/audio codecs and muxers according to your project requi…

Introduction to FFMPEG Streaming

The Video Capture SDK offers powerful capabilities for streaming video from multiple sources directly into FFMPEG, which runs as an external process. This integration provides developers with exceptional flexibility, allowing you to use GPL/LGPL FFMPEG builds with any configuration of video/audio codecs and muxers according to your project requirements.

With this integration, you can:

  • Capture video from various sources
  • Stream the captured content to FFMPEG
  • Configure FFMPEG to save streams to files
  • Stream content to remote servers
@readloud
readloud / Re-encoding.md
Created February 18, 2026 15:24
Extract Audio without Re-encoding (Fastest) If the audio in the video is already in a desirable format (like AAC or MP3), you can directly copy it without re-encoding, preserving original quality:
  1. Extract Audio without Re-encoding (Fastest)

If the audio in the video is already in a desirable format (like AAC or MP3), you can directly copy it without re-encoding, preserving original quality:

ffmpeg -i input_video.mp4 -vn -acodec copy output_audio.aac

-vn: Excludes the video stream.

-acodec copy: Copies the audio directly.

@readloud
readloud / ffmpeg-screen-capture.md
Last active February 18, 2026 15:04
Record your screen in MPEG-4 (MP4) format via command line, FFmpeg is the most versatile tool for Windows, Linux, and macOS. Alternatively, Android users can use adb.

Here are the specific commands based on your operating system:

  1. Windows (using FFmpeg & gdigrab)

To record your entire desktop at 30 frames per second and save as an MP4 file, use the following command in Command Prompt or PowerShell:

ffmpeg -f gdigrab -framerate 30 -i desktop -c:v libx264 -pix_fmt yuv420p output.mp4

To stop recording: Press q in the terminal window.

@readloud
readloud / git-daemon. md
Created July 26, 2025 02:38
Introducing the git-daemon
Introducing the git-daemon
As stated in the official documentation, the Git daemon is a very simple daemon which by default listens on the TCP port 9418. The daemon provides no authentication nor encryption, since it is meant as a quick way of distributing source code tracked in git repositories in trusted environments, such as Local Area Networks (LAN). By default the service allows only clone and pull actions, and forbids anonymous push actions, but this behavior can be easily modified (dangerous!).
Installation
Installing the git-daemon is a fairly easy process, since in a way or another, it is included in the repositories of all the most used Linux distributions. On Debian and Archlinux, for example, all we have to do is to install the standard git package, since git-daemon is included in it (it gets installed as /usr/lib/git-core/git-daemon). To install the git package on Debian we run the following command:
$ sudo apt install git
To perform the installation on Arch, instead, we can use pacman:
@readloud
readloud / gickup. md
Created July 26, 2025 02:36
Mirror repositories from one platform to another
gickup
$ curl --location --remote-name-all https://github.com/cooperspencer/gickup/releases/download/v0.10.17/{gickup_0.10.17_linux_amd64.tar.gz,gickup_0.10.17_checksums.txt}
$ sha256sum -c gickup_0.10.17_checksums.txt
If the checksum of the tarball corresponds to the one written in the file, we should see a message similar to the one below:
gickup_0.10.17_linux_amd64.tar.gz: OK
@readloud
readloud / Cloudflare and Bash Script. md
Created July 26, 2025 02:33
Automate Dynamic IP Updates for Your Domain with Cloudflare and Bash Script
Automate Dynamic IP Updates for Your Domain with Cloudflare and Bash Script
Log in to Cloudflare: Visit the Cloudflare dashboard and log in with your account credentials.
Navigate to API Tokens: Go to My Profile and select API Tokens.
Create a New Token: Click on Create Token and choose the Edit zone DNS template.
Customize the Token: Specify the domain you want the token to manage and click Create Token.
Copy the Token: Copy the generated API token for use in your script.
Copy the generated token. This will be used in your script to authenticate with Cloudflare.
Find Your Zone ID and DNS Record ID: Next, you need the Zone ID of your domain and the ID of the DNS record you want to update.
@readloud
readloud / vsftpd. md
Created July 25, 2025 09:44
vsftpd (very secure FTP daemon)
Install vsftpd on Linux
vsftpd (very secure FTP daemon) is one of the best and most popular FTP servers for Linux. Others also exist, but vsftpd is what we recommend using. You can use the appropriate command below to install vsftpd with your system’s package manager.
To install vsftpd on Ubuntu, Debian, and Linux Mint:
$ sudo apt install vsftpd
To install vsftpd on Fedora, CentOS, AlmaLinux, and Red Hat:
@readloud
readloud / SSH on Linux. md
Created July 25, 2025 09:40
SSH on Linux
SSH on Linux
The first thing we need to do is install SSH. There are separate software packages available depending on if you want to install the client package, server package, or both.
The OpenSSH Client package will allow you to use SSH to log in or initiate connections to remote systems.
The OpenSSH Server package will allow you to setup the SSH service and accept incoming connections. It is not necessary (or recommended) to install this package if you only plan to use SSH as a client.
The SSH command is generally available by default on all Linux distributions, but if your system does not have it, you can use the appropriate command below to install the OpenSSH client package with your system’s package manager. The second command in each example below will install the Server package (skip if you do not need it).
@readloud
readloud / Metasploit Commands Cheatsheet. md
Created July 25, 2025 09:39
Metasploit Commands Cheatsheet
Metasploit Commands Cheatsheet
1. Advanced Metepreter Script Commands- Part 1
Core Commands
These are the basic Linux commands you can use:
? help menu
background moves the current session to the background
bgkill kills a background meterpreter script
bglist provides a list of all running background scripts
@readloud
readloud / OpenSSL. md
Created July 25, 2025 07:34
OpenSSL toolkit
OpenSSL toolkit
The OpenSSL toolkit is available in the official repositories of the most used Linux distributions. It contains a set of utilities and libraries which provide support for various types of protocols and algorithms. There are very high changes the toolkit is already installed on your system, as a dependency of its core packages; however, to install it explicitly, we can just use the package manager of our distribution of choice. On Fedora and other distribution which are part of the Red Hat family, we use dnf:
$ sudo dnf install openssl
On Debian, Ubuntu and their derivatives, instead, we can use the apt wrapper:
$ sudo apt install openssl