Decode AWS Console Error Message

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-not-auth-launch/ Resolution 1. Verify that the AWS CLI is installed and configured on your machine with the following command: 1$ aws –version Note: If you receive errors when running AWS …

Query Tailscale Logs via API

See documentation here: https://tailscale.com/kb/1203/audit-logging/ 1$ curl -u tskey-api-1234567890123456789012345678901234567890123456: -X GET "https://api.tailscale.com/api/v2/tailnet/aimsparking.com/logs?start=2023-01-01T00:00:00Z&end=2023-01-31T00:00:00Z" Returned Results 123456789101112131415161718192021222324252627282930313233343536373839404142434445{     "version": "1.1",     "tailnetId": "itsmetor.com",     "logs": [{         …

Powershell Check SSL Certs

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354# set some constants for the script # min cert age is 60 days, print in red if the cert is going to expire in 60 days or less $minCertAge …

Extend Linux File System

SSH to the instance Verify the volume that has the problem with command: lsblk Changed the volume to 32 GB from the AWS console (chose 32 because it was sufficiently …

Delete MongoDB Log

Check which directories are using disk space 1sudo du -h –max-depth=1 Delete the Mongo Log 1sudo rm -rf /var/log/mongodb/mongod.log Check which processes have not released the file lock 1sudo lsof …

Database Repair MSSQL

Command: 1DBCC CHECKDB Returned: 123456789101112DBCC results for ‘AP_TypeLocations’. There are 3004 rows in 14 pages for object "AP_TypeLocations". Msg 8976, Level 16, State 1, Line 1 Table error: Object ID …

Diffs

Get a listing of files different between two branches 1git diff –name-status master..master-stable >> diffs.txt

AWS List Reserved Instance Contracts

1). Install the AWS CLI for PowerShell https://docs.aws.amazon.com/powershell/latest/userguide/pstools-getting-set-up-windows.html Click Start > type PowerShell > right click run as Administrator Run commands: 12345678Install-Module -Name AWS.Tools.Installer Install-Module -Name AWSPowerShell Set-ExecutionPolicy RemoteSigned Set-AWSCredential …