AWS EC2: Automated setup for disabling NOPASSWD sudo
May 15, 2024
Automated solution for setting up passwords for default users and root account on EC2 using AWS CLI and Parameter Store to disable sudo without password
...
➦
Using Android device as a high resolution webcam on Linux
Apr 16, 2024
How to use an Android smartphone as a high resolution webcam on Linux using v4l2loopback and scrcpy.
...
➦
Python pip: Speed up package installations
Apr 03, 2024
How to speedup package installation when using Python pip.
...
➦
Self-hosted SAST for PHP using phpcs-security-audit
Mar 27, 2024
Deploy a local docker container to scan all your PHP repositories for security vulnerabilities using phpcs-security-audit.
...
➦
Searching AWS WAF logs on CloudWatch
Mar 26, 2024
AWS Web Application Firewall (WAF) can be a nifty little tool in your defense-in-depth approach. Even the basic rule sets make it considerably challenging for your typical script kiddies to cause much nuisance.
...
➦
Useful curl commands to test AWS WAF
Mar 26, 2024
How to use curl to test AWS WAF functionality such as XSS, size restrictions and user agent restrictions.
...
➦
Configuring iptables to work with GeoIP
Apr 30, 2023
This guide explains how to block traffic by country on Debian using iptables and GeoIP. First, install required packages and download a GeoLite2 country database. Then, compile the data for iptables to understand and load the GeoIP module.
...
➦
Disabling IPv6 on Linux using sysfs
Apr 29, 2023
$ sudo -i $ echo net.ipv6.conf.default.disable_ipv6=1 >> /etc/sysctl.conf $ echo net.ipv6.conf.all.disable_ipv6=1 >> /etc/sysctl.conf $ sysctl -p
Installing Lineage OS on Mi device
Apr 29, 2023
Install adb and fastboot using pacman -S android-tools
Download Lineage image and TWRP recovery for your device.
After enabling debugger options, copy these files using:
adb push lineage.zip 'data/local' adb push twrp 'data/local' Put the device in fastboot mode using adb reboot bootloader.
...
➦
Linux: Configure power button to lock the screen
Apr 29, 2023
This post configures automatic screen locking on power button press for i3 window manager on Linux. Here’s how:
/etc/systemd/logind.conf listens for power press events, and then produces the configured messages on dbus.
...
➦