Skip to content

Instantly share code, notes, and snippets.

View binlab's full-sized avatar
🗡️
Do, or do not. There is no "try"

Mark binlab

🗡️
Do, or do not. There is no "try"
View GitHub Profile
@jhazelwo-charter
jhazelwo-charter / nginx.conf
Created October 3, 2017 14:54
NGINX FreeIPA authentication
worker_processes 4;
pid /app/run/nginx.pid;
error_log /app/log/error.log;
events {
worker_connections 768;
}
http {
@lukechilds
lukechilds / get_latest_release.sh
Created August 9, 2016 19:43
Shell - Get latest release from GitHub
get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
# Usage
# $ get_latest_release "creationix/nvm"
# v0.31.4