Skip to content

Instantly share code, notes, and snippets.

View gvasquez95's full-sized avatar
😉

Gonzalo Vasquez gvasquez95

😉
  • Amazon Web Services
  • Santiago, Chile
View GitHub Profile
@gvasquez95
gvasquez95 / bucket-policy.json
Created April 26, 2020 19:28
Sample S3 Bucket policy to restrict IP addresses
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPermStaticsAXK",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<my-bucket-fqdn>/*",
"Condition": {
@gvasquez95
gvasquez95 / FullSizeRender.jpg
Last active July 1, 2018 01:58
ACloud.guru Certified Solutions Associate Course on iPhone shows Certified Developer Associate related content
FullSizeRender.jpg
SQL:
SELECT 'ALTER TABLE '
|| table_name
|| ' DISABLE TRIGGER ALL;'
FROM information_schema.TABLES
WHERE table_catalog = 'waypoint';
OUTPUT ROWS:
ALTER TABLE pg_type DISABLE TRIGGER ALL;