Skip to content

Instantly share code, notes, and snippets.

View jegade's full-sized avatar

Jens Gassmann jegade

  • 13:41 (UTC +02:00)
View GitHub Profile
@Ovid
Ovid / decribe-image.pl
Created October 5, 2024 11:12
Use generative AI to describe images
#!/usr/bin/env perl
use v5.40.0;
use warnings;
package Image::Describe::OpenAI;
use Carp;
use OpenAPI::Client::OpenAI;
use Path::Tiny qw(path);
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 February 23, 2025 15:54
Print to Brother PTP300BT from a computer
@maitrungduc1410
maitrungduc1410 / create-vod-hls.sh
Last active April 12, 2025 01:00
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 February 17, 2025 18:48
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 September 4, 2024 02:41
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 July 23, 2024 22:02
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