Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafael Belvederese blvz

View GitHub Profile
@blvz
blvz / bluetooth-restart.sh
Last active Jul 20, 2021 — forked from thiagoghisi/bluetooth-restart.sh
Script for Mac OSX to Restart Bluetooth service & Reconnect all recently paired devices
View bluetooth-restart.sh
#!/usr/bin/env zsh
max_tries=3
devices=()
devices_ids=()
echo 'restarting bluetooth service.'
blueutil -p 0 && sleep 1 && blueutil -p 1
echo 'waiting bluetooth service to be restored.'
View QLTextFiles.sh
#!/bin/bash
curl -O https://github.com/whomwah/qlstephen/releases/download/1.4.2/QLStephen.qlgenerator.1.4.2.zip
unzip QLStephen.qlgenerator.1.4.2.zip
echo "Please enter your password when asked (the one sudo asks you for usuqlly). It's needed to copy some files to /Library/QuickLook"
sudo mv -f QLStephen.qlgenerator /Library/QuickLook
rm QLStephen.qlgenerator.1.4.2.zip
qlmanage -r