Skip to content

Instantly share code, notes, and snippets.

View sandboiii's full-sized avatar

Alexey Peschany sandboiii

View GitHub Profile
@sandboiii
sandboiii / pdf-cheatsheet.md
Last active March 9, 2024 19:00
pdf shell commands cheatsheet

Create pdf file from images

convert image_*.jpg image.pdf

Compress pdf file

V1:

convert doc.pdf -compress Zip doc_compressed.pdf
@sandboiii
sandboiii / awesome-pastebins.md
Created September 13, 2023 10:20
Awesome hackers pastebin sites
@sandboiii
sandboiii / uiautomatorviewer-errors.md
Last active September 14, 2023 12:37
Android UIAutomatorViewer errors

Hello, I made a simple instruction on how to fix some Android's UIAutomatorViewer errors which I have encountered on my machine. Here it is:

1. Wrong Java version

-Djava.ext.dirs=/home/user/Android/Sdk/tools/lib/x86_64:/home/user/Android/Sdk/tools/lib is not supported.  Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
@sandboiii
sandboiii / screenshots-directory.md
Last active September 18, 2023 09:57
Save GNOME screenshots to custom directory on Linux

Save GNOME screenshots to custom directory on Linux

If you want to change default screenshot directory to other location, for example "Screenshots" directory.

Execute following command:

gsettings set org.gnome.gnome-screenshot auto-save-directory "file:///home/$USER/Screenshots/"

Have a good day!

@sandboiii
sandboiii / ITMO-Corp.8021x
Created May 31, 2021 15:14
ITMO-Corp iwd WPA Enterprise PEAP configuration
[Security]
EAP-Method=PEAP
EAP-Identity=anonymous
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=username
EAP-PEAP-Phase2-Password=password
[Settings]
AutoConnect=true