Skip to content

Instantly share code, notes, and snippets.

View robinvdvleuten's full-sized avatar
🚀

Robin van der Vleuten robinvdvleuten

🚀
View GitHub Profile
#!/bin/sh
# ./bin/behat-ci.sh
project_dir=$(dirname $(readlink -f $0))"/.."
logs_path=${1:-"./build/logs/behat"}
reports_path=${2:-"./build/behat"}
cd $project_dir
@robinvdvleuten
robinvdvleuten / gist:7596693
Created November 22, 2013 08:31
Useful Docker commands
# Remove all stopped containers.
docker rm $(docker ps -a -q)
# Remove all untagged images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
@robinvdvleuten
robinvdvleuten / hapijs-rest-api-tutorial.md
Last active September 17, 2015 11:52 — forked from agendor/hapijs-rest-api-tutorial.md
A practical introduction to building a RESTful API with the hapi.js server framework for Node.js
@robinvdvleuten
robinvdvleuten / new-router-examples.md
Created October 21, 2015 10:39 — forked from machty/new-router-examples.md
How to do cool stuff with the new Router API
@robinvdvleuten
robinvdvleuten / HelloWorld.jsx
Last active March 10, 2016 16:17
HelloWorld.jsx
import React, { Component, PropTypes } from 'react';
class HelloWorld extends Component {
render() {
return (<div>Hello, {this.props.name}!</div>);
}
}
HelloWorld.propTypes = {
name: PropTypes.string.isRequired,
@robinvdvleuten
robinvdvleuten / lambda-helloWorld.js
Last active March 22, 2023 12:49
Sample "Hello, World!" Lambda function
/**
* Very simple Lambda which just returns a string on invocation.
*/
exports.handler = function(event, context) {
context.succeed('Hello, World!');
};
@robinvdvleuten
robinvdvleuten / lambda-helloWorld.php
Last active September 6, 2024 13:19
Invoke sample Lambda function through PHP
<?php
require_once __DIR__.'/vendor/autoload.php';
use Aws\Lambda\LambdaClient;
$client = LambdaClient::factory([
'version' => 'latest',
// The region where you have created your Lambda
'region' => 'eu-west-1',

Keybase proof

I hereby claim:

  • I am robinvdvleuten on github.
  • I am robinvdvleuten (https://keybase.io/robinvdvleuten) on keybase.
  • I have a public key ASArf4GdyA_UfDxuq4-m9lZLwoj8JBNhut8x_eFzL-vKwwo

To claim this, I am signing this object:

import React from 'react';
const Application = (props) => (
<div>Hello, {props.name}!</div>
);
export default Application;
<html>
<head>
<meta charset="utf-8">
<title>php-react-lamda-example</title>
</head>
<body>
<div id="root"></div>
<script>
window.__INITIAL_PAYLOAD__ = { name: "World" };
</script>