Skip to content

Instantly share code, notes, and snippets.

View marszall87's full-sized avatar
🥃
Coding...

Michał Nykiel marszall87

🥃
Coding...
  • Appfire
  • Gdańsk, Poland
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.list {
width: 480px;
display: flex;
@marszall87
marszall87 / gist:3990e7a0a6bb3579a6e2
Created February 1, 2016 10:08 — forked from eduardocardoso/gist:82a629882ddb02ab3677
Script to delete exited containers and untagged/unused images from docker
#!/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
gitlab-runner:
image: gitlab/gitlab-runner:latest
volumes:
- /home/core/config:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
@marszall87
marszall87 / docker-compose-install.sh
Created September 25, 2015 13:14
Simple script for installing latest Docker Compose on CoreOS >= 717.0.0
#!/bin/bash
mkdir -p /opt/bin
curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose