Skip to content

Instantly share code, notes, and snippets.

View br4instormer's full-sized avatar

br4instormer br4instormer

View GitHub Profile
@br4instormer
br4instormer / nginx-client-certificate-authentication.md
Created June 9, 2025 13:44 — forked from ronau/nginx-client-certificate-authentication.md
A simple nginx configuration for a demo of client certificate authentication

Client certificate authentication with nginx

Below is a simple nginx configuration file enabling client certificate authentication, i.e. the user/client has to present a certificate in order to get access.

It is the result of a small proof of concept solution for the following task:

  • A certain web server directory should be used as file storage
  • Transport security (i.e. TLS)
@br4instormer
br4instormer / README.md
Last active February 4, 2025 10:59
convert ts video with h264 within docker container on nvidia GPU

How to convert ts video with h264 encoder within docker container on Nvidia GPU

Dependencies

Using

@br4instormer
br4instormer / script.sh
Created November 28, 2024 19:01
Collect all bandcamp links from flac files on nested directories
#!/usr/bin/env bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
LINKS=()
for dir in */
do
file=$(find "./$dir" -name "*.flac" -print -quit)
if [ "$file" ]
@br4instormer
br4instormer / README.md
Last active September 24, 2024 17:02
Download one video from youtube in mkv container with chapters and metadata

How to download one video from youtube in mkv container with chapters and metadata

We will use yt-dlp application

Dependencies

  • python-3
  • yt-dlp
  • ffmpeg
@br4instormer
br4instormer / README.md
Created September 21, 2024 16:01
Connection to websocket via socketio package

Before run:

pip install requests python-socketio

Run:

python main.py
@br4instormer
br4instormer / README.md
Last active September 20, 2024 13:49
Update user-wide docker compose plugin

Update docker compose plugin on local user environment

Installation

  1. Place script into ~/bin
  2. Put ~/bin to your local PATH environment if necessary
  3. Set permissions on launch: chmod u+x docker-compose-update.sh
  4. Install dependencies:
  • wget
  • curl
@br4instormer
br4instormer / README.md
Last active September 20, 2024 13:50
Update user-wide docker buildx plugin

Update docker buildx plugin on local user environment

Installation

  1. Place script into ~/bin
  2. Put ~/bin to your local PATH environment if necessary
  3. Set permissions on launch: chmod u+x docker-buildx-update.sh
  4. Install dependencies:
  • wget
  • curl
@br4instormer
br4instormer / README.md
Created September 13, 2024 16:30
Сохранение настроек геометрии окон Блокнота и Проводника и восстановление их по требованию

Механизм сохранения настроек геометрии окон Блокнота и Проводника. Восстановление их по требованию

Реализация задачи с fl.ru

размер ширину высоту длину это может быть где то в реестре Windows 10 Pro мне понравились блокнот и проводник в таком видео при неакуратном движении его можно сбить/изменить и хотелось бы узнать их размеры чтобы быстро восстановить например через REG файл постарайтесь уже сегодня

Эксплуатация

Экспорт настроек окон

@br4instormer
br4instormer / Dockerfile
Last active October 22, 2024 12:28
Docker image with yt-dlp within using ffmpeg 7 as muxer
FROM alpine:latest AS ffmpeg
WORKDIR /var/tmp
ADD https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.1-latest-linux64-gpl-7.1.tar.xz .
RUN tar -xf ffmpeg-n7.1-latest-linux64-gpl-7.1.tar.xz
FROM python:3.13-slim-bookworm
@br4instormer
br4instormer / settings.json
Created April 21, 2024 12:47
Pylance project config to work with virtualenv
{
"python.analysis.extraPaths": [
"venv/lib/python3.12/site-packages"
],
"python.defaultInterpreterPath": "${workspaceFolder}/venv/bin/python"
}