Skip to content

Instantly share code, notes, and snippets.

@egelev
egelev / connect_bluetooth_headphones.sh
Last active April 10, 2025 17:45
Connect bluetooth headphones on Ubuntu 18.04
#!/usr/bin/env bash
function get_headphones_index() {
echo $(pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}')
}
function get_headphones_mac_address() {
local temp=$(pacmd list-cards | grep bluez_card -C20 | grep 'device.string' | cut -d' ' -f 3)
temp="${temp%\"}"
temp="${temp#\"}"
@JLLeitschuh
JLLeitschuh / CVE-2019-19389-Ktor-CWE-113.md
Last active October 23, 2020 08:29
POC For: CVE-2019-19389
@nerdalert
nerdalert / gist:055f0562c90bd0796172
Last active March 14, 2017 07:34
Libnetwork Feature Parity

Libnetwork Feature Parity Testing/Tutorial with Existing Docker Networking

The following parameters are global options that are set via $DOCKER_OPTS variable typically in the file /etc/default/docker. Once you start the Docker daemon, if you want to modify any of those parameters it requires a restart of the daemon:

-b BRIDGE or --bridge=BRIDGE 
--bip=CIDR
--fixed-cidr 
--fixed-cidr-v6