Skip to content

Instantly share code, notes, and snippets.

@marklr
marklr / MultiRoom.sh
Created January 23, 2025 19:18 — forked from fhatz/MultiRoom.sh
Samsung Multiroom - Console client
#! /bin/bash
# Author: F. Hatz
# based on 'https://github.com/bacl/WAM_API_DOC'
# start with MultiRoom.sh search (search for speakers)
# or with MultiRoom.sh Speaker-IP UUID OBJECTID [OBJECTID OBJECTID ...] volume
# or with MultiRoom.sh Speaker-IP fav1/fav2/fav3/radio1/radio2/radio3 volume
# or with MultiRoom.sh Speaker-IP play/pause/stop (song: play/pause radio: stop)
# or with MultiRoom.sh Speaker-IP next/previous
# or with MultiRoom.sh Speaker-IP mute on/off
@marklr
marklr / blocked.sql
Created August 25, 2021 16:38 — forked from chmarr/blocked.sql
PostgreSQL query to display blocked and blocking queries. Updated from PG Wiki.
SELECT blocked_locks.pid AS blocked_pid,
blocked_activity.usename AS blocked_user,
now() - blocked_activity.query_start
AS blocked_duration,
blocking_locks.pid AS blocking_pid,
blocking_activity.usename AS blocking_user,
now() - blocking_activity.query_start
AS blocking_duration,
blocked_activity.query AS blocked_statement,
blocking_activity.query AS blocking_statement
@marklr
marklr / nginx.conf
Created April 25, 2017 11:43
Lua Preproc
http {
# ...
# 51Degrees data file; should be updated regularly.
51D_filePath /data/51Degrees-PremiumV3_2.dat;
51D_cache 0; # crucial - otherwise crashes might occur
lua_need_request_body on;
upstream backend {
least_conn;
keepalive 32;