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 / resize_disk_image.md
Created August 7, 2025 17:13 — forked from joseluisq/resize_disk_image.md
How to resize a qcow2 disk image on Linux

How to resize a qcow2 disk image on Linux

This example takes olddisk.qcow2 and resizes it into newdisk.qcow2, extending one of the guest's partitions to fill the extra space.

1. qcow2 format

1.1. Verify the filesystems of olddisk.qcow2

@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
@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 / ffmpeg.md
Created February 13, 2023 14:31 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@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 / 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 / 2001:ac01
Created December 27, 2021 21:39 — forked from RoganDawes/2001:ac01
Updates to /etc/usb-mode.json to support DLink DWM222 model A2
# /usr/share/usb_modeswitch/2001:ac01
# Run manually if required using:
# usb_modeswitch -v 0x2001 -p 0xac01 -c /usr/share/usb_modeswitch/2001:ac01
# D-Link DWM-222 A2
TargetVendor=0x2001
TargetProduct=0x7e3d
StandardEject=1
@Pavel-Sayekat
Pavel-Sayekat / AdbCommands
Created October 2, 2021 08:40 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@Pavel-Sayekat
Pavel-Sayekat / how_to_setup_hotspot.md
Created September 6, 2021 01:28 — forked from Semant1ka/how_to_setup_hotspot.md
How to set up WiFi hotspot and troubleshoot WiFi problems on Debian

There are a few decent tutorials on how to setup hotspot on Linux, which I will share below, but this tutorial will focus on adversities that you without doubt will face while setting up your AP.

For AP setup we will need:

  • Hostapd utility
  • Some dhcp utility
  • A bit of patience (that was for my case)

How do I know that my WiFi adapter supports AP mode?

In terminal type sudo iw list this command will show info about your wifi interfaces. Look for Supported interface entry, if AP is in it, that means your Wifi devices support hotspot mode.

@Pavel-Sayekat
Pavel-Sayekat / AdbCommands
Created May 18, 2021 11:49 — forked from ernestkamara/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell