Skip to content

Instantly share code, notes, and snippets.

View csiebler's full-sized avatar
😊

Clemens Siebler csiebler

😊
View GitHub Profile
@csiebler
csiebler / Dockerfile
Last active April 26, 2017 09:22
Dockerfile
# Take the offical registry image in version 2.6
FROM registry:2.6
# Copy over the StorageGRID self-signed certificate and Root CA, then update them
COPY root-ca.pem sgws-cert.pem /usr/local/share/ca-certificates/
RUN update-ca-certificates
EXPOSE 5000 5001
ENTRYPOINT ["registry"]
s3:
accesskey: xxx
secretkey: xxxx
region: us-east-1
regionendpoint: https://s3.company.com:8082
bucket: my-docker-registry
encrypt: false
secure: true
v4auth: true
chunksize: 5242880
@csiebler
csiebler / gist:c8ae30531de73a0b9ffab5933b5efdae
Created August 9, 2016 20:25
D1 Mini Webservice Wifi Example
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
// Settings
const char* ssid= "WHATSHEORDER";
const char* password = "xxx";
IPAddress ip(192,168,178,128);
IPAddress subnet(255,255,255,0);
IPAddress gateway(192,168,178,1);
@csiebler
csiebler / gist:d9a9ca654127f3c3f698
Last active February 29, 2016 12:39
Anonymous Bucket Access via S3 for StorageGRID
> cat anonymous_access.json
{
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],

Eggplant mash

1 eggplant 1 tomato 2 spoons of thick tomato sauce
1-2 onions 2 pieces of garlic salt pepper spices

@csiebler
csiebler / gradle-snippets.groovy
Last active January 3, 2016 03:29
Gradle snippets
// print compileClasspath before compiling the code
compileJava.doFirst {
sourceSets.main.compileClasspath.each { println it }
}
// include classes from main into other sourceset, e.g. for integration tests, etc.
sourceSets {
anotherSet {