Skip to content

Instantly share code, notes, and snippets.

View StefanCristian's full-sized avatar
🐧

Stefan Cristian B. StefanCristian

🐧
View GitHub Profile
upstream docker-registry {
server registry:5000;
}
server {
listen 80;
server_name ubdocker.com;
# SSL
# ssl on;
nginx:
image: "nginx:1.9"
ports:
- 80:80
links:
- registry:registry
volumes:
- ./nginx/:/etc/nginx/conf.d
registry:
image: registry:2
# Based on Ubuntu 14.04 Image
############################################################
# Set the base image to use to Ubuntu
FROM ubuntu:14.04
MAINTAINER Maintaner Stefan
RUN apt-get update && apt-get install -y openssh-server
@StefanCristian
StefanCristian / inotify-extreme.c
Last active August 29, 2015 14:04
A inotify libs testcase
/*Licensed under Creative Commons 0 Public Domain (CC0)*/
/*There is no Copyright nor author, it's a general and assembled public work*/
/*AS the License states, any other mixation, redistribution, and so forth of this work will not have any author.*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <linux/inotify.h>