Skip to content

Instantly share code, notes, and snippets.

version: '3.8'
services:
proxy:
image: traefik:v2.3
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
command:
version: '3.8'
services:
proxy:
image: traefik:v2.3
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
command:
version: "v1"
project: "my-first-project"
services:
frontend:
apache:
image: httpd
domain: "nyc.sloppy.zone"
ports: 80
volumes:
- container_path: "/usr/local/apache2/htdocs"
---
apiVersion: v1
kind: Namespace
metadata:
name: haproxy-controller
---
apiVersion: v1
kind: ServiceAccount
metadata:
{
"project": "dis",
"services": [
{
"id": "all",
"apps": [
{
"id": "db",
"image": "postgres",
"instances": 1,
@MikeMichel
MikeMichel / spectre.c
Created January 4, 2018 13:38 — forked from Badel2/spectre.c
Spectre attack example implementation
/* https://spectreattack.com/spectre.pdf */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
FROM node:8-alpine as builder
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install --only=production --silent
COPY public public/
COPY src src/
COPY scripts scripts/
version: "v1"
project: "wordpress"
services:
frontend:
apache:
image: "wordpress:4.6.0"
instances: 1
mem: 512
domain: "$URI"
port: 80
#!/bin/bash
#enable job control in script
set -m
# when /etc/couchdb (contains i.g. admin account) was not allready moved to persistant storage, do it and symlink the org. directory
if [ ! -d /var/lib/couchdb/etc/couchdb ]; then
mkdir /var/lib/couchdb/etc
mv /etc/couchdb /var/lib/couchdb/etc/
ln -s /var/lib/couchdb/etc/couchdb/ /etc/couchdb
version: "v1"
project: "my-vapor-app"
services:
backend:
anidhere:
image: "anandk/ubuntu-vapor-mysql"
domain: "vaporapp.sloppy.zone"
port: 8080
volumes:
- path: "/Users/anand/Desktop/db-demo"