Skip to content

Instantly share code, notes, and snippets.

View minlaxz's full-sized avatar
:octocat:
👻

Min Min Latt minlaxz

:octocat:
👻
View GitHub Profile
@minlaxz
minlaxz / git_submodules.md
Created July 22, 2021 14:18 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@minlaxz
minlaxz / vino-nano-serve.sh
Created July 4, 2021 17:48
Starting Vino server on Jetson nano.
#!/bin/bash
export DISPLAY=:0
gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
/usr/lib/vino/vino-server &
@minlaxz
minlaxz / 10-Bit H.264
Created May 13, 2021 04:58 — forked from YamashitaRen/10-Bit H.264
10-Bit H.264 explanation
10-Bit H.264
For all those who haven’t heard of it already, here’s a quick rundown about the
newest trend in making our encodes unplayable on even more systems: So-called
high-bit-depth H.264. So, why another format, and what makes this stuff
different from what you know already?
First off: What is bit depth?
In short, bit depth is the level of precision that’s available for storing color
information. The encodes you’re used to have a precision of 8 bits (256 levels)
@minlaxz
minlaxz / emulator-install-using-avdmanager.md
Created May 1, 2021 09:20 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For generic skin emulator with default apis (without google apis):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-29;default;x86"

@minlaxz
minlaxz / renew-gpgkey.md
Last active March 23, 2021 13:53 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@minlaxz
minlaxz / dockerized-pihole-openvpn.md
Last active May 23, 2021 09:43
Dockerizing OpenVPN with PiHole.

__This setup is working correctly on Ubuntu20-Server __ Assumming All These Commands are ran by Root User

  1. Git Clone Kylemanna/docker-openvpn git clone https://github.com/kylemanna/docker-openvpn.git && cd docker-openvpn

  2. Build OpenVPN docker image docker build -t IMAGE_NAME .

  3. Generate Config for OpenVPN

@minlaxz
minlaxz / ovpn-pihole-docker.md
Last active March 14, 2021 16:14
OVPN-PiHole-Docker

SSH into AWS ec2/ Digitalocean droplet/ or else other PAAS, linux machine

  1. Install Docker
$ curl -sS get.docker.com | sh
$ sudo usermod -aG docker $USER
@minlaxz
minlaxz / parallel-compressed-tars.md
Last active May 23, 2021 09:44
How to parallel compress tarballs.

Parallel Compressed Tarballs

Compressing a Dir

Pipe method =>

tar cvf - ./videos | pixz > oneFile.tpxz
  • c --create
  • v --verbose
@minlaxz
minlaxz / Openssl-Encrypt-RSA-AES.md
Last active May 23, 2021 09:45
RSA and AES encryption with OpenSSL

AES-ENCRYPTIONS

AES with PASSWORD:

ENCRYPTION AND DECRYPTION USING PASSWORD:

  • encrypt FILE using PASSWORD:

    • $ openssl aes-256-cbc -salt -pbkdf2 -in inkyung.zip -out inkyung.zip.aes
  • encrypt STRING using PASSWORD:

    • $ echo "a_string" | openssl enc -e -aes-256-cbc -a -salt -pbkdf2
@minlaxz
minlaxz / Find all .mp4 file from multiple dir.md
Last active August 19, 2021 07:54
Linux find given name in depth of N.
find . -maxdepth 2 -name "*.mp4" -exec cp {} . \;