Skip to content

Instantly share code, notes, and snippets.

View sebbrandt87's full-sized avatar
🇺🇦 🕊️ 🇮🇱 🕊️

Sebastian Brandt sebbrandt87

🇺🇦 🕊️ 🇮🇱 🕊️
View GitHub Profile
@sebbrandt87
sebbrandt87 / deployment.yaml
Last active November 21, 2018 07:45
deployment.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: si-test
name: si-test
namespace: siws
spec:
replicas: 1
@sebbrandt87
sebbrandt87 / docker-compose.yml
Created November 15, 2018 09:20
docker-compose.yml
version: '3'
services:
web:
container_name: siws
build:
context: .
image: siws:latest
restart: always
ports:
- "80:3000"
@sebbrandt87
sebbrandt87 / package.json
Created November 15, 2018 09:05
package.json
{
"name": "helloworld",
"version": "1.0.0",
"description": "hello",
"main": "hello.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node hello.js"
},
"author": "",
@sebbrandt87
sebbrandt87 / hello.js
Created November 15, 2018 09:02
hello.js
var express = require('express')
var app = express()
app.get('/', function(req, res) {
res.end('Hello Signal Iduna!')
})
app.listen(3000)
@sebbrandt87
sebbrandt87 / notes.md
Last active May 27, 2021 08:25
env setup notes
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# pip and virtualenv
curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
sudo python3 get-pip.py
pip3 install virtualenv
pip3 install virtualenvwrapper

continue with brew related formulas and casks

@sebbrandt87
sebbrandt87 / db_2_structs.go
Created February 25, 2018 22:31 — forked from itsbalamurali/db_2_structs.go
Reverse your MySQL Schema to Golang Structs
package main
import (
"fmt"
"log"
"os"
"strconv"
"github.com/Shelnutt2/db2struct"
"github.com/jinzhu/gorm"
@sebbrandt87
sebbrandt87 / golang-tls.md
Created February 25, 2018 22:30 — forked from itsbalamurali/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@sebbrandt87
sebbrandt87 / net_ldap_overrides.rb
Created July 3, 2017 06:14 — forked from mintuhouse/net_ldap_overrides.rb
Verify the certificate of secure LDAP server using net-ldap ruby gem
class Net::LDAP
def initialize(args = {})
@host = args[:host] || DefaultHost
@port = args[:port] || DefaultPort
@verbose = false # Make this configurable with a switch on the class.
@auth = args[:auth] || DefaultAuth
@base = args[:base] || DefaultTreebase
encryption args[:encryption] # may be nil
@sebbrandt87
sebbrandt87 / haproxy.cfg
Created May 3, 2017 06:09 — forked from ryzy/haproxy.cfg
HAProxy - essentials for HTTP/2
frontend https-in
mode tcp
bind *:443 ssl crt /etc/ssl/dummy.pem alpn h2,http/1.1
use_backend nodes-http2 if { ssl_fc_alpn -i h2 }
default_backend nodes-http
backend nodes-http
server node1 web.server:80 check
backend nodes-http2
// Let jenkins know that you want to execute the commands on a dedicated jenkins slave
node('dockerSlave') {
def mvnHome = tool 'M3'
// Cleanup local checkout - TODO there should also be a dedicated jenkins command to invoke this action
sh "rm -rf *"
sh "rm -rf .git"
// Clone from git
checkout scm
// Checkout specific local branch
checkout([$class: 'GitSCM', branches: [[name: '*/master']],