Your cart is currently empty!
Category: Uncategorized
WSL2: Fedora 37
First, create a folder. Then, download Fedora rootfs from here. Extract the tar.xz until you find layer.tar file. Finally, import the layer.tar file to WSL. You can start it with: Or, make it your default distribution with: Refrences:
GPG: Public-Private Key Encryption
Generate public-private key pairs List keys List public keys List private keys Encyrpt a file If you do not specify –output flag, it will generate a file named hello.txt.gpg. Sign a file You may need to enter the password for your private key. If you do not specify –output flag, it will generate a file…
GPG: Password Encryption
Encrypt a file Enter the prompted password. After that, it will generate a file named hello.txt.gpg. Decrypt a file Non-interactive
OpenSSL: Public-Private Key Encryption
Generate private key First, you need a private key to generate a public key. Generate public key Encrypt using public key Decrypt using private key
OpenSSL: Password Encryption
Generate password file This will generate 64 bytes file with random bytes. Encrypt using password file Decrypt using password file
Laravel: Service Container
Service container pada Laravel adalah sebuah class dimana terdapat beberapa protected properties yang menyimpan data dalam bentuk key & value pairs. Key & value tersebut digunakan untuk me-resolve class (key) menjadi class lainnya (value) sehingga dengan cara ini kita dapat merubah implementasi sebuah class dengan cepat. Untuk penggunaan dependency injection, secara garis besar, Laravel bisa…
QuasarJS: TailwindCSS v3
#1. Add TailwindCSS to the project. #2. Initialize TailwindCSS this will generate tailwind.config.js. #3. Add to postcss.config.js. #4. Add to src/css/app.scss. #5. Add content required to tailwind.config.js.
Nginx: Docker Redirect
Spin off a new Nginx container in docker. Go in side the newly created container. Create some folders and files inside the root of http. We will get something like this: Now see what happens if we try to go to this url: You can see on line 14 above that it redirect our request…