Skip to content

Instantly share code, notes, and snippets.

View xinity's full-sized avatar

Rachid Zarouali xinity

View GitHub Profile
@xinity
xinity / Dockerfile
Created February 26, 2016 09:50 — forked from masonforest/Dockerfile
Test Drive Your Dockerfiles with RSpec and ServerSpec
FROM ubuntu:14.04
MAINTAINER Mason Fischer <[email protected]>
RUN apt-get update && apt-get install -y nodejs
@xinity
xinity / gist:863c28ace67ad10a4c13
Created February 24, 2016 17:54
Grafana Dashboard (WIP)
{
"id": 4,
"title": "Production Monitoring",
"originalTitle": "Production Monitoring",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": true,
@xinity
xinity / gist:7cfda4964e5bc0178c17
Created November 2, 2015 17:46
failed docker from scratch
docker run --name daemon --privileged -d rancher/docker
Unable to find image 'rancher/docker:latest' locally
latest: Pulling from rancher/docker
3def11f52f10: Pull complete
ad96f5e8065d: Pull complete
f5ecdb8c8acf: Pull complete
10a10934b08d: Pull complete
316db07a8185: Pull complete
9972bb9e1ac2: Pull complete
@xinity
xinity / gist:dcf2e71ff5be7a32874f
Created November 2, 2015 17:40
drone failed ouput
[info] Pulling image plugins/drone-git:latest
$ git init
Initialized empty Git repository in /drone/src/bitbucket.org/xinity77/myproject/.git/
$ git remote add origin https://bitbucket.org/xinity77/myproject.git
$ git fetch --no-tags --depth=50 origin +refs/heads/drone:
From https://bitbucket.org/xinity77/myproject
* branch drone -> FETCH_HEAD
* [new branch] drone -> origin/drone
$ git reset --hard -q b51f3456940606b8bc9bbb28481bc4666c8c3b46
[info] Pulling image registry:4433/lampdev:latest
#!/usr/bin/env python
#
# simle'n'stupid vhost "parser"
#
# Usage: ./vhosts-reader.py FILE
# FILE is a apache config file
import re
import sys
import os.path