Skip to content

Instantly share code, notes, and snippets.

View corusm's full-sized avatar
:octocat:
computerei

Niklas Leinz corusm

:octocat:
computerei
View GitHub Profile
@corusm
corusm / main.dart
Created July 6, 2021 22:06
Automerge Dart FFI
import 'dart:ffi';
import 'dart:io';
import 'package:ffi/ffi.dart';
import 'package:path/path.dart' as path;
import 'dart:convert' show jsonDecode, jsonEncode, utf8;
class Backend extends Opaque {}
typedef _automerge_apply_changes = IntPtr Function(Pointer<Backend>);
typedef AutomergeApplyChanges = int Function(Pointer<Backend>);
for (let to = 1; to < tab.length-1; to++) {
// console.log(tab[to])
if (tab[to].includes('T3')) {
try {
let modul = tab[to].split('td')[1].trim().substr(15).split('<')[0]
let kurs = tab[to].split(',800,600);">')[1].split('</a>')[0]
let zahlen = tab[to].split('<td class="tbdata" style="text-align:right;">')
let credits = zahlen[2].trim().split('<')[0]
let note = zahlen[3].trim().split('<')[0]
@corusm
corusm / docker-compose.yml
Created February 5, 2021 13:38
Mailocow tutorial test docker-compose
version: '3.7'
networks:
main:
external: true
services:
whoami:
image: "containous/whoami"
container_name: Traefik-whoami-main
restart: always
networks:
@corusm
corusm / docker-compose.override.yml
Last active May 7, 2022 19:42
Mailcow Tutorial - Override
version: '2.1'
services:
nginx-mailcow:
labels:
- "traefik.enable=true"
- "traefik.http.routers.nginx-mailcow.entrypoints=web"
- "traefik.http.routers.nginx-mailcow.rule=HostRegexp(`{host:(autodiscover|autoconfig|webmail|mail|email).+}`)"
- "traefik.http.middlewares.nginx-mailcow-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.nginx-mailcow.middlewares=nginx-mailcow-https-redirect"
@corusm
corusm / start.sh
Created February 4, 2021 19:28
Config for Raspbian QEMU/KVM VM
#!/bin/bash
sudo qemu-system-arm \
-kernel ./kernel-qemu-4.4.34-jessie \
-append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" \
-hda raspbian-jessie.qcow \
-vga std \
-cpu arm1176 -m 256 \
-M versatilepb \
-no-reboot \
-serial stdio \
@corusm
corusm / docker-compose.yml
Created December 2, 2020 22:49
Traefik Docker Compose Beginner Guide
version: '3.7'
networks:
main:
external: true
services:
proxy:
image: "traefik:v2.2"
container_name: reverse-proxy
restart: always
command:
@corusm
corusm / docker-compose.yml
Last active December 3, 2020 23:21
Docker Compose for Encrypted Sharelatex Container
version: '3.7'
networks:
main:
external: true
services:
proxy:
image: "traefik:v2.2"
container_name: reverse-proxy
restart: always
command:
version: '3.7' # 2.2
networks:
main:
external: true
services:
proxy:
image: "traefik:v2.2"
container_name: reverse-proxy
restart: always
command:
@corusm
corusm / keybase.md
Last active November 26, 2020 19:35

Keybase proof

I hereby claim:

  • I am corusm on github.
  • I am corusm (https://keybase.io/corusm) on keybase.
  • I have a public key ASC9RnXowLSG50PWSc7shJ0oA3Ky1KnAGXdkVx7zdyv2iQo

To claim this, I am signing this object:

Self-Host Sharelatex Server

Create user

User erstellen mit Homeverzeichnis useradd -m test

Install Docker

Arch Linux (yay)

yay -S docker