Skip to content

Instantly share code, notes, and snippets.

View ekkinox's full-sized avatar
:octocat:
Working from home

Jonathan Vuillemin ekkinox

:octocat:
Working from home
View GitHub Profile
@ekkinox
ekkinox / main.go
Created October 21, 2024 10:04
JWX
package main
import (
"encoding/json"
"fmt"
"os"
"time"
"github.com/lestrrat-go/jwx/v2/jwa"
"github.com/lestrrat-go/jwx/v2/jwk"
@ekkinox
ekkinox / composer.json
Created October 9, 2024 13:26
OTEL Noop
{
"name": "jonathan/sandbox",
"require": {
"slim/slim": "^4.14",
"slim/psr7": "^1.7",
"monolog/monolog": "^3.7",
"open-telemetry/opentelemetry-logger-monolog": "^1.0",
"open-telemetry/sdk": "^1.1",
"open-telemetry/exporter-otlp": "^1.1",
"symfony/http-client": "^7.1",
@ekkinox
ekkinox / k8s-tmp.yaml
Created August 8, 2024 14:10
k8s-tmp.yaml
---
apiVersion: v1
kind: Namespace
metadata:
name: demo
labels:
istio-injection: enabled
---
apiVersion: v1
kind: Service
<?php
namespace App\Security;
use OAT\Library\Lti1p3Core\Message\Launch\Validator\Result\LaunchValidationResultInterface;
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
class LtiBadge implements BadgeInterface
{
/** @var LaunchValidationResultInterface */
@ekkinox
ekkinox / ScoreClient.php
Last active July 15, 2021 19:09
AGS score client from AGS claim
<?php
/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; under version 2
* of the License (non-upgradable).
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// opacity
opacity: 0.95,
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Jose\Component\Core\JWK;
use Jose\Component\Core\JWKSet;
use Jose\Easy\Build;
use Jose\Easy\Load;
use Jose\Component\KeyManagement\JWKFactory;
Some ideas for backend
# Approach
- BDD (DDD ?)
- obviously respect of PSR for open source visibility (ease contributions form any level)
# About Symfony usage
- very strong community
- well maintained and documented ready to use core/components (auth, rendering, console, etc)
- PSR standards implementations (even PSR7 if needed)
ZSH_THEME="nox"
plugins=(git composer docker-compose docker github go golang gulp history man npm sudo symfony2 yarn)
alias lll="ls -al"
alias composer='/usr/local/bin/composer.phar'
alias cdprojects="cd /home/nox/Dev/Projects/"
alias docker-stop-all="docker stop $(docker ps -a -q)"
alias docker-rm-all="docker rm $(docker ps -a -q)"
alias docker-rmi-all="docker rmi $(docker images -q)"
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT='${ret_status} %{$fg[cyan]%}%d%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"