Skip to content

Instantly share code, notes, and snippets.

View oriolclosa's full-sized avatar

Oriol Closa oriolclosa

View GitHub Profile
blueprint:
name: deCONZ - IKEA SOMRIG shortcut button
domain: automation
input:
remote:
name: Remote
description: The remote that will control the lights
selector:
device:
integration: deconz
@oriolclosa
oriolclosa / bibliography.tex
Created May 26, 2020 16:44
LaTeX ISO-690 bibliography
\usepackage[backend=biber, style=iso-numeric, sorting=none, bibencoding=UTF8]{biblatex}
\let\oldcite\cite
\renewcommand*\cite[1]{\textsuperscript{\oldcite{#1}}}
\usepackage{listingsutf8}
\lstset{
basicstyle=\small\ttfamily,
numbers=left,
stepnumber=1,
columns=flexible,
inputencoding=utf8,
@oriolclosa
oriolclosa / deploy-testing.sh
Last active June 21, 2018 16:54
Autodeploy GitHub Node projects
#!/bin/bash
echo `date`" Checking for new version..." >> result-deploy.log
git pull > result-git.log
OK=`cat result-git.log | grep "Already up-to-date."`
if [[ $OK == "" ]]; then
npm run dist > result-npm.log
OK=`cat result-npm.log | grep "Success!"`
if [[ $OK != "" ]]; then
rm -rf web/testing-OLD > /dev/null 2>&1
mv web/testing web/testing-OLD > /dev/null 2>&1