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
<?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]%})"
<touchégg>
<settings>
<property name="composed_gestures_time">0</property>
</settings>
<application name="All">
<gesture type="DRAG" fingers="4" direction="LEFT">
@ekkinox
ekkinox / MagicThree.php
Created November 3, 2017 11:18
Magic three
<?php
class MagicThreeResolver
{
/**
* @param array $numbers
*
* @return bool
*/
public function resolve(array $numbers)
SSL keys and certificates were not found.
Assuming that the container is running behind a HTTPS enabled load balancer.
Updating CA certificates...
Waiting for database server to accept connections
Starting supervisord...
2015-05-19 12:59:07,239 CRIT Supervisor running as root (no user in config file)
2015-05-19 12:59:07,239 WARN Included extra file "/etc/supervisor/conf.d/sidekiq.conf" during parsing
2015-05-19 12:59:07,239 WARN Included extra file "/etc/supervisor/conf.d/sshd.conf" during parsing
2015-05-19 12:59:07,239 WARN Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
2015-05-19 12:59:07,239 WARN Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing