Skip to content

Instantly share code, notes, and snippets.

View jappievw's full-sized avatar
🏠
Working from home

Jasper van Wanrooy jappievw

🏠
Working from home
  • Rotterdam, The Netherlands
View GitHub Profile
@jappievw
jappievw / README.md
Last active January 31, 2023 11:05
The original Beamly SE4 - Simple Standard Service Endpoints
@jappievw
jappievw / LICENSE
Last active July 31, 2024 12:05
Boto3 Management Session with Refreshable Assume Role
MIT License
Copyright (c) 2018 Jasper van Wanrooy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@jappievw
jappievw / docker-compose.yml
Created December 21, 2017 12:20
`mysql_user` validation for different database engines
version: '3'
services:
mysql55:
image: mysql:5.5.58
ports:
- "3305:3306"
environment:
MYSQL_ROOT_PASSWORD: "root"
mysql56:
image: mysql:5.6.38
@jappievw
jappievw / demo.php
Last active December 15, 2015 09:29
Setting dynamic templates with Elastica
<?php
/**
* Gather some prerequisites.
*/
$es_client = new Elastica_Client(array('host' => '127.0.0.1', 'port' => 9200));
$es_index = $es_client->getIndex('yourindex');
$es_type = $es_index->getType('yourtype');
/**
* Initialize a mapping object.
@jappievw
jappievw / composer.rb
Created May 15, 2012 11:34
homebrew formula for composer.phar (http://packagist.org/about-composer)
require 'formula'
class Composer < Formula
head 'http://getcomposer.org/composer.phar'
homepage 'http://getcomposer.org'
def install
system "chmod a+x composer.phar"
system "mkdir -p #{prefix}/bin"
system "cp composer.phar #{prefix}/bin/composer"