Check the setting:
SELECT * FROM pg_settings WHERE name = 'log_min_duration_statement';
Change the setting:
SET log_min_duration_statement TO 1000;
>
kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all |
require 'optparse' | |
require 'yaml' | |
require 'base64' | |
options = { | |
config_path: File.join(ENV['HOME'], '.kube', 'config'), | |
write_dir: File.join(ENV['HOME'], '.kube') | |
} | |
OptionParser.new do |opts| |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
#!/bin/sh | |
docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t |
brew reinstall postgresql | |
/usr/local/bin/pg_config | grep bin | |
export PATH=$PATH:/usr/local/Cellar/postgresql/12.3_4/bin/ | |
env LDFLAGS='-L/usr/local/lib -L/usr/local/opt/openssl/lib | |
-L/usr/local/opt/readline/lib' pip install psycopg2 | |
### references | |
https://stackoverflow.com/questions/9678408/cant-install-psycopg2-with-pip-in-virtualenv-on-mac-os-x-10-7/30428829 | |
https://stackoverflow.com/questions/33866695/install-psycopg2-on-mac-osx-10-9-5 |
{ | |
"AuthParameters" : { | |
"USERNAME" : "[email protected]", | |
"PASSWORD" : "mysecret" | |
}, | |
"AuthFlow" : "USER_PASSWORD_AUTH", | |
"ClientId" : "9..............." | |
} |
export AWS_DEFAULT_REGION=ap-northeast-1
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \
awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: