Skip to content

Instantly share code, notes, and snippets.

@mallikharjunrao
mallikharjunrao / check_docker_container.sh
Created Aug 22, 2017 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
View check_docker_container.sh
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Depending on your docker configuration, root might be required. If your nrpe user has rights
# to talk to the docker daemon, then root is not required. This is why root privileges are not
@mallikharjunrao
mallikharjunrao / update_curl.sh
Created Aug 24, 2017 — forked from fideloper/update_curl.sh
Update curl on Ubuntu 14.04
View update_curl.sh
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2
tar -xvjf curl-7.50.2.tar.bz2