Skip to content

Instantly share code, notes, and snippets.

View jacques's full-sized avatar
🎯
Focusing

Jacques Marneweck jacques

🎯
Focusing
View GitHub Profile
@jacques
jacques / outdated.txt
Created August 16, 2020 10:22
Plutus Gateway
amphp/amp v2.4.4 v2.5.0 A non-blocking concurrency framework for PHP applications.
amphp/byte-stream v1.7.3 v1.8.0 A stream abstraction to make working with non-blocking I/O simple.
beberlei/assert v2.9.9 v3.2.7 Thin assertion library for input validation in business models.
brianium/paratest 4.0.0 4.2.0 Parallel testing for PHP
colinmollenhour/credis 1.11.1 1.11.2 Credis is a lightweight interface to the Redis key-value store which wraps the phpredis library when available for better performance.
composer/package-versions-deprecated 1.8.0 1.10.99.1 Composer plugin that provides efficient querying for installed package versions (no runtime IO)
composer/semver 1.5.1 3.0.0 Semver library that offers utilities, version constra
@jacques
jacques / outdated.txt
Created July 27, 2020 07:05
Outdated packaged - booking system
amphp/amp v2.4.4 v2.5.0 A non-blocking concurrency framework for PHP applications.
amphp/byte-stream v1.7.3 v1.8.0 A stream abstraction to make working with non-blocking I/O simple.
beberlei/assert v2.9.9 v3.2.7 Thin assertion library for input validation in business models.
bensampo/laravel-enum v1.38.0 v2.1.0 Simple, extensible and powerful enumeration implementation for Laravel.
brick/varexporter 0.2.1 0.3.2 A powerful alternative to var_export(), which can export closures and objects without __set_s...
designsecurity/progpilot v0.6.0 v0.8.0 A Static Analyser for security
doctrine/collections 1.6.5 1.6.6 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/inf

Rough Slim 1.x / 2.x to 3.x migration

Very rough script to aid with migrating controllers presently from Slim 2.x to 3.x.

For 1.x move code to controllers first.

Rough Layout

src
@jacques
jacques / test.php
Last active February 8, 2019 09:31
SmartCall Wrapper to try bearer if bearer token has expired try and auth before retrying.
<?php declare(strict_types=1);
/**
* Smartcall auth experimentation.
*
* @author Jacques Marneweck <[email protected]>
* @copyright 2019 Jacques Marneweck. All rights strictly reserved.
*/
require_once __DIR__.'/vendor/autoload.php';
@jacques
jacques / install-redash.sh
Created August 16, 2018 23:20 — forked from DavidEdwards1/install-redash.sh
Install re:dash on smartOS
#!/bin/bash
#
# This script is an attempt to rewrite the Ubuntu setup script for Redash along with supervisor, nginx,
# PostgreSQL and Redis.
#
# This script is not idempotent and if it stops in the middle, you can't just run it again. You should either
# understand what parts of it to exclude or just start over on a new VM (assuming you're using a VM).
# This sets to immediately exit on a non-zero return status and also
# any unset Environment Variables are flagged as an error
/**
* Exports the Standard Two-Day Debit Order Service File
*/
$app->get('/admin/debitorders/:batch_id/exportgalaxy', $authenticate($app), $is_admin($app), function ($batch_id) use ($app, $dsns) {
$batch = $dsns['bank']->prepare("SELECT * FROM company_debitorder_batches WHERE id=?")->execute([$batch_id])->fetchRow();
/**
* Only batches which have been finalised can be exported.
*/
#if ($batch['processed_at'] == '0000-00-00 00:00:00') {
# die ("You cannot export a batch that is still open.");
@jacques
jacques / test.md
Created February 26, 2016 09:21
Test Env notes
Parameter Value
Routing: Receiving Institution 10000000001
@jacques
jacques / give to java devs.md
Created February 26, 2016 09:20
Plutus API Integration Notes for Developers
@jacques
jacques / s3.vcl
Created February 19, 2016 22:38 — forked from rezan/s3.vcl
Varnish AWS S3 Gateway VCL
#
# Varnish AWS S3 Gateway VCL
#
# Allows global read (GET, HEAD) and ACL protected writes (POST, PUT, DELETE).
# When writing, pass in Content-Type and Content-MD5, both are optional.
#
# Params:
#
# %BUCKET% - S3 bucket name, S3 host may be regional
# %ACCESS_ID% - IAM access ID for bucket
# Author: Aram Grigorian <[email protected]>
# https://github.com/aramg
# https://github.com/opendns
#
# By default, nginx will close upstream connections after every request.
# The upstream-keepalive module tries to remedy this by keeping a certain minimum number of
# persistent connections open at all times to upstreams. These connections are re-used for
# all requests, regardless of downstream connection source. There are options available
# for load balacing clients to the same upstreams more consistently.
# This is all designed around the reverse proxy case, which is nginxs main purpose.