type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
from datetime import datetime | |
import os | |
import re | |
import sys | |
import matplotlib.pyplot as plt | |
USER = "ajoy" | |
DIRNAME = 'pgn/' |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
#!/bin/bash | |
TABLE_NAME=$1 | |
# Get id list | |
aws dynamodb scan --table-name $TABLE_NAME | grep ID | awk '{ print $2 }' > /tmp/truncate.list | |
# Delete from id list | |
cat /tmp/truncate.list | xargs -IID aws dynamodb delete-item --table-name $TABLE_NAME --key '{ "id": { "S": "ID" }}' |