type Customer {
id: ID!
email: String!
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: php:7.1 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- composer | |
script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Comment": "Applying the Saga pattern with AWS Lambda and Step Functions", | |
"StartAt": "BookHotel", | |
"States": { | |
"BookHotel": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:us-east-1:{AccountID}:function:lambda-saga-dev-book-hotel", | |
"Catch": [ | |
{ | |
"ErrorEquals": ["States.ALL"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dateMixin from './mixins/date'; | |
// Globally | |
Vue.mixin(dateMixin); |
I'd like to have a AWS lambda / event system that allows for a certain kind of flexability, here's what I need.
- Events come in via HTTP post webhook with headers and body
- Store
{headers, body}
in one mainevents
table where theevent
is named what the action is e.g. 'orderCreate', this acts as a ledger of events, with the main columnsname
,data
,created_at
. - I'd like to build up the state of individual object, in their own table so for
orders
a table would exist with that name the event of aorderCreated
the row is created and subsiquentorderDeleted
the row is deleted.
- Store
- I need a way to tap into this event and trigger some side-effect event, for instance if a
orderCreated
comes in to the system I also need to fire something when that comes in such asinvoiceCreated
I need a way to access the stream of all events and subscribe to theorderCreated
and fire ainvoiceCreated
which ideally should repeat this process all over again
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first we download the list of IP ranges from CloudFlare | |
wget https://www.cloudflare.com/ips-v4 | |
# set the security group ID | |
SG_ID="sg-00000000000000" | |
# iterate over the IP ranges in the downloaded file | |
# and allow access to ports 80 and 443 | |
while read p | |
do |
You can install the mcrypt PHP extension with homebrew
and use it with the standard PHP installation that comes with OS X.
Install mcrypt:
brew install mcrypt
Install the php extension -- this installs the whole php 5.5, but you can still use the system-provided one by default
Note: install the version compatible with whatever your OS X PHP version currently is (check with php -v
)
brew install homebrew/php/php55-mcrypt
- Recipes
- Anonymous GET access
- Anonymous GET access - match HTTP referrer
- Full access for specific IAM user/role
- GET/PUT/DELETE access to specific path within a bucket
- Restricted LIST & PUT/DELETE access to specific path within a bucket
- Full access (and S3 console) for specific IAM users
- Bucket and object delete deny
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.parsley.defaults = { | |
// basic data-api overridable properties here.. | |
inputs: 'input, textarea, select' // Default supported inputs. | |
, excluded: 'input[type=hidden], :disabled' // Do not validate input[type=hidden] & :disabled. | |
, trigger: false // $.Event() that will trigger validation. eg: keyup, change.. | |
, animate: true // fade in / fade out error messages | |
, animateDuration: 300 // fadein/fadout ms time | |
, focus: 'first' // 'fist'|'last'|'none' which error field would have focus first on form validation | |
, validationMinlength: 3 // If trigger validation specified, only if value.length > validationMinlength | |
, successClass: 'has-success' // Class name on each valid input |
NewerOlder