links for old versions of Docker for Mac
Docker provides download links in release note. They promised that
(we) will also include download links in release notes for future releases.
Note:
Docker provides download links in release note. They promised that
(we) will also include download links in release notes for future releases.
Note:
A lot of people land when trying to find out how to calculate CPU usage metric correctly in prometheus, myself included! So I'll post what I eventually ended up using as I think it's still a little difficult trying to tie together all the snippets of info here and elsewhere.
This is specific to k8s and containers that have CPU limits set.
To show CPU usage as a percentage of the limit given to the container, this is the Prometheus query we used to create nice graphs in Grafana:
sum(rate(container_cpu_usage_seconds_total{name!~".*prometheus.*", image!="", container_name!="POD"}[5m])) by (pod_name, container_name) /
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Update 7 Oct 2010: | |
# - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
# the WebSocket protocol implementation in the cramp gem does not work | |
# well with Chrome's (newer) WebSocket implementation. | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
http { | |
map $http_user_agent $limit_bots { | |
default ''; | |
~*(google|bing|yandex|msnbot) $binary_remote_addr; | |
} | |
limit_req_zone $limit_bots zone=bots:10m rate=1r/m; | |
server { |
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
# Instructions: | |
# Go to TextMate > Preferences... | |
# Click Advanced | |
# Select Folder References | |
# Replace the following: | |
# File Pattern |
setenv SSH_ENV $HOME/.ssh/environment | |
if [ -n "$SSH_AGENT_PID" ] | |
ps -ef | grep $SSH_AGENT_PID | grep ssh-agent > /dev/null | |
if [ $status -eq 0 ] | |
test_identities | |
end | |
else | |
if [ -f $SSH_ENV ] | |
. $SSH_ENV > /dev/null |
# == WHAT | |
# Simple script for notification center notifications in irssi | |
# Requires terminal-notifier | |
# | |
# $ gem install terminal-notifier | |
# | |
# == WHO | |
# Nate Murray 2008 | |
# | |
# == CONFIG |
# | |
# Run this under your WSGI server, and then try | |
# | |
# curl -N -i <server> | |
# | |
# If you're chunked, you should see the pause between "hello" and "world". | |
import time | |
def application(environ, start_response): |
package main | |
type Config struct { | |
Common string | |
DriverOpts interface{} | |
} | |
func main() { | |
var provider libmachine.Provider | |
switch driver { |