Skip to content

Instantly share code, notes, and snippets.

View kiview's full-sized avatar
💡
Science 🔬 + FLOSS 🐧 = 💖

Kevin Wittek kiview

💡
Science 🔬 + FLOSS 🐧 = 💖
View GitHub Profile
@kiview
kiview / description.md
Last active March 1, 2024 15:28
rocket.chat with docker-compose

Rocket.Chat Over HTTPS with Docker Compose

Instructions about how to setup a Rocket.Chat server including a HTTPS reverse proxy with docker-compose.

docker-compose.yaml

mongo:
  image: mongo
@kiview
kiview / docker_volume_backup.sh
Last active January 18, 2024 12:25
Docker-Compose volume backup
#!/bin/bash
compose_file_path=$1
project_name=$2
backup_path=$3
function backup_volume {
volume_name=$1
backup_destination=$2
@kiview
kiview / books.md
Last active December 15, 2023 03:44
Software Engineering Reading List

Since I sometimes get asked about what I would recommend as reads to gain a deeper understanding about software engineering, I was thinking to just compile a list of my favourite books in this area, which I consider a very valuable read 🙂

Object Oriented Programming

Design Patterns: Elements of Reusable Object-Oriented Software

By Gamma et. al.

I think this is one of the classics and a very recommended read (but with a pinch of salt), basically, one of the books starting the patterns movement in OOP. While one has to be careful to not blindly force those patterns into your own software design, it is critical knowledge and part of the cultural backbone of the software industry. Knowing those patterns and being able to quickly identify them helps tremendously in understanding unfamiliar code bases and when having architecture discussions with peers.

Code Complete

@kiview
kiview / upgrade.yml
Last active November 3, 2023 12:52
Ubuntu upgrade with Ansible
---
- hosts:
- all
become: true
tasks:
- name: Update apt cache
apt: update_cache=yes
- name: Upgrade packages
apt: upgrade=dist
package org.testcontainers;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.startupcheck.OneShotStartupCheckStrategy;
public class JavaGCTest {
@Test
@kiview
kiview / custom-layouts.json
Created July 7, 2022 20:39
Pixel perfect layout for Windows PowerToys fancy zones (located in `%LocalAppData%\Microsoft\PowerToys\FancyZones\custom-layouts.json`)
{
"custom-layouts": [
{
"uuid": "{F58A3E99-18C5-40C0-B496-22C674101D1B}",
"name": "LinkedIn Learning",
"type": "canvas",
"info": {
"ref-width": 2560,
"ref-height": 1392,
"zones": [
@kiview
kiview / CopySyncExperiment.java
Created April 27, 2022 16:23
Syncing a file between host and container with Testcontainers
package org.testcontainers;
import com.github.dockerjava.api.command.InspectContainerResponse;
import lombok.NonNull;
import lombok.SneakyThrows;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.utility.MountableFile;
@kiview
kiview / wsl-git-cred-core.sh
Last active April 4, 2022 08:47
Connect the Windows Git Credential Manager Core to Git in WSL2
# https://github.com/microsoft/Git-Credential-Manager-Core
git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe"
@kiview
kiview / tools.md
Last active March 21, 2022 17:20
Windows Development Tools

Windows Development Tools

This is simply a list of things I chose to install on my Windows development machines. I omit actual links, since googling for them generally gives the best up-to-date results. Maybe I should update this with chocolatey one day, or wait for the the new win-get tool in Windows 11.

  • VSCode
  • Git
  • Windows Terminal
  • Testcontainers Cloud
@kiview
kiview / geohashes.csv
Last active March 3, 2022 15:43
Geohashes CSV
geo_hash count
9q94r 1
dr5rs14 2