Skip to content

Instantly share code, notes, and snippets.

@Alkarex
Alkarex / stop-visibility-tracking.user.js
Last active December 26, 2024 04:57
Greasemonkey user script to stop Web page visibility tracking (e.g. forcing a video to stop if its tab is not in focus)
// ==UserScript==
// @name Stop visibility tracking
// @namespace https://alexandre.alapetite.fr/
// @description Stop Web page visibility tracking (e.g. forcing a video to stop if its tab is not in focus)
// @version 1.0
// @grant none
// @match https://example.net/*
// ==/UserScript==
//NB: You should manually add the Web sites you want to target in your user-specific inclusion list.
@Alkarex
Alkarex / decodeAxioma.js
Last active July 26, 2024 07:23
Node-RED function to decode Axioma water meter payloads.
/* jshint esversion:6, bitwise:false, node:true, strict:true */
/* globals msg */
"use strict";
/**
* Node-RED function to decode Axioma water meter payloads.
* Example assuming that msg.req.body contains an HTTP POST callback from The Things Networks.
*/
function statusAxiomaShort(s) {
const messages = [];
@Alkarex
Alkarex / package_rfduino166_index.json
Last active October 18, 2022 21:16
RFduino Board Manager
{
"packages":[
{
"name":"RFduino",
"maintainer":"RFduino",
"websiteURL":"https://github.com/RFduino/RFduino",
"email":"[email protected]",
"help":{
"online":"https://github.com/RFduino/RFduino"
},
@drkdelaney
drkdelaney / .drive_global_blacklist.filter
Created December 2, 2019 20:16
A blacklist for Synology folders and files.
[Version]
major = 1
minor = 1
[Common]
@usmansaleem
usmansaleem / sample_multiline.yml
Created September 4, 2017 23:03
multiline docker environment variable (via docker compose)
environment:
SERVER_NAME: "myserver.doma.in"
# Dummy key, cert
SSL_KEY: |-
-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQD272jYrLm8Ph5QpMWFcWUO9Ua1EviykalP+tkMIg12yZ3GvezF
y8aayxdztB5vu68jqMeg6mOJlscWqFUhmAxj4mDknYenVzVX2CKzCgHlGninTKxY
61rXDaDZVpSZ+XIESJkaB0z9HHYtrSLr0coKmq4cT5TRptOnkpDlJxIRaQIDAQAB
AoGATcTYoGTFmiN2KK+8BWrRCQT2X9C5woNdb3LxKIEQ/HhC2HS4PRMQWW/c0vPH
IilZ30EoneUztAFochpRtWLNg4lJoLy04X/eNjEiC/imp0KSwWXmnuLhDcWcb0+M
@esperlu
esperlu / mysql2sqlite.sh
Created April 27, 2011 05:46
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite