Skip to content

Instantly share code, notes, and snippets.

View robbwagoner's full-sized avatar

Robb Wagoner robbwagoner

View GitHub Profile
@robbwagoner
robbwagoner / enabling-aac-and-aptx-over-bluetooth-on-macos.md
Created March 8, 2018 14:37
Enabling AptX over Bluetooth on macOS
@a7madgamal
a7madgamal / dark.md
Last active July 14, 2023 04:00
Dark mode for Slack on MacOS
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active March 9, 2024 07:54
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@mariocj89
mariocj89 / python-logging.md
Last active June 16, 2024 16:51
Understanding logging in Python

Logging trees

Introduction

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.

@robbwagoner
robbwagoner / upgrade-pip-virtualenv.sh
Last active December 21, 2016 22:34
Ubuntu 14.04
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
@robbwagoner
robbwagoner / socat.md
Last active November 17, 2017 17:28
nginx socket socat
@ulich
ulich / jenkins-pipeline-retry-method.groovy
Created June 13, 2016 14:53
Jenkins pipeline utility method that asks the user to retry the given closure and executes a closure on success or user abortion
/**
* 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>
@robbwagoner
robbwagoner / git-patch.sh
Last active August 10, 2017 17:16
Patching in Git
#
# 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/
@manicminer
manicminer / git_facts.py
Created February 13, 2015 21:05
Ansible git_facts module
#!/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: