Skip to content

Instantly share code, notes, and snippets.

View oehrlis's full-sized avatar
🏡
Working from home

Stefan Oehrli oehrlis

🏡
Working from home
View GitHub Profile
@oehrlis
oehrlis / pandoc_note.md
Last active June 3, 2019 07:36
Build PDF using pandoc container and trivadis template

Make sure to add meta information to you markdown file. If you omit the Logo it will use the default Trivadis Logo.

---
title: "DB Security Checks"
subtitle: "Documentation for Security Checks"
author: [Stefan Oehrli]
date: "2018 November 29"
tvddocversion: 1.0
papersize: a4 
@oehrlis
oehrlis / Docker_Security_Demos.md
Last active December 19, 2018 21:38
Docker Security Demos

title: "Demo Docker Security" subtitle: "Demos of the lecture Docker Security" author: [Stefan Oehrli] date: "20 Dezember 2018" tvddocversion: 1.0 papersize: a4 listings-disable-line-numbers: true titlepage: true toc: true

@oehrlis
oehrlis / docker_build_orarepo.md
Created November 27, 2018 17:47
Docker build using local software repository

Oracle Software usually can not be downloaded during build without providing some credentials. If the binaries are downloaded using curl or wget the credentials will remain in the docker image. One solution would be to keep the binaries in the docker build context and use squash or multi stage builds. Alternatively it is also possible to use a local web server (docker container) to download the files locally.

  • Start a simple web server to locally share the software during docker build.
docker run -dit \
  --hostname orarepo \
  --name orarepo \
  -p 80:80 \
 -v /data/docker/volumes/orarepo:/www \
@oehrlis
oehrlis / install_virtualbox.md
Last active November 29, 2018 10:35
VirtualBox and vagrant installation using brew

Simple method to install Virtualbox and Vagrant on macOS.

brew update

brew cask upgrade

brew cask install vagrant
brew cask install virtualbox
brew cask install virtualbox-extension-pack
@oehrlis
oehrlis / DOAG18_build_doc.md
Last active December 5, 2018 10:40
DOAG 2018 Build PDF from Markdown

Build PDF files based on markdown using pandoc and the Trivadis Latex Template

docker run --rm -v $PWD:/workdir:z oehrlis/pandoc DOAG18_O-EUS_Workshop.md \
    DOAG18_O-EUS_Workshop_LabEnv.md \
    DOAG18_O-EUS_Workshop_Links.md \
    -o DOAG18_O-EUS_Workshop.pdf \
    --template ./images/trivadis.tex -N --listings
@oehrlis
oehrlis / orarepo_admin.md
Created October 4, 2018 12:30
Docker image to handle local downloads during build

Recreate orarepo image

docker stop orarepo
docker rm orarepo
docker run -d --hostname orarepo \
  --name orarepo -p 80:80 \
  -v /data/docker/volumes/orarepo:/www \
  busybox httpd -fvvv -h /www
@oehrlis
oehrlis / net.sql
Created July 6, 2018 06:42
Network information of current session
------------------------------------------------------------------------
- Trivadis AG, Business Development & Support (BDS)
- Saegereistrasse 29, 8152 Glattbrugg, Switzerland
------------------------------------------------------------------------
- Name.......: net.sql
- Author.....: Stefan Oehrli (oes) stefan.oehrli@trivadis.com
- Usage......: net.sql
- Purpose....: List current session connection information
- Notes......: --
- Reference..: --
@oehrlis
oehrlis / oud_engineering_notes.md
Last active July 6, 2018 06:20
OUD Engineering Notes

OUD Engineering

EUS

Proxy

Backup