Skip to content

Instantly share code, notes, and snippets.

View sachinsenal0x64's full-sized avatar
๐Ÿ“
Focusing

sachin senal sachinsenal0x64

๐Ÿ“
Focusing
View GitHub Profile
@sachinsenal0x64
sachinsenal0x64 / cfdo.md
Last active August 28, 2024 23:22
Cloudflare DNS Optimization Script
#!/bin/bash

# Welcome interface
function show_welcome() {
    echo "###############################################"
    echo "#                                             #"
    echo "#        Welcome to the Cloudflare IP Optimization Tool     #"
    echo
@sachinsenal0x64
sachinsenal0x64 / archpipfix.sh
Created September 23, 2023 00:36
ARCH PIP FIX
sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old
rclone mount dav: /home/pc/server --buffer-size 64M --dir-cache-time 64h --vfs-cache-mode full --vfs-read-chunk-size 100M --vfs-read-chunk-size-limit 100M --vfs-cache-max-age 6h --allow-other --allow-non-empty --cache-dir /tmp/rclonca --daemon --daemon-timeout 5m
@sachinsenal0x64
sachinsenal0x64 / Rclone Stream with Alist.txt
Last active September 5, 2023 07:37
Rclone Stream with Alist
rclone mount dav: /home/pc/server --allow-other --allow-non-empty --cache-dir /tmp/rclonca --no-modtime --multi-thread-streams 8 --vfs-read-chunk-size 256M --vfs-read-chunk-size-limit 600M --buffer-size 4096M --dir-cache-time 64h --vfs-cache-mode full --vfs-cache-max-age 6h --daemon --daemon-timeout 5m
@sachinsenal0x64
sachinsenal0x64 / Rclone Auto Mount.vbs
Last active September 5, 2023 07:37
Rclone Auto Mount Without Console in Backgroud
Set WshShell = CreateObject("WScript.Shell")
' Command to mount rclone remote
mountCommand = "rclone mount nas: J: --network-mode --vfs-cache-mode full"
' Run the command without displaying the console window
WshShell.Run mountCommand, 0, False
@sachinsenal0x64
sachinsenal0x64 / FFMPEG HLS EVENT STREAM WITH AMD HARDWARE ACCELERATION.py
Last active October 21, 2023 16:43
FFMPEG HLS EVENT STREAM WITH AMD HARDWARE ACCELERATION (PYTHON SUBPROCESS)
# USE jellyfin-ffmpeg FOR replit.com
# pkgs.jellyfin-ffmpeg add into replit.nix
subprocess.run(['ffmpeg', '-hwaccel', 'auto', '-i', video_path, '-c:v', 'h264_amf', '-c:a', 'aac', '-f', 'hls', '-hls_playlist_type', 'event', '-hls_segment_type', 'mpegts', '-hls_segment_filename', os.path.join(hls_path, 'live_%d.ts'), '-hls_flags', 'delete_segments', '-hls_list_size', '3', os.path.join(hls_path, m3u8_file)])