I hereby claim:
- I am kublermdk on github.
- I am kublermdk (https://keybase.io/kublermdk) on keybase.
- I have a public key whose fingerprint is A4E7 8586 B2E9 C893 899E A0E6 C1C8 2A76 4A27 EB4F
To claim this, I am signing this object:
<?php | |
/** | |
* @link https://github.com/creocoder/yii2-flysystem | |
* @copyright Copyright (c) 2015 Alexander Kochetov | |
* @license http://opensource.org/licenses/BSD-3-Clause | |
* | |
* Updated by Michael Kubler @kublermdk to support VISIBILITY_NOT_SET by using the different Google Storage Adapter | |
*/ | |
namespace app\adaptors; |
<?php | |
namespace app\adaptors; | |
use Google\Cloud\Storage\Acl; | |
use League\Flysystem\AdapterInterface; | |
/** | |
* @package app\adaptors\GoogleStorageAdapter | |
* Updated by Michael Kubler @kublermdk to support VISIBILITY_NOT_SET |
<?php | |
include_once './vendor/autoload.php'; | |
use Stripe\ApiRequestor; | |
use Stripe\Stripe; | |
// --------------------------------------- | |
// Stripe Mock Setup | |
// --------------------------------------- |
#!/bin/bash | |
## ============================ | |
## Stripe Mock Install | |
## ============================ | |
# @license http://opensource.org/licenses/BSD-3-Clause | |
# The Go language is used for the Stripe Mock server | |
# Can't just run > "sudo apt-get install golang" | |
# The Ubuntu default is go v1.6 which isn't supported, you get an error about sort.Slice e.g: | |
# src/github.com/stripe/stripe-mock/server/server.go:478: undefined: sort.Slice |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// -------------------------------------------------- | |
// Example Google Cloud AutoML Prediction | |
// -------------------------------------------------- | |
// @author Michael Kubler | |
// @date 2020-10-07th | |
// This is a cut down gist of what you need to | |
// make a Google Cloud AutoML (Auto Machine Learning) | |
// prediction request, based off an already uploaded |
// ----------------------------------------------------------------- | |
// Applying aggregation pipeline #1 Customer - HAVE | |
// ----------------------------------------------------------------- | |
db.command({ | |
"aggregate": "app.customer", | |
"pipeline": [{ | |
"$match": { | |
"$and": [{ | |
// -- Ensure the customers we are selecting are active and have a Firebase token so we can send them a push notification | |
"status": "active", |
{ | |
"customer": { | |
"_id": "5eb3d000af2f5c073c089cd2", // ObjectId | |
"name": "Michael Kubler", | |
"dateOfBirth": 467683200, // Unix time | |
"state": "SA", | |
"gender": "male", | |
"status": "active", | |
"createdAt": 1588760101, // Unix time | |
"updatedAt": 1588760914 // Unix time |
<?php | |
/** | |
* @return string database name | |
*/ | |
function getDefaultDatabaseName($dsn) | |
{ | |
if (preg_match('/^mongodb(:|\+srv:)\\/\\/.+\\/([^?&]+)/s', $dsn, $matches)) { | |
// Updated Pattern: /^mongodb(:|\+srv:)\\/\\/.+\\/([^?&]+)/s | |
// Original Pattern: '/^mongodb:\\/\\/.+\\/([^?&]+)/s' |