Skip to content

Instantly share code, notes, and snippets.

View tobiaswx's full-sized avatar
💭
I may be slow to respond.

Tobias tobiaswx

💭
I may be slow to respond.
  • Germany / Austria
  • 06:47 (UTC +02:00)
View GitHub Profile
@tobiaswx
tobiaswx / 99-usb-cdrom.rules
Created September 25, 2022 07:45 — forked from emilyst/99-usb-cdrom.rules
Description for getting MakeMKV working on Synology with DSM 7 using jlesage/makemkv via Docker Compose
SUBSYSTEMS=="usb", ATTRS{idVendor}=="", ATTRS{idProduct}=="", GROUP="cdrom", MODE="0666"
@tobiaswx
tobiaswx / gist:933a5a2f9f4e2c3e358bb64d45d84219
Created June 25, 2021 22:25 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@tobiaswx
tobiaswx / Process.kt
Created May 21, 2021 23:54
Kotlin/JS NodeJs Process Class
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonObject
// The variables and functions I use most according to: https://nodejs.org/api/process.html#process_process_env
@JsName("process")
external object Process {
val argv: Array<String>
val env: dynamic
val arch: String
@tobiaswx
tobiaswx / docker-volume-directory.md
Created May 7, 2021 21:41 — forked from giansalex/docker-volume-directory.md
Docker volume in specify path (Linux)

Create docker volume

Create new docker volume in specific path.

Create Directory to save volume data

mkdir -p /mnt/xxxx/volume/data

Create volume with above path

@tobiaswx
tobiaswx / Regex.txt
Last active May 21, 2020 20:40
Regex | Regular Expression to identify YouTube-URLs with video-id match
https://regex101.com/r/l0m7yh/3
Regex: ^(https?\:\/\/)?(www\.)?(youtube\.com|youtu\.?be)(\/)?(embed\/)?(watch\?v=|\?v=)?(?<video_id>.*)$
Group 7 / 'video_id' includes the video-id
Testes with examples like:
https://www.youtube.com/watch?v=osz5tVY97dQ
https://youtube.com/watch?v=osz5tVY97dQ
https://youtube.com/osz5tVY97dQ