How to add and delete security group rules in AWS via the CLI (and list them too!)

Author: , September 13th, 2023

Add inbound rule(s) for a security group ID:

## Delete inbound rule(s) for a security group ID

## List security groups by security group ID

## List inbound rules for a specific security group ID

Thanks to: https://www.bluematador.com/learn/aws-cli-cheatsheet

How To Fix “iCloud Account Could Not Be Removed” Error on OS X Yosemite 10.10.5

Author: , November 24th, 2022

PROBLEM: Unable to sign out of iCloud on OSX Yosemite or disable Keychain SOLUTION: Delete the following, then reboot:

How To Remove the Last Page of a PDF Using Convert

Author: , August 3rd, 2020

How To Empty the Cache in Prometheus Using Curl

Author: , May 7th, 2020

I wanted to empty the time series data cache from the Prometheus server to start clean. The best practice is to use the administrative HTTP API via curl. For example, to clear all data for job mysqld as defined in the prometheus.yml configuration file:

If you want to delete ALL data from Prometheus, then […]

How to Remove Skype for Mac

Author: , March 27th, 2020

Quit Skype From your Applications folder, drag the Skype icon into the Trash In the top Finder menu, select Go -> Go to Folder… or press Shift-Command-G to bring up the “Go to the folder” prompt Open ~/Library/Application Support and drag “Skype Helper” to the Trash Open ~/Library/Application Support/Microsoft and drag “Skype for Desktop” to […]

How To Remove the MacOS Quarantine Extended File Attribute for an Entire Directory Tree

Author: , November 24th, 2019

xattr -r -d com.apple.quarantine {dirname} ~or~ xattr -r -d com.apple.quarantine *

How To Remove A File From The git Staging Pre-Commit List

Author: , May 31st, 2019

Quickref: How to Remove a file from the staging area

The Story Recently, I accidentally added some files to git’s pre-commit phase, i.e.:

For example, here is how to handle the above situation:

To better understand, here are the phases/states/stages that git uses: Untracked – when a file is first created, git […]

How To Remove a Package Without the Dependencies (yum/rpm)

Author: , January 9th, 2018

To remove a specific package without its dependencies use rpm:

As always, YMMV!

How To Remove 802.1X Profiles in MacOSX Lion

Author: , August 22nd, 2013

In Terminal:

Then reboot. YMMV… This is why I am so upset with Apple these days – they constantly “dumb-down” MacOSX, removing features to “protect” the innocent public from harming themselves with the click of a mouse. Perfectly reasonable advanced features that existed in 10.6.8 are no-where to be found in 10.7 Lion (bad) […]

How To Delete a Branch from a Remote Repo in GIT

Author: , November 21st, 2012

Do it locally:

Deleted branch yourBranchName (was 340c10d). Do it remotely, and please note the : below! (replace origin with your repo, if different)

To git.yourServer.com:/repos/yourProject.git – [deleted] yourBranchName