Skip to content

Instantly share code, notes, and snippets.

View ngquerol's full-sized avatar
📖

Nicolas G. Querol ngquerol

📖
View GitHub Profile
@ngquerol
ngquerol / dockertags.sh
Created September 8, 2016 17:52
List all available tags for a given docker image
dockertags() {
if [ -z ${1+x} ] || [ $# -ne 1 ]; then
echo "Usage: ${0} <image name>"
else
local namespace="library"
local repository=$1
if [[ $1 == *"/"* ]]; then
namespace=${1%/*}
repository=${1#*/}
/// Additional colors accessibility metrics utilities
import Cocoa
import simd
extension NSColor {
/// Returns in an ordered array the following components from this color, in the sRGB color space:
/// - red
/// - green
@ngquerol
ngquerol / flac2alac.sh
Last active June 7, 2020 20:24
FLAC to ALAC Batch Converter
#!/usr/bin/env bash
shopt -s extglob
set -o errexit
set -o nounset
set -o pipefail
# Function definitions
check_prerequisites() {