fd -t f -0 | xargs -0 -I {} sh -c 'echo "File: {}"; cat {}'
Friday, October 18, 2024
Find content of all relevant files in a project respecting .gitignore
Tuesday, August 06, 2024
Remove server header in IIS to stop disclosing running version(s)
Set attribute removeServerHeader="true" in web.config node configuration."system.webServer".security.requestFiltering.
Thursday, July 18, 2024
When the clock on MAC OSX goes off
To sync your macOS clock and prevent it from drifting after sleep cycles, follow these steps:
- Run this command to sync time:
- Remove the current time settings:
- After reboot, turn on "Set time and date automatically" in System Settings > Date & Time. This should ensure your clock remains accurate.
- Run this command to sync time:
sudo sntp -sS time.apple.com- Go to System Settings > Date & Time and turn off "Set time and date automatically."
- Remove the current time settings:
sudo rm /var/db/timed/com.apple.timed.plist- Reboot the Mac.
- After reboot, turn on "Set time and date automatically" in System Settings > Date & Time. This should ensure your clock remains accurate.
Monday, May 27, 2024
Sunday, April 14, 2024
Minimal kubernetes pods log shipping with fluent-bit
I just released how to ship kubernetes cluster pod logs to Amazon Simple Storage Service (AWS S3) using fluent-bit. Platform engineers should do their best to keep cloud independence. This setup will work for Azure AKS, Google GKE and Amazon EKS. The choice for S3 is just a pick and not a preference. Google Cloud Storage (GCS) or Azure Blob Storage (ABS) will do the job as well (just check fluent-bit docs and adapt the code below for your choice).
Wednesday, March 20, 2024
Sunday, March 10, 2024
Securely sharing the content of your MAC OSX ~/.zshrc and other profile configuration files
cat ~/.zshrc | sed -E "s/(export[^=]*=).*/\1***/"
Subscribe to:
Posts (Atom)