Skip to content

Instantly share code, notes, and snippets.

View xinity's full-sized avatar

Rachid Zarouali xinity

View GitHub Profile
#!/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
@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
@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: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 / 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 <mason@thoughtbot.com>
RUN apt-get update && apt-get install -y nodejs
@xinity
xinity / overview.js
Created August 29, 2016 06:22 — forked from softmentor/overview.js
Grafana scripted dashboard: node overview
/* global _ */
/*
* Grafana Scripted Dashboard to:
* * Give overview of all nodes in a cluster: CPU, Load, Memory
* * Provide links to other - more complex - dashboard for each node.
*
* Global accessable variables
* window, document, $, jQuery, ARGS, moment
*
* Return a dashboard object, or a function
@xinity
xinity / vagrant.log
Last active August 11, 2017 20:07
vagrant up debug
vcpenabled="off"
vcpscreens=0
vcpfile="/home/xinity/VirtualBox VMs/dtrnode01/dtrnode01.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
@xinity
xinity / vagrantfile
Created December 24, 2017 12:14
vagrant multiple disk bogus
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.landrush.enabled = true
config.landrush.tld = 'docker.vm'
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
@xinity
xinity / README.md
Created January 17, 2019 11:06 — forked from Luzifer/README.md
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads