Skip to content

Instantly share code, notes, and snippets.

View bblanchon's full-sized avatar
🌟
No more counting dollars we’ll be counting stars

Benoît Blanchon bblanchon

🌟
No more counting dollars we’ll be counting stars
View GitHub Profile
@bblanchon
bblanchon / qpdf-context-menu.reg
Created January 15, 2024 12:49
Add PDF rotation to Windows Explorer's context menu
Windows Registry Editor Version 5.00
; Adds Rotate +90 and Rotate -90 to the context menu for PDF files
; Assumes qpdf is installed in C:\Program Files\qpdf
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\shell\Rotate +90]
"icon"="%SystemRoot%\\system32\\imageres.dll,-5345"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.pdf\shell\Rotate +90\command]
@="\"C:\\Program Files\\qpdf\\bin\\qpdf.exe\" --replace-input --rotate=+90 \"%1\""
@bblanchon
bblanchon / amazon-cloudwatch-agent.json
Created October 2, 2024 08:24
Sample configuration for CloudWatch Agent
{
"agent": {
"metrics_collection_interval": 60
},
"metrics": {
"namespace": "CWAgent",
"append_dimensions": {
"InstanceId": "${aws:InstanceId}"
},
"metrics_collected": {