Skip to content

Instantly share code, notes, and snippets.

View Liozon's full-sized avatar

Julien Muggli Liozon

View GitHub Profile
@Grateful-J
Grateful-J / ikea-rodret_E2201_ZHA-Z2M_control-light.yaml
Last active February 6, 2025 11:10 — forked from damru/ikea-rodret_E2201_ZHA-Z2M_control-light.yaml
IKEA RODRET Dimmer Remote (E2201) - Z2M - Control Light
blueprint:
name: IKEA Rodret Dimmer (Zigbee2MQTT)
description: "## IKEA RODRET Dimmer remote (v1.2)
For use with Zigbee2MQTT (cf [MQTT](https://www.home-assistant.io/integrations/mqtt)
+ [Z2M addon](https://www.zigbee2mqtt.io/guide/installation/03_ha_addon.html)).
Available controls:
- Click the **on** or **off** buttons
- Click and hold the **on**/**off** buttons (optional)
- Double click the **on** or **off** buttons (optional)
- Triple click the **on** or **off** buttons (optional)
@Liozon
Liozon / Edge add-on badge.md
Last active September 18, 2024 06:07
Edge "Get the add-on" badge

Badge "Get it for Microsoft Edge"

Why ?

This is a custom made badge to add on websites or pages where you link your new extension or add-on for the new Edge. This custom badge "Get it for Microsoft Edge" was made since MS doesn't have an official one yet, other than "Get it from Microsoft".

Terms of use

Feel free to use it, but please give credit for the work, thank you !

Author: Julien Muggli

@Kahtaf
Kahtaf / index.js
Created September 15, 2020 14:37
Create a simple CORS proxy with Cloudflare Workers to bypass CORS restrictions in the browser. Perfect for local development.
/**
* Create a simple CORS proxy with Cloudflare Workers
* to bypass cors restrictions in the browser.
* Example Usage: https://<worker_subdomain>.workers.dev/https://postman-echo.com/get?foo1=bar1&foo2=bar2
*/
addEventListener('fetch', event =>
event.respondWith(handleRequest(event.request))
)
@hsiboy
hsiboy / breathe.ino
Created January 25, 2015 19:48
WS2811 - breathe demo for Peter Swanton
#include <FastLED.h>
// change these to match your hardware setup
#define LED_PIN 13 // hardware SPI pin SCK
#define NUM_LEDS 250
#define COLOR_ORDER RGB
#define LED_TYPE WS2811
#define MAX_BRIGHTNESS 255 // watch the power!
struct CRGB leds[NUM_LEDS];
@srsudar
srsudar / background.html
Created July 27, 2014 18:00
Pasting from the system clipboard using a Chrome extension.
<!DOCTYPE html>
<html>
<head>
<script src="background.js"></script>
</head>
<body>
<textarea id="sandbox"></textarea>
</body>
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active August 3, 2024 16:45
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>