Skip to content

Instantly share code, notes, and snippets.

View QuaCKeReD's full-sized avatar

Mark Kelly-Smith QuaCKeReD

View GitHub Profile
@QuaCKeReD
QuaCKeReD / new note.md
Last active June 12, 2022 18:46
Templater based workflow for creating new notes - Reason: I was fed up of having to select 5 different combinations of metadata, some combinations of which were not valid

<%* tpOptionsList = await tp.file.include('[[noteYamlOptions]]') || '' tpOptions = tpOptionsList.split('\n') || ''

tpOptionChosen = await tp.system.suggester(tpOptions, tpOptions, false, "Select option") || ''

tpOptionChosenArea = tpOptionChosen.toString().split(',')[0] || '' tpOptionChosenCompany = tpOptionChosen.toString().split(',')[1] || '' tpOptionChosenClient = tpOptionChosen.toString().split(',')[2] || '' tpOptionChosenProject = tpOptionChosen.toString().split(',')[3] || ''

#!/bin/bash
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState -bool yes
sudo killall blued
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState -bool no
sudo launchctl start com.apple.blued
#!/bin/bash
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.blued.plist
sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.blued.plist
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sleep 1
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport

Keybase proof

I hereby claim:

  • I am QuaCKeReD on github.
  • I am quackered (https://keybase.io/quackered) on keybase.
  • I have a public key whose fingerprint is B38F 854E 379E 4D57 E4AD CDA5 803A 13B8 1B2E 1EFE

To claim this, I am signing this object:

@QuaCKeReD
QuaCKeReD / remove ._ files
Created May 17, 2013 16:18
Remove ._ files
find . -type f -size 4096c -name '._*' -exec rm -f {} \;
find / -type d -name ".AppleDouble" -depth -exec rm -Rf {} \;