Skip to content

Instantly share code, notes, and snippets.

View ragusa87's full-sized avatar

Laurent Constantin ragusa87

View GitHub Profile
@ragusa87
ragusa87 / .gitlab-ci.dist.yml
Last active May 6, 2021 19:50 — forked from Dagefoerde/.gitlab-ci.dist.yml
GitLab CI configuration for testing Moodle plugins using moodle-plugin-ci. Thanks to @danielneis who contributed a first version (cf. https://github.com/moodlerooms/moodle-plugin-ci/pull/36).
image: moodlehq/moodle-php-apache:7.0-stretch
services:
- postgres:latest
cache:
paths:
- vendor/
- node_modules/
variables:
@ragusa87
ragusa87 / a2dp.py
Created March 28, 2019 14:59 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3.6
"""
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
<?php
$this->get('ns.twig_mailer')->send(
'NSWebBundle:Mail:forgottenPassword.mail.twig',
$user->getEmail(),
array('user' => $user, 'token' => $token)
);