Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View gmaslowski's full-sized avatar
🏠
Working from home

Greg Maslowski gmaslowski

🏠
Working from home
View GitHub Profile
@gmaslowski
gmaslowski / openssl_check_ciphers.sh
Created February 24, 2021 10:36
Check supoported SLL ciphers via provided OpenSSL binary.
#!/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 January 29, 2019 20:14
Scala Samples - Extractors vs Case Classes
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 October 18, 2023 05:24
k8s-cassandra-nodeLabel2pod
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cassandra-rackdc
data:
cassandra-rackdc.properties: |
dc= datacenter
rack= RACK
---
@gmaslowski
gmaslowski / traefik.toml
Created April 7, 2018 18:55
Traefik with auto Certificate renewal
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 March 22, 2018 14:43
docker-swarm-config-files
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"