Skip to content

Instantly share code, notes, and snippets.

View bitkill's full-sized avatar
🍉

Rui Fernandes bitkill

🍉
View GitHub Profile
@egelev
egelev / connect_bluetooth_headphones.sh
Last active April 26, 2024 14:14
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#\"}"
@Lewiscowles1986
Lewiscowles1986 / rPi3-php7-setup.sh
Last active November 8, 2019 00:17
Raspberry Pi PHP7, Nginx 1.9 Installer
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
apt-get update -y
apt-get upgrade -y
apt-get dist-upgrade -y