Instantly share code, notes, and snippets.

bendisposto / core.clj
Created Mar 16, 2017
REPL Session - Generative Testing, Softwerkskammer Ruhr, 15.3.2017
View core.clj
(ns bsp.core
(:require [clojure.repl :refer :all]
[clojure.spec :as spec]
[clojure.test.check :refer [quick-check]]
[clojure.test.check.generators :as gen]
[ :refer [for-all]]
[clojure.test :refer [is are run-tests deftest]]))
(defn ultrasort [coll] (seq (into (sorted-set) coll)))
noahcoad /
Last active Oct 5, 2018
Python to Convert yaml to json
# convert yaml to json
# pip3 install pyyaml
# py3 < ~/code/manpow/homeland/heartland/puphpet/config.yaml
# gist
import yaml, json, sys
sys.stdout.write(json.dumps(yaml.load(sys.stdin), sort_keys=True, indent=2))
charles-m-knox / docker-compose.yml
Created Jun 7, 2016
Traefik routing w/ HTTPS and HTTP redirect to HTTPS
View docker-compose.yml
# Note: You only need to modify one thing to get this to work
# Change line 14 to reflect where your certificates are stored; certs/cert.pem and certs/key.pem
image: traefik
command: --web --docker --docker.domain=localhost --logLevel=DEBUG --entryPoints="Name:https Address::443 TLS:/certs/cert.pem,/certs/key.pem" --entryPoints="Name:http Address::80 Redirect.EntryPoint:https"
- "80:80"
- "443:443"
- "8080:8080"
solidnerd /
Last active Jan 20, 2019
GitLab Container Registry Setup

Settting up a Container Registry with docker-gitlab

This should be used for new users to getting started with the container registry feature on docker-gitlab.


yuki-takei / keybindings.json
Last active Aug 31, 2018 — forked from bpedman/keybindings.json
Visual Studio Code - Eclipse Keybindings (Win, Linux)
View keybindings.json
"key": "ctrl+d",
"command": "editor.action.cutLines",
"when": "editorTextFocus"
"key": "ctrl+o",
"command": "workbench.action.gotoSymbol"
julz / main.go
Created Nov 20, 2015
containersched minicontainer
View main.go
package main
import (
func main() {
ivanov-alex / gist:e0cc14d3dc6fc1520283
Last active Jan 31, 2019
Extending Enum for UT using Mockito
View gist:e0cc14d3dc6fc1520283
/////////// changes for pom.xml
alessandroleite /
Last active Jan 23, 2018
Generate a self signed X509 certificate with Bouncy Castle
//Generate a self signed X509 certificate with Bouncy Castle.
// StringBuilder sb = new StringBuilder();
// for (int i = 0; i < pub.length; ++i)
// {
// sb.append(Integer.toHexString(0x0100 + (pub[i] & 0x00FF)).substring(1));
// }
// System.out.println(sb);
// sb.setLength(0);
# git plugin
curl -X POST -d '<jenkins><install plugin="git@2.0" /></jenkins>' --header 'Content-Type: text/xml' $host$url
# artifactory plugin
curl -X POST -d '<jenkins><install plugin="artifactory@2.2.1" /></jenkins>' --header 'Content-Type: text/xml' $host$url
plentz / nginx.conf
Last active Feb 22, 2019
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048