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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: si-test | |
name: si-test | |
namespace: siws | |
spec: | |
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
web: | |
container_name: siws | |
build: | |
context: . | |
image: siws:latest | |
restart: always | |
ports: | |
- "80:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express') | |
var app = express() | |
app.get('/', function(req, res) { | |
res.end('Hello Signal Iduna!') | |
}) | |
app.listen(3000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"strconv" | |
"github.com/Shelnutt2/db2struct" | |
"github.com/jinzhu/gorm" |
Moved to git repository: https://github.com/denji/golang-tls
# 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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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']], |