Skip to content

Instantly share code, notes, and snippets.

@qcasey
qcasey / README.md
Last active April 30, 2024 12:26 — forked from mill1000/README.md
Headless A2DP Audio Streaming on Ubuntu / Debian for non-raspbian SBCs (ODROID, Orange Pi, Armbian, etc)

About

This gist will show how to setup a generic SBC Debian / Ubuntu install as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.

Motivation

This is forked from another gist specific to the Raspberry Pi on Stretch. A required package isn't in Ubuntu's repos, so in this gist we build it from scratch.

Tested to be working on Armbian/Ubuntu/Debian images of the Orange Pi Zero, ODROID XU4, ODROID N2, and Atomic Pi.

Prerequisites

@dgp
dgp / youtube api video category id list
Created June 11, 2015 05:57
youtube api video category id list
2 - Autos & Vehicles
1 - Film & Animation
10 - Music
15 - Pets & Animals
17 - Sports
18 - Short Movies
19 - Travel & Events
20 - Gaming
21 - Videoblogging
22 - People & Blogs
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active April 30, 2024 12:25
set -e, -u, -o, -x pipefail explanation
@olssonm
olssonm / macos-disable-resize
Last active April 30, 2024 12:23
Disable resizing of the macOS dock
defaults write com.apple.dock size-immutable -bool true; killall Dock
@ogrrd
ogrrd / dnsmasq on macOS.md
Last active April 30, 2024 12:23
Setup dnsmasq on macOS for developer DNS
@edokeh
edokeh / index.js
Last active April 30, 2024 12:22
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@alexishida
alexishida / nginx-config-auth-cert-ssl.md
Last active April 30, 2024 12:18
Tutorial to configure Nginx client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Original: https://gist.github.com/mtigas/952344

Convert SSL certificate from CRT format to PEM

openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
@cyriux
cyriux / Re-architect-your-batches-with-DDD-references.md
Last active April 30, 2024 12:17
Links of the conference talk Devoxx 2023
@nicktoumpelis
nicktoumpelis / repo-rinse.sh
Created April 23, 2014 13:00
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive