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 / 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
@Pavel-Sayekat
Pavel-Sayekat / change-accessibility-settings-with-adb.md
Created December 13, 2020 06:49 — forked from mrk-han/change-accessibility-settings-with-adb.md
Enable and Disable Android Accessibility Settings from the Command Line using ADB (Font scale, talkback, color blind)

Using ADB to control Accessbility settings for easier testing with Android Emulators + Real Devices

It's a lot easier to test accessibility on the fly using ADB. This gist attempts to make the days of navigating through the Android device settings UI to change Accessibility settings obsolete.

These ADB commands will hopefully encourage Android developers to test and use their apps with common Accessiblility settings enabled.

Credit to James Nitsch for inspiring this, and for figuring out the put commands to enable these settings.

Font Scale (Font Size -- Testing Dynamic Text)

@Pavel-Sayekat
Pavel-Sayekat / nginx.conf
Created April 13, 2020 11:20 — forked from stevenringo/nginx.conf
Nginx conf for solid SSL/TLS
# Thin serving Rails.
upstream app_server {
server 127.0.0.1:3050 fail_timeout=0;
}
# SSL/TLS certificates - the key should be 4096 bit generated with: 'openssl genrsa -des3 -out server.key 4096'
ssl_certificate_key /var/app/deploy/www.thisisatest.com.key;
ssl_certificate /var/app/deploy/www.thisisatest.com.chained.crt;
# Ideally we'd have only TLSv1.2, but that compromises client support significantly
@Pavel-Sayekat
Pavel-Sayekat / nginx.conf
Created April 11, 2020 04:57 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048