Ubuntu Server - Laptop Lid Ignore

Use Your Laptop As A Server Tested on : Ubuntu 20.04 LTS To disable entering the sleep mode I had to edit the /etc/systemd/logind.conf file and modify the line: Just uncomment the line by removing # from this : #HandleLidSwitch=suspend #LidSwitchIgnoreInhibited=no #HandleLidSwitchDocked=ignore to this : HandleLidSwitch=ignore LidSwitchIgnoreInhibited=no HandleLidSwitchDocked=ignore Then restart the OS via: sudo service systemd-logind restart Then you can close the laptop lid .

May 12, 2022 · 1 min · Haziq Rohaizan

Protect Your Linux Server Against Hackers and Malware

Copy from The Digital Life Blog Optimize your deployments to lower the attack surface, especially when you’re running administrative web interfaces and Docker Containers. SECURITY IS NOT A SIMPLE CHECK-LIST First, I want to emphasize how important it is that you develop your own security strategy. Because when you search on the web about “How to protect Linux” or “Harden your Linux Server”, you’ll find tons of articles. People are just throwing out their “best practices” (just like this article here :)....

May 12, 2022 · 3 min · Christian Lempa
ssl-cert-flow

Self Sign Cert

SSL Certificates Cheat-Sheet X.509 is an ITU standard defining the format of public key certificates. X.509 are used in TLS/SSL, which is the basis for HTTPS. An X.509 certificate binds an identity to a public key using a digital signature. A certificate contains an identity (hostname, organization, etc.) and a public key (RSA, DSA, ECDSA, ed25519, etc.), and is either signed by a Certificate Authority or is Self-Signed. Self-Signed Certificates Generate CA Generate RSA openssl genrsa -aes256 -out ca-key....

May 12, 2022 · 3 min · Christian Lempa

Vimtutor - Tutorial for newbie Vim user

Base On : VIM Tutor - Version 1.7 Copied version Install vimtutor on Fedora 35 : sudo dnf install vim-enhanced =============================================================================== = W e l c o m e t o t h e V I M T u t o r - Version 1.7 = =============================================================================== Vim is a very powerful editor that has many commands, too many to explain in a tutor such as this. This tutor is designed to describe enough of the commands that you will be able to easily use Vim as an all-purpose editor....

May 6, 2022 · 26 min · Haziq Rohaizan

Setup Hugo

Cara Setup Hugo Static Site di Github Pages Bahan ini disalin terus daripada website hackmd. Hanya tujuan rujukan semata-mata. Ada beberapa bahagian diubah. Tutorial boleh ditonton di youtube - Tutorial: Blogging with Hugo and GitHub Pages-Sarah Gibson Saya akan membawa anda melalui penciptaan tapak web anda sendiri, dihoskan pada GitHub Pages dan dibina dengan Hugo. Anda boleh melihat contoh tapaknya dipautkan di bawah. website : https://mhaziqrk.uk (website ini) Repo : https://github....

May 1, 2022 · 21 min · Haziq Rohaizan

Menyediakan lingkungan Pengembangan bagi Projek Sains Komputer

Menyediakan lingkungan Pengembangan bagi Projek Sains Komputer Amaran ! Laman sesawang ini menggunakan bahasa melayu rojak dan bercampur dengan bahasa inggeris. 1) Memasang XAMPP Link Muat Turun XAMPP Anda hanya perlu mengikut instruksi daripada installer tersebut.Tekan Next jer. Pastikan anda memilih sistem operasi yang betul dan sistem anda sudah menyokong binaan 64bit. 2) Memasang VS Code Link Muat Turun VS Code VS Code menyokong pelbagai binaan seperti 32bit, 64bit dan ARM....

April 29, 2022 · 2 min · Haziq Rohaizan

Road to MLSA (Community Influencers Path)

September 13, 2024 · 0 min · Haziq Rohaizan

Cisco IOS Cheat sheet

October 25, 2023 · 0 min · Haziq Rohaizan

Networking Note

October 25, 2023 · 0 min · Haziq Rohaizan