Skip to content

Instantly share code, notes, and snippets.

View Nicklas2751's full-sized avatar

Nicklas Wiegandt Nicklas2751

View GitHub Profile
@Nicklas2751
Nicklas2751 / HOW_TO_change_and_persist_k3os_traefik_config.md
Created July 27, 2020 12:26
How to configure the system traefik of k3os and perist the config over reboots

Problem: If you change the k3os traefik configuration in /var/lib/rancher/k3s/server/manifests/traefik.yaml directly, all changes will be lost after a reboot.

Solution:

  1. sudo vi /var/lib/rancher/k3os/config.yaml
  2. Add to the top level k3os part the following:
  k3s_args:
  - server
  - "--no-deploy=traefik"
@Nicklas2751
Nicklas2751 / Calendar.vue
Created May 26, 2020 18:54
The vuetify event calendar example with typescript
<template>
<v-row class="fill-height">
<v-col>
<v-sheet height="64">
<v-toolbar flat color="white">
<v-btn outlined class="mr-4" color="grey darken-2" @click="setToday">Today</v-btn>
<v-btn fab text small color="grey darken-2" @click="prev">
<v-icon small>mdi-chevron-left</v-icon>
</v-btn>
<v-btn fab text small color="grey darken-2" @click="next">
---
openapi: 3.0.1
info:
title: Generated API
version: "1.0"
paths:
/address:
get:
summary: Retrieves all addresses
responses:
import java.util.Arrays;
import java.util.Objects;
import java.util.Optional;
/**
* A video resolution.
*/
public class Aufloesung {
private final int width;
private final int height;
@Nicklas2751
Nicklas2751 / LambdaInputStreamMapExample.java
Created May 25, 2017 23:25
A example how to use java 8 lambda stream with inputstream and map.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class LambdaInputStreamMapExample {
public static void main(String[] args) {
new LambdaInputStreamMapExample().start();
}
@Nicklas2751
Nicklas2751 / index.html
Last active January 20, 2017 17:22
A javascript snippet from nicklas.wiegandt.eu to enable a scroll to top via link
<!DOCTYPE html>
<html>
<head>
<script src='js/mainscript.js'></script>
<title>Nicklas Wiegandt Contact</title>
</head>
<body>
...
<div id="0"></div>
...
### Keybase proof
I hereby claim:
* I am Nicklas2751 on github.
* I am nicklaswiegandt (https://keybase.io/nicklaswiegandt) on keybase.
* I have a public key whose fingerprint is F0BC E2BC 8858 19F3 C183 2CAB 8BE9 CE33 B464 C929
To claim this, I am signing this object: