Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Greg Maslowski gmaslowski

🏠
Working from home
View GitHub Profile
@gmaslowski
gmaslowski / openssl_check_ciphers.sh
Created Feb 24, 2021
Check supoported SLL ciphers via provided OpenSSL binary.
View openssl_check_ciphers.sh
#!/bin/bash
# Usage ./openssl_check_ciphers.sh host [/path/to/openssl/binary]
set -o errtrace
set -o nounset
set -o pipefail
if ! [ $1 ];
then
@gmaslowski
gmaslowski / ScalaExtractorSample.scala
Created Jan 29, 2019
Scala Samples - Extractors vs Case Classes
View ScalaExtractorSample.scala
package com.gmaslowski.scala.samples.extractor
object ScalaExtractorSample extends App {
val casePeople = List(
Case.Person("John", "Doe"),
Case.Person("Jane", "Doe"),
Case.Person("Jimmy", "Doe"),
Case.Person("Bobby", "Doe"),
Case.Person("Jimmy", "Known"),
Case.Person("Clair", "Known")
@gmaslowski
gmaslowski / cassandra-node2pod.yml
Last active Apr 27, 2021
k8s-cassandra-nodeLabel2pod
View cassandra-node2pod.yml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cassandra-rackdc
data:
cassandra-rackdc.properties: |
dc= datacenter
rack= RACK
---
@gmaslowski
gmaslowski / traefik.toml
Created Apr 7, 2018
Traefik with auto Certificate renewal
View traefik.toml
debug = false
checkNewVersion = true
logLevel = "WARN"
defaultEntryPoints = ["https","http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
@gmaslowski
gmaslowski / compose.yml
Last active Mar 22, 2018
docker-swarm-config-files
View compose.yml
version: '3.5'
services:
traefik:
image: traefik:1.5.4-alpine
command: --web --docker --docker.swarmmode --docker.domain=<domain here> --logLevel=INFO --docker.watch --configfile=/traefik-v1.toml
ports:
- "80:80"
- "443:443"