Skip to content

Instantly share code, notes, and snippets.

View jfisbein's full-sized avatar

Joan jfisbein

View GitHub Profile
substitutions:
name: "buro-fan"
friendly_name: "Büro Ventilator"
comment: "Sonoff Ifan03 Ventilator (ESP01 1M)"
on_boot_light: ALWAYS_ON # or ALWAYS_OFF
spare_button_light_entity: "light.buro"
esphome:
name: $name
comment: $comment
@dakoctba
dakoctba / AppConfig.java
Last active August 15, 2024 07:34
Spring Boot + JDBI + Multiple Databases
import java.util.List;
import javax.sql.DataSource;
import org.jdbi.v3.core.Jdbi;
import org.jdbi.v3.core.mapper.RowMapper;
import org.jdbi.v3.core.spi.JdbiPlugin;
import org.jdbi.v3.sqlobject.SqlObjectPlugin;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
@jfisbein
jfisbein / install-oscam.sh
Last active May 12, 2024 08:59
install and update oscam on raspbian
#!/bin/bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
function install() {
@nandosola
nandosola / MLG-howto.md
Last active February 16, 2020 10:55
Málaga tips (from a local)

Moverse

A y desde el Centro

Alameda Principal y Plaza de la Merced son los puntos más céntricos accesibles por tte. público.

Metro

La Térmica está cerca de la estación de La Luz-La Paz. Para ir al centro, bájate en El Perchel (aka RENFE-María Zambrano) y camina hasta el centro (unos 20 min) o bien pilla el C2 o el 1 en la c/ Salitre y bájate en la parada de Pza. de La Merced.

@jfisbein
jfisbein / update-fritzbox-ssl.sh
Last active April 30, 2017 11:27
Script to update FritzBox ssl certificate
#!/bin/bash
FB_URL=""
SID=""
SID_FILE="/tmp/fb_sid"
function init() {
FB_URL="$1"
if [ ! -f $SID_FILE ]; then
@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active November 17, 2025 22:36
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

@rb2k
rb2k / gist:8372402
Last active October 14, 2025 10:50
A jenkins script to clean up workspaces on slaves
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
import hudson.node_monitors.*;
for (node in Jenkins.instance.nodes) {
@aras-p
aras-p / preprocessor_fun.h
Last active November 16, 2025 17:39
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@willurd
willurd / web-servers.md
Last active November 18, 2025 14:46
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@adamloving
adamloving / temporary-email-address-domains
Last active November 7, 2025 15:18
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com