Skip to content

Instantly share code, notes, and snippets.

View robinvdvleuten's full-sized avatar
🚀

Robin van der Vleuten robinvdvleuten

🚀
View GitHub Profile
@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',
@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 / 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 / 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 / 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 / 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}")
#!/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
SUMMARY
I like to use kcachegrind for doing profiling on my ruby code. Most of my development
is done on OSX, and while you can install kcachegrind via macports, it takes forever
because it has to build KDE, as well. Much to my surprise, the fine folks who
wrote kcachegrind also made a QT version, qcachegrind. I was able to build this on
OSX without too much effort, only having to install QT and GraphViz. Yippie!
I'm running OSX 10.6.7, with Xcode 4. My default gcc/g++ version is 4.2. I'm sure
it will build just fine on earlier versions of Xcode, but I haven't tested it.
@robinvdvleuten
robinvdvleuten / gist:1986616
Created March 6, 2012 14:38
From A till Z in PHP
<?php
range('a', 'z');
?>
@robinvdvleuten
robinvdvleuten / gist:1948620
Created March 1, 2012 09:50
Update Drupal modules in svn with Drush
drush pm-update --svnsync --svncommit [module name]