Skip to content

Instantly share code, notes, and snippets.

@vpanton
vpanton / AdbCommands
Created July 9, 2022 15:06 — 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
@vpanton
vpanton / minio
Created January 4, 2019 14:05
minio
cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/minio.service )
adduser --system --no-create-home --group --disabled-login --shell=/bin/false minio-user
systemctl enable minio.service
$ cat <<EOT >> /etc/default/minio
# Volume to be used for Minio server.
MINIO_VOLUMES="/tmp/minio/"
# Use if you want to run Minio on a custom port.
MINIO_OPTS="--address :9199"
# Access Key of the server.
@vpanton
vpanton / Vim_save_sudo
Created July 18, 2017 11:52
Vim_save_sudo
:w !sudo tee %
@vpanton
vpanton / gist:eba04552a4215660702f0c3d013f2f9e
Created July 10, 2017 12:44
Linux Test Disk I/O Performance With dd Command
dd if=/dev/input.file of=/path/to/output.file bs=block-size count=number-of-blocks oflag=dsync
## GNU dd syntax ##
##########################################################
##***[Adjust bs and count as per your needs and setup]**##
##########################################################
dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync
dd if=/dev/zero of=/tmp/test2.img bs=64M count=1 oflag=dsync
dd if=/dev/zero of=/tmp/test3.img bs=1M count=256 conv=fdatasync
dd if=/dev/zero of=/tmp/test4.img bs=8k count=10k
dd if=/dev/zero of=/tmp/test4.img bs=512 count=1000 oflag=dsync