Remove NodeJS installed from pkg:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom \
| while read i; do
sudo rm /usr/local/${i}
done
sudo rm -rf /usr/local/lib/node \
/usr/local/lib/node_modules \
/var/db/receipts/org.nodejs.*
# Delete all object versions from a bucket: | |
aws --output text s3api list-object-versions --bucket <your bucket> | grep -E "^VERSIONS" | awk '{print "aws s3api delete-object --bucket <your bucket> --key "$4" --version-id "$8";"}' | |
# Delete all deletion markers from a bucket: | |
aws --output text s3api list-object-versions --bucket <your bucket> | grep -E "^DELETEMARKERS" | awk '{print "aws s3api delete-object --bucket <your bucket> --key "$3" --version-id "$5";"}' | |
# Bucket size |
Remove NodeJS installed from pkg:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom \
| while read i; do
sudo rm /usr/local/${i}
done
sudo rm -rf /usr/local/lib/node \
/usr/local/lib/node_modules \
/var/db/receipts/org.nodejs.*
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
#!/bin/bash | |
TOPLEVEL=$(git rev-parse --show-toplevel) | |
ESLINT_CMD="${TOPLEVEL}/node_modules/.bin/eslint" | |
if [[ ! -x "$ESLINT_CMD" ]]; then | |
echo "\t\033[41mPlease install ESlint\033[0m (npm i --save --save-exact --dev eslint)" | |
exit 1 | |
fi | |
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$") |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
#!/bin/bash | |
function usage () { | |
echo "$0 [CA section name] [username]" | |
exit 1 | |
} | |
if [ $# -ne 2 ] | |
then | |
usage |
This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].
First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist | |
killall SystemUIServer |