Skip to content

Instantly share code, notes, and snippets.

Laurent Constantin ragusa87

Block or report user

Report or block ragusa87

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ragusa87
ragusa87 / .gitlab-ci.dist.yml
Last active May 24, 2019 — 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).
View .gitlab-ci.dist.yml
image: moodlehq/moodle-php-apache:7.0-stretch
services:
- postgres:latest
cache:
paths:
- vendor/
- node_modules/
variables:
View gist:e6ef112f0830cd244a2a37a789b6f70c
### Keybase proof
I hereby claim:
* I am ragusa87 on github.
* I am ragusa87 (https://keybase.io/ragusa87) on keybase.
* I have a public key ASAbz7DA36ZJeEWBRGlwuGKPvYseNlSa9B4nMZIaQLGkDQo
To claim this, I am signing this object:
@ragusa87
ragusa87 / a2dp.py
Created Mar 28, 2019 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
View a2dp.py
#! /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 .
@ragusa87
ragusa87 / moodleclone.sh
Last active Apr 4, 2019
Liip clone moodle repo (private)
View moodleclone.sh
#!/bin/bash
set -xe
MOODLE_REPO=git@gitlab.liip.ch:elearning/moodle.git
MOODLE_CACHE=~/gitcaches/moodle.reference
MOODLE_ALTERNATE_REPO=git@gitlab.liip.ch:elearning/moodle-testmigration.git
MOODLE_ALTERNATE_REPO_NAME=test
if [[ $# -eq 0 ]]; then
echo "Entrez le nom de la branche client: [mdl31-tcs]: "
read branch
else
@ragusa87
ragusa87 / !Wrench
Last active Jul 27, 2018
Wrench passbolt tool
View docker-tools.sh
#!/bin/bash
#
# Create environement for development.
# docker script is inspired by https://github.com/jessfraz/dockerfiles
#
#
# 1 = docker name
@ragusa87
ragusa87 / index.php
Created May 6, 2017
Data transform "page_history" column of a CSV file
View index.php
<?php
/**
* @author Laurent Constantin
* Alter the 'page_history' column of a CSV file with emotions.
* A map between page number and emotion's name is required in a csv format.
*/
class WhatDoYouDo4Love
{
/**
@ragusa87
ragusa87 / StrokeFilter.php
Created Sep 12, 2016
LiipImagine Stroke filter
View StrokeFilter.php
<?php
namespace Generalmedia\AppBundle\Filter;
use Imagine\Image\ImageInterface;
use Imagine\Image\ImagineInterface;
use Imagine\Image\Palette\RGB;
use Imagine\Image\Point;
use Liip\ImagineBundle\Imagine\Filter\Loader\LoaderInterface;
View mysql-backup-gz-clean.sh
#!/bin/bash
# Backup Mysql database staring with "__apps", compress the dump.
# Olds backup are removed if they are older than X days
# LCO 2016-06-05
# Script based on http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/
MUSER="root"
MPASS="PASSWORD-GOES-HERE"
MHOST="localhost"
MYSQL="$(which mysql)"
@ragusa87
ragusa87 / pdfrotate.sh
Created Jul 29, 2015
Rotate pdf left with pdftk
View pdfrotate.sh
#!/bin/sh
if [ "$#" -ne 1 ]; then
echo "Usage: $0 filename"
exit 1;
fi
if [ ! -f $1 ]; then
echo "File not found!"
exit 2
fi
You can’t perform that action at this time.