Skip to content

Instantly share code, notes, and snippets.

View ragusa87's full-sized avatar

Laurent Constantin ragusa87

View GitHub Profile
@ragusa87
ragusa87 / setTimeout.ts
Created September 27, 2023 15:29
Kwin script setTimeout (typescript) with QTimer
interface QTimer {
timeout: QSignal;
start(durationMs: number): void;
stop(): void;
}
declare interface QSignal {
connect(callback: any): void;
disconnect(callback: any): void;
}
@ragusa87
ragusa87 / Readme.md
Last active January 24, 2022 13:13
Laravel Custom email transport for api.swisscom.com

In your config/mail.php add this:

return [ // ..
      'swisscom_mail_api' => [
            'transport' => 'swisscom_mail_api',
            'api_key_map' => [
                config("emails.from_one") => env('MAIL_MESSAGING_API_KEY_FROM_ONE'),
                config("emails.from_two") => env('MAIL_MESSAGING_API_KEY_FROM_TWO'),
 ],
@ragusa87
ragusa87 / README.md
Last active February 1, 2022 17:27
Zigbee2MQTT Memo

Zigbee2MQTT on Raspberry PI 1

Check that everything is fine in the logs:

journalctl -u zigbee2mqtt -f

@ragusa87
ragusa87 / gist:d732cc94d2ecc1e1b7110bd86271464e
Last active April 21, 2023 09:40
Raspberry PI Control MPD with IR using Node (Configured for L336 remote control)
We couldn’t find that file to show.
@ragusa87
ragusa87 / VideoStream.php
Created November 12, 2019 21:34
Serve video via php -S
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
@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:
### 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 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 .
@ragusa87
ragusa87 / moodleclone.sh
Last active April 4, 2019 07:57
Liip clone moodle repo (private)
#!/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 July 27, 2018 13:52
Wrench passbolt tool
Wrench