Skip to content

Instantly share code, notes, and snippets.

View pedzed's full-sized avatar

Ped pedzed

  • The Netherlands
  • 15:59 (UTC +02:00)
View GitHub Profile
@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.

@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active October 13, 2025 22:25
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@aviskase
aviskase / Postman.desktop
Last active January 22, 2025 01:08
Install Postman
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
@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"
@mauvm
mauvm / Jasmine-and-Babel6.md
Created November 12, 2015 10:51
Jasmine ES6 run script for use with Babel 6
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine

.babelrc:

{
 "presets": ["es2015"]
<?php
/*
|--------------------------------------------------------------------------
| Max Upload File Size filter
|--------------------------------------------------------------------------
|
| Check if a user uploaded a file larger than the max size limit.
| This filter is used when we also use a CSRF filter and don't want
| to get a TokenMismatchException due to $_POST and $_GET being cleared.