Skip to content

Instantly share code, notes, and snippets.

View peterbrinck's full-sized avatar
🤔
 

Peter Brinck peterbrinck

🤔
 
View GitHub Profile
@peterbrinck
peterbrinck / moleculer-k8.md
Created December 14, 2020 08:16 — forked from tobydeh/moleculer-k8.md
Moleculer k8 depoyment

Create a cluster on GKE:

gcloud container clusters create backend --num-nodes=2 --machine-type n1-standard-4

Get credentials:

gcloud container clusters get-credentials backend

Build the docker image:

@peterbrinck
peterbrinck / EncryptedJson.php
Created October 22, 2020 11:30 — forked from Sammyjo20/EncryptedJson.php
EncryptedJson Cast
<?php
namespace App\Casts;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
class EncryptedJson implements CastsAttributes
{
/**
* Cast the given value.
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//