Skip to content

Instantly share code, notes, and snippets.

<rrule-editor>
<input type="date" name="begin">
<input type="hidden" name="rrule" value="RRULE:FREQ=DAILY;COUNT=10">
<select name="reccurend">
<option value="no">No</option>
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
version: "2"
services:
frontend:
container_name: frontend
image: abiosoft/caddy:latest
restart: always
command: "-conf /etc/Caddyfile -log stdout -http2=false"
volumes:
- ./Caddyfile:/etc/Caddyfile
- ./certs:/etc/caddycerts
my $default_arguments = "-hide_banner -loglevel panic -y -pix_fmt yuv420p ";
my $formats = {
ogv => { mimetype => "video/ogv", arguments => qq| $default_arguments -c:v libtheora -b:v 600k -acodec libvorbis -b:a 96k -vf scale=720:-2 |, ext => 'ogv' },
mp4 => { mimetype => "video/mp4", arguments => qq| $default_arguments -c:v libx264 -b:v 1000k -movflags +faststart -acodec libfaac -profile:v baseline -b:a 128k -vf scale=-2:720 |, ext => 'base.mp4' },
png => { mimetype => "image/png", arguments => qq| $default_arguments -vframes 1 |, ext => 'png' },
vp8 => { mimetype => "video/webm", arguments => qq| $default_arguments -c:v libvpx -b:v 1500k -acodec libvorbis -vf scale=-2:720|, ext => 'vp8.webm' },
vp9 => { mimetype => "video/webm", arguments => qq| $default_ar
FROM graylog2/server:latest
RUN wget -O /usr/share/graylog/plugin/graylog-plugin-input-httpmonitor-1.0.3.jar https://github.com/sivasamyk/graylog2-plugin-input-httpmonitor/releases/download/v1.0.3/graylog2-plugin-input-httpmonitor-1.0.3.jar
RUN wget -O /usr/share/graylog/plugin/graylog-plugin-beats-1.1.3.jar https://github.com/Graylog2/graylog-plugin-beats/releases/download/1.1.3/graylog-plugin-beats-1.1.3.jar
https://git.example.com {
tls email@example.com
log git.access.log {
rotate
}
proxy / gitlab:80 {
fail_timeout 300s
version: '2'
services:
smtp:
image: mwader/postfix-relay
container_name: smtp
restart: always
environment:
- POSTFIX_myhostname=relay.example.com
@jegade
jegade / Docker with ovh vrack.md
Last active March 7, 2024 06:47
Running OVH vrack with docker network

Run containers on dedicated ovh server with vrack and ipvlan

Dependencies

I tested this with gentoo, and docker with --experimental.

Intro

OVH vrack is a virtual rack for your dedicated server. You can get a whole ip subnet from ovh, which you can map to any of the host inside the vrack.

The dedicated server has second network device (eth1,eno2,…) which is connected to the vrack.

@jegade
jegade / docker-compose.yaml
Last active December 1, 2016 13:03
Graylog docker-compose with own network for frondend and smtp/relay
version: '2'
services:
mongo:
image: "mongo:3"
volumes:
- /volumes/graylog/mongo:/data/db
networks:
- graylog
elasticsearch:
image: "elasticsearch:2"
#!/usr/bin/env perl
# plackuo minimal.pl
use FindBin();
use Plack::App::File;
my $app = Plack::App::File->new( root => "$FindBin::Bin/");
@jegade
jegade / pl
Last active September 22, 2015 13:10
Check if coordinate in poly-file perl
#!/bin/env perl
use Math::Polygon::Tree;
# nrw.poly - shapefile of nrw from http://download.geofabrik.de/europe/germany/nordrhein-westfalen.poly
my $bound = Math::Polygon::Tree->new( 'nrw.poly' );
if ( $bound->contains( [6.744400, 50.797427] ) ) {