Musings of a geek
- AWS EC2: Automated setup for disabling NOPASSWD sudo 15 May 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 16 Apr 2024
How to use an Android smartphone as a high resolution webcam on Linux using v4l2loopback and scrcpy.
- Python pip: Speed up package installations 3 Apr 2024
How to speedup package installation when using Python pip.
- Self-hosted SAST for PHP using phpcs-security-audit 27 Mar 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 26 Mar 2024
How to query AWS WAF logs in CloudWatch to understand why legitimate traffic is being blocked by managed rule sets.
- Useful curl commands to test AWS WAF 26 Mar 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 30 Apr 2023
How to block traffic by country on Debian using iptables and the xt_geoip module with a MaxMind GeoLite2 database.
- Disabling IPv6 on Linux using sysfs 29 Apr 2023
A quick way to disable IPv6 on Linux persistently using sysctl.
- Installing Lineage OS on Mi device 29 Apr 2023
Steps to flash LineageOS onto a Xiaomi Mi device using adb, fastboot, and TWRP recovery.
- Linux: Configure power button to lock the screen 29 Apr 2023
Configure the power button to lock the screen on i3 using systemd-logind and xss-lock.