Skip to content

Instantly share code, notes, and snippets.

@raspberrypisig
raspberrypisig / api_ref.txt
Created June 11, 2022 12:11 — forked from samtherussell/api_ref.txt
Logitech SqueezeServer JSONRPC API
Squeezebox API
--------------
This document outlines the JSON RPC interface with a squeezeserver to control and obtain information about squeezeboxes.
JSON : JavaScript Object Notation
RPC : Remote Procedure Call
Uses POST requests sent to:
http://<squeezeserver_address>:9000/jsonrpc.js
@raspberrypisig
raspberrypisig / youtube-mp3.sh
Created June 11, 2022 11:47 — forked from jebog/youtube-mp3.sh
Download and Add Metadata to MP3 with Youtube-dl
youtube-dl -x --continue --add-metadata --embed-thumbnail --audio-format mp3 --audio-quality 0 --metadata-from-title="%(artist)s - %(title)s" --prefer-ffmpeg -o "%(title)s.%(ext)s" $1
@raspberrypisig
raspberrypisig / nginx.conf
Last active August 19, 2020 11:59 — forked from foxxyz/nginx.conf
Serve current directory via nginx
# Extremely basic development setup to serve the current directory at http://localhost:9001
# Start nginx in this directory with `nginx -p . -c nginx.conf`
# Stop nginx with `nginx -p . -s stop`
events {}
http {
# Serve files with correct mimetypes on OSX
# location may have to be adjusted depending on your OS and nginx install
include /usr/local/etc/nginx/mime.types;
@raspberrypisig
raspberrypisig / zsh-elapsed-time.md
Created June 24, 2020 08:12 — forked from knadh/zsh-elapsed-time.md
Elapsed and execution time for commands in ZSH

Elapsed and execution time display for commands in ZSH

Append this to your ~/.zshrc file.

function preexec() {
 timer=$(($(date +%s%0N)/1000000))
@raspberrypisig
raspberrypisig / clock.html
Created April 28, 2020 22:16 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >