Skip to content

Instantly share code, notes, and snippets.

View slava-vishnyakov's full-sized avatar

Slava Vishnyakov slava-vishnyakov

View GitHub Profile
#!/bin/bash
set -o errexit
echo "Removing exited docker containers..."
docker ps -a -f status=exited -q | xargs -r docker rm -v
echo "Removing dangling images..."
docker images --no-trunc -q -f dangling=true | xargs -r docker rmi
@slava-vishnyakov
slava-vishnyakov / README.md
Last active August 29, 2015 14:01 — forked from rezgaa/install_graphite_statsd_ubuntu_precise.sh
Graphite/Statsd installation

After install run

# start statsd
# start graphite

statsd is on 8125 port graphite is on http://127.0.0.1:8080/

@slava-vishnyakov
slava-vishnyakov / youtube.rb
Created November 4, 2012 09:30 — forked from jamieowen/youtube.rb
Octopress Youtube plugin...
# Example:
# {% youtube http://www.youtube.com/watch?v=Awf45u6zrP0 %}
require 'cgi'
require 'uri'
module Jekyll
class Youtube < Liquid::Tag
@width = 640
@height = 390