Skip to content

Instantly share code, notes, and snippets.

View Pavel-Sayekat's full-sized avatar
💭
What's the weather?

Pavel Sayekat Pavel-Sayekat

💭
What's the weather?
  • Nowhere
  • Bangladesh
View GitHub Profile
@Pavel-Sayekat
Pavel-Sayekat / convert-svg-png
Created October 10, 2022 12:36 — forked from dustintheweb/convert-svg-png
Batch Convert SVG to PNG (transparent/ alpha) using ImageMagick
// ImageMagick - Convert SVG to PNG w/ transparency
//
// - open terminal
//
// - confirm you have imagemagick installed
// --- type: convert -v
//
// - cd to folder
//
// - single file
@Pavel-Sayekat
Pavel-Sayekat / svg2png.sh
Created October 10, 2022 12:36 — forked from alexkuang0/svg2png.sh
Batch converting SVG to PNG
for svg in $(ls ./svg); do
filename=$(echo $svg | cut -d'.' -f1)
convert -background none -density 1000 -resize 1000x svg/$(echo $filename).svg png/$(echo $filename).png
echo [DONE] $filename converted!
done
@Pavel-Sayekat
Pavel-Sayekat / ffmpeg.md
Created February 13, 2023 14:31 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@Pavel-Sayekat
Pavel-Sayekat / bio_unpack.py
Last active June 19, 2025 05:34 — forked from XVilka/bio_unpack.py
Unpacks *.BIO and *.CAP EFI capsule files
#!/bin/env python
import ctypes
import struct
import sys
import os
import array
EFI_CAPSULE_GUID = "BD86663B760D3040B70EB5519E2FC5A0".bytes.fromhex() # 3B6686BD-0D76-4030-B70E-B5519E2FC5A0
EFI2_CAPSULE_GUID = "8BA63C4A2377FB48803D578CC1FEC44D".bytes.fromhex() # 4A3CA68B-7723-48FB-803D-578CC1FEC44D
UEFI_CAPSULE_GUID = "B9829153B5AB9143B69AE3A943F72FCC".bytes.fromhex() # 539182B9-ABB5-4391-B69A-E3A943F72FCC
@Pavel-Sayekat
Pavel-Sayekat / fix-sysctl.txt
Created July 15, 2025 10:09 — forked from iamcryptoki/fix-sysctl.txt
Fix sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables.
$ modprobe bridge
$ echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf
$ sysctl -p /etc/sysctl.conf
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory
# SOLUTION
$ modprobe br_netfilter
$ sysctl -p /etc/sysctl.conf