Skip to content

Instantly share code, notes, and snippets.

live_config_reload: true
window:
opacity: 0.85
padding:
x: 18
y: 16
dynamic_padding: false
decorations: buttonless
@othmar52
othmar52 / symetrix2mqtt.py
Last active January 29, 2024 06:51
control symetrix audio device via mqtt
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
wrapper script for integrating symetrix audio devices into MQTT infrastructure
@see http://www.symetrix.co/repository/SymNet_cp.pdf
tested with OUTPUT ports/parameters of symetrix Jupiter 8
in this example you can control volume and mute states by publishing to those mqtt topics
@Ircama
Ircama / PT-P300BT.md
Last active June 14, 2024 18:30
Print to Brother PTP300BT from a computer

Printing to a Brother P-Touch Cube PT-P300BT label printer from a computer

Introduction

The Brother P-touch Cube PT-P300BT labelling machine is intended to be controlled from the official Brother P-touch Design&Print 2 app for Android and iOS devices, instead of from a computer.

This Gist provides small code revision and some additional scripts to the dogtopus/Pipfile one, which in turn is forked from the excellent stecman one, in order to print text labels via scripts on computers with different O.S. or subsystems.

The scripts are used to convert text labels to appropriate images compatible with 12mm width craft tapes like [TZe-131

@maitrungduc1410
maitrungduc1410 / create-vod-hls.sh
Last active May 16, 2024 11:02
Bash scripts to create VOD HLS stream with ffmpeg (Extended version)
#!/usr/bin/env bash
START_TIME=$SECONDS
set -e
echo "-----START GENERATING HLS STREAM-----"
# Usage create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1
# comment/add lines here to control which renditions would be created
renditions=(
@ernestkamara
ernestkamara / AdbCommands
Created June 26, 2018 08:42 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@anvk
anvk / psql_useful_stat_queries.sql
Last active June 14, 2024 12:50
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
@deviantony
deviantony / README.md
Last active February 20, 2024 15:22
Portainer HTTP API by example

DEPRECATION NOTICE

This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!

THE FOLLOWING DOCUMENTATION IS DEPRECATED

Please refer to the link above to get access to our updated API documentation and examples.

@s4y
s4y / capture_hls.md
Last active February 3, 2024 12:39
Capture an HLS stream from the beginning with ffmpeg
ffmpeg -live_start_index -99999 -i 'https://….m3u8' -c copy something.ts
@rrdelaney
rrdelaney / create-cluster.sh
Last active September 21, 2018 08:28
RethinkDB Cluster - Docker 1.12 Swarm Mode
docker network create -d overlay skynet
docker service create --name rethink-master --network skynet -p 8080:8080 rethinkdb rethinkdb --bind all
docker service create --name rethink-slave --mode global --mount type=bind,source=/var/lib/rethinkdb,target=/data --network skynet rethinkdb rethinkdb --bind all -j rethink-master
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE