from Enabling AAC and AptX over Bluetooth on MacOS
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
from Enabling AAC and AptX over Bluetooth on MacOS
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
bonus tip: for more darkness > https://darkreader.org/
Random query recipes of JMESPath for the AWS CLI tools that I might have written or stumbled upon.
When applications are running in production, they become black boxes that need to be traced and monitored. One of the simplest, yet main, ways to do so is logging. Logging allows us - at the time we develop our software - to instruct the program to emit information while the system is running that will be useful for us and our sysadmins.
sudo apt-get update | |
sudo apt-get install -y python-dev python-virtualenv virtualenvwrapper libffi-dev libssl-dev | |
source /etc/bash_completion.d/virtualenvwrapper | |
mkvirtualenv foo | |
pip install --upgrade pyopenssl ndg-httpsclient pyasn1 urllib3[secure] | |
pip install --upgrade pip |
From https://github.com/GhostGroup/infrastructure/pull/180
Use socat to eavesdrop on the Nginx -> Unicorn socket-based comms.
ubuntu@ip-10-0-191-247:/etc/nginx/sites-enabled$ SOCK=/var/www/shared/.unicorn.sock [49/144]
/** | |
* Executes given params.task closure and if it fails, asks the user if it should be retried. | |
* The task will then be executed again. If the user clicks abort, an exception will be | |
* thrown aborting the pipeline. | |
* | |
* After the task either completes successfully or after the user clicks abort, | |
* the params.andFinally closure will be executed. | |
* | |
* Usage: | |
* <pre><code> |
# | |
# Create patch from SHA | |
# http://stackoverflow.com/questions/6658313/generate-a-git-patch-for-a-specific-commit | |
# --stdout option is available, too | |
git format-patch -1 <sha> | |
# | |
# Apply Patch | |
# https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/ |
#!/usr/bin/python | |
DOCUMENTATION = ''' | |
--- | |
module: git_facts | |
version_added: "devel" | |
short_description: retrieve facts about a git repository | |
description: | |
- retrieve facts about a git repository. This module has a dependency on GitPython. | |
options: |