This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Find - In-line search highlighter | |
// @namespace https://wol.ph | |
// @version 1.2 | |
// @description Automatic javascript in-page search and highlight | |
// @author wolph | |
// @grant GM_addStyle | |
// @grant GM_unsafeWindow | |
// @grant GM_getValue | |
// @grant GM_setValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ibood old prices | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description add prices to old/expired ibood deals | |
// @author You | |
// @match https://www.ibood.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ActiveTable - a bookmarklet to make tables sortable and editable | |
function init() { | |
var aHrows = getHrows(); | |
var numHrows = aHrows.length; | |
var aHidden = getHiddenColumns(); | |
ATpopup = document.createElement("div"); | |
ATpopup.style.cssText = "position: absolute; visibility: hidden; padding: 0; font-family: Arial; background-color: rgba(255, 255, 255, 0.9); border-radius: .5em; text-align: center; box-shadow: .05em .05em .5em #00C;"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream sonarr { | |
server 127.0.0.1:1234; | |
} | |
server { | |
server_name sonarr; | |
include includes.d/restricted.conf; | |
include includes.d/ssl_server.conf; | |
include includes.d/proxy.conf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set ft=dosini: | |
# Supervisord config for the barman exporter | |
[program:barman_exporter] | |
environment=PATH=/usr/local/bin:%(ENV_PATH)s | |
command=/usr/local/bin/env python3 /var/barman/barman_exporter.py | |
user=barman | |
autostart=true | |
stopasgroup=true | |
killasgroup=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import enum | |
import types | |
import aioudp | |
import struct | |
import asyncio | |
import blessings | |
from datetime import datetime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
// Uses https://github.com/PaulStoffregen/TimerOne for sending on a regular interval | |
#include <TimerOne.h> | |
// ECHO pin, needs to be a pin that supports interrupts! | |
#define ULTRASONIC_PIN_INPUT 2 | |
// TRIG pin, can be any output pin | |
#define ULTRASONIC_PIN_OUTPUT 3 | |
// update interval, make sure to keep it above 20ms | |
#define ULTRASONIC_TIMER_US 50000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - alias: close curtains | |
# trigger: | |
# - event: sunset | |
# platform: sun | |
# condition: [] | |
# action: | |
# - data: | |
# entity_id: cover.qubino_zmnhod1_flush_shutter_dc_level | |
# service: automation.turn_off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def read(fh, timeout=0): | |
output = [] | |
while select.select([fh], [], [], timeout)[0]: | |
output.append(fh.read(1)) | |
return ''.join(output) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import os | |
import shutil | |
import subprocess | |
def get_width(default=80): | |
'''Attempt to detect console width and default to 80''' |