Skip to content

Instantly share code, notes, and snippets.

View decima's full-sized avatar
🐙
Lecturing

decima

🐙
Lecturing
View GitHub Profile
@decima
decima / freebox.remote.yaml
Created August 16, 2022 14:06
Home assistant freebox script
alias: freebox.remote
fields:
cmd:
description: cmd to send
example: RIGHT
required: true
selector:
select:
options: ['RIGHT', 'LEFT', 'DOWN', 'UP', 'HOME', 'CENTER', 'ASSISTANT', 'BACK', 'SERVICE_FREE', 'SERVICE_NETFLIX', 'SERVICE_PRIME', 'SERVICE_CANAL', 'SERVICE_DISNEY', 'AUDIO_MUTE', 'AUDIO_UP', 'AUDIO_DOWN', 'P_PLUS', 'P_MINUS', 'NUM_0', 'NUM_1', 'NUM_2', 'NUM_3', 'NUM_4', 'NUM_5', 'NUM_6', 'NUM_7', 'NUM_8', 'NUM_9', 'POWER']
entity:
@decima
decima / phpstorm.yml
Created November 8, 2021 11:36
PHP Storm using docker.
version: "3.7"
services:
projector:
image: registry.jetbrains.team/p/prj/containers/projector-phpstorm
ports:
- 8887:8887
volumes:
- ./data:/home/projector-user
@decima
decima / Recette_cookies_louis.md
Last active December 14, 2022 08:52
Recette des cookies de Louis

Recette des cookies de Louis

Pour 20 cookies:

  • 125g beurre
  • 150g vergeoise
  • 1 œuf
  • 175g de farine
  • Un peu de levure chimique
  • Chocolat (100g)
@decima
decima / Databases with docker-compose
Last active October 23, 2023 19:31
Docker-compose for databases
Here is a curated list of docker-compose for some databases I use.
@decima
decima / resetCSS.css
Last active August 20, 2021 08:00
Reset CSS - the simple way.
body *{
all: unset;
}
@decima
decima / mercure.compose.yml
Last active February 28, 2024 12:43
Mercure simple development environment with docker
version: "3.7"
services:
mercure:
image: dunglas/mercure
environment:
MERCURE_PUBLISHER_JWT_KEY: 'changeme'
MERCURE_SUBSCRIBER_JWT_KEY: 'changeme'
SERVER_NAME: ":80"
MERCURE_EXTRA_DIRECTIVES: |-
cors_origins "http://127.0.0.1:8000"
@decima
decima / tutorial-screen.md
Last active December 4, 2019 14:37
How to use screen tutorial

Screen Tutorial

Outside of a screen

Launch a new screen session and enter in it

screen

See the list of screens

screen -ls
@decima
decima / ducks.sh
Last active May 1, 2024 16:26
Small CLI Tool which lists biggest top 10 files/folders
#!/bin/sh
du -hsx ${1:-.}/* | sort -rh | head -10
@decima
decima / generics.php
Last active September 29, 2018 18:25
First try to create generic types in php :3
<?php
// This is the hidden part ;-)
trait Generic
{
private $_T = null;
private $__generic_nullable = false;
private $__originalObject = null;
/**
composer create-project symfony/skeleton test_sf4
cd test_sf4
composer require requirements-checker
php -S 0.0.0.0:9999 public
then go to ip_of_the_server:9999/check.php