I hereby claim:
- I am dconroy on github.
- I am dconroy (https://keybase.io/dconroy) on keybase.
- I have a public key ASDEjtLS6YGRin8_qJx4KFfw-iUO76slOP7JrXFA5SjQwgo
To claim this, I am signing this object:
#!/bin/bash | |
docker stop $(docker ps -aq) | |
docker rm $(docker ps -a -q) |
#!/bin/bash | |
docker stop $(docker ps -aq) | |
docker rm $(docker ps -a -q) | |
docker rmi -f $(docker images -q) |
CREATE ROLE readonlyaccess; | |
--access to existing tables | |
GRANT USAGE ON SCHEMA public TO readonlyaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readonlyaccess; | |
--acess to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readonlyaccess; | |
--create new readonlyuser with readaccess privileges | |
CREATE USER readonlyuser WITH PASSWORD '******************'; | |
GRANT readonlyaccess TO readonlyuser; | |
--take away create table privileges, except from superusers |
#!/bin/bash | |
# invalidate cache in cloudfront | |
# usage ./invalidate-cloudfront-cache.sh ASDA1243123112D | |
aws cloudfront create-invalidation \ | |
--distribution-id $1 \ | |
--paths "/*" |
from __future__ import print_function | |
from boto3.session import Session | |
import time | |
import json | |
import urllib | |
import boto3 | |
import botocore | |
import traceback | |
print('Loading function') |
dconroy@08f3e39c7104 ~/Desktop/tegula/examples master ● node test.js | |
/Users/dconroy/Desktop/tegula/node_modules/ipfs-block-service/src/index.js:64 | |
this._repo.blocks.put(block, callback) | |
^ | |
TypeError: Cannot read property 'put' of undefined | |
at BlockService.put (/Users/dconroy/Desktop/tegula/node_modules/ipfs-block-service/src/index.js:64:25) | |
at waterfall (/Users/dconroy/Desktop/tegula/node_modules/ipld/src/index.js:387:28) | |
at nextTask (/Users/dconroy/Desktop/tegula/node_modules/async/waterfall.js:16:14) | |
at next (/Users/dconroy/Desktop/tegula/node_modules/async/waterfall.js:23:9) |
for number in range(1,101): | |
output = str(number) | |
if number % 3 == 0: | |
output = 'Crackle' | |
if number % 5 == 0: | |
output = 'Pop' | |
if number % 3 == 0 and number % 5 == 0: | |
output = 'CracklePop' | |
print (output) |
I hereby claim:
To claim this, I am signing this object:
var rekognition = new AWS.Rekognition({apiVersion: '2016-06-27'}); | |
var params = { | |
Image: { /* required */ | |
S3Object: { | |
Bucket: 'street-art-uploads', | |
Name: 'sam.png' | |
} | |
}, | |
MinConfidence: '50' |