Skip to content

Instantly share code, notes, and snippets.

View pedzed's full-sized avatar

Ped pedzed

  • The Netherlands
  • 14:12 (UTC +02:00)
View GitHub Profile
@pedzed
pedzed / Jasmine-and-Babel6.md
Last active August 25, 2016 16:03 — forked from mauvm/Jasmine-and-Babel6.md
Jasmine ES6 run script for use with Babel 6
npm i -D jasmine babel-cli babel-preset-es2015 babel-watch

.babelrc:

{
  "presets": [
 "es2015"
@pedzed
pedzed / 5000_00_00_000000_create_foreign_keys.php
Created October 28, 2018 16:35
Laravel Foreign Keys Migration
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateForeignKeys extends Migration
{
/**
* A list of foreign keys.
@pedzed
pedzed / brilliant_nec_codes.md
Last active September 2, 2025 11:25
Brilliant Mazzaro/Salerno Ceiling Light/Fan remote IR NEC codes

Preface

Smart home appliances become increasingly more common and it becomes more difficult to manage multiple remotes and interfaces. Furthermore, what if your proprietary remote breaks?

I wanted to intercept the remote communication of the Brilliant Mazzaro and use an alternative transmitter to the remote that comes with the product. With success, I document hereby my findings.

Brilliant Mazzaro NEC IR codes

The remote uses the NEC protocol, which is based on infrared technology. If you want to dive deep into the technicalities, I found this article on infrared communications and the NEC protocol. For most people however, the following table suffices. Use an app that accepts these codes or use a library to write your own transmitter.