Skip to content

Instantly share code, notes, and snippets.

View CypherpunkSamurai's full-sized avatar
😶
Currently Busy 🌻🐢

Cypherpunk Samurai CypherpunkSamurai

😶
Currently Busy 🌻🐢
View GitHub Profile
@CypherpunkSamurai
CypherpunkSamurai / create_venv_miniforge.bat
Created May 18, 2025 10:27
Create a Venv with Miniforge
conda create --prefix ./.venv python=3.5 uv -y
@CypherpunkSamurai
CypherpunkSamurai / README.md
Last active May 15, 2025 13:04
CGo FFmpeg LibAV Desktop Duplication Capture Screen on Windows

FFmpeg Libav Desktop Duplication Capture Screen

How to build:

  1. Follow this cause we need msys2 with ffmpeg libraries so pkg-config tool can find the required libraries
  2. If you're using GoLang edit your build env var

We will need pkg-config tool to be able to find the required libraries, ie libavcodec.pc file. We need to make sure pkg-config looks in the right folders to find it.

set PKG_CONFIG_PATH env var pointing to the mingw64\lib\pkgconfig folder. For me msys2 is installed in C:\Tools so it pointed it to pkgconfig folder in the mingw64\lib\pkgconfig folder of msys2.

@CypherpunkSamurai
CypherpunkSamurai / README.md
Created May 15, 2025 07:53
How to Use FFmpeg Mailing List

How to Use FFmpeg Mailing List

Looking Up Questions Like Stack Overflow

  1. Open Archives
  2. Browse Question Threads and Followup Emails

Ask a Question

  1. Read Mailing List FAQ (no seriously, just search it for terms like "ask a question", or "join" or "subscribe" or "libav")
@CypherpunkSamurai
CypherpunkSamurai / CMakeLists.txt
Last active May 15, 2025 13:05
FFmpeg Desktop Duplication API Encoder
cmake_minimum_required(VERSION 3.10)
project(ffmpeg_desktop_try1 C)
set(CMAKE_C_STANDARD 11) # Or gnu17 if you prefer
find_package(PkgConfig REQUIRED)
pkg_check_modules(AVCODEC REQUIRED libavcodec)
pkg_check_modules(AVFORMAT REQUIRED libavformat)
pkg_check_modules(AVUTIL REQUIRED libavutil)
pkg_check_modules(SWSCALE REQUIRED libswscale)
@CypherpunkSamurai
CypherpunkSamurai / random wallpapers api.md
Last active May 13, 2025 21:09
random wallpapers api
@CypherpunkSamurai
CypherpunkSamurai / build_ffmeg7.1.1.sh
Last active May 15, 2025 07:19
Msys2 FFmpeg 7.1 Build Script Using Shell Script Code
#!/bin/bash
# FFmpeg build script based on MSYS2/MinGW-w64 PKGBUILD
# Variables
FFMPEG_VERSION="7.1.1"
BUILD_DIR="$(pwd)/ffmpeg-build"
INSTALL_DIR="/opt/ffmpeg" # Change this to your preferred installation directory
CORES=$(nproc)
# Create build directory
# Script: Jdk22Portable.ps1
# Purpose: Download and set up portable JDK 22 from various vendors
# Author: Cypherpunk Samurai
# Version: 1.0
# -----------------------------------------
# This script creates a portable JDK setup
# by downloading JDK 22 from your preferred
# vendor and extracting it to a local folder
# -----------------------------------------
@CypherpunkSamurai
CypherpunkSamurai / powershell inc max history.ps1
Created May 2, 2025 12:03
Powershell Increase Max History
# https://devblogs.microsoft.com/scripting/increase-powershell-command-history-to-the-max-almost/
Get-Variable MaximumHistoryCount | Select-Object -ExpandProperty attributes
@CypherpunkSamurai
CypherpunkSamurai / readme.md
Created May 1, 2025 16:00 — forked from Ademking/readme.md
💚 Android : How to record events and play them using ADB SHELL

1) Know the event name of touchpad :

Run :

adb shell getevent -pl

Search for : "ABS_MT_TRACKING_ID" - example :