Skip to content

Instantly share code, notes, and snippets.

View Nikos410's full-sized avatar
🎺

Nikos Epping Nikos410

🎺
View GitHub Profile
#!/usr/bin/zsh
set -e
setopt EXTENDED_GLOB
echo "URL?"
read url
uuid=$(uuidgen)
work_directory="/tmp/yt-dl/$uuid"
@Nikos410
Nikos410 / openapi-spec-with-inheritance.json
Created August 17, 2022 07:56
Openapi spec with inheritance.
{
"openapi": "3.0.1",
"info": {
"title": "Example",
"version": "1"
},
"paths": {},
"components": {
"schemas": {
"BranchDto": {
@Nikos410
Nikos410 / mattermost-solarized-dark-custom.json
Created October 20, 2021 10:12
My customized solarized-dark theme for Mattermost 6
{
"awayIndicator": "#e0b333",
"buttonBg": "#859900",
"buttonColor": "#fdf6e3",
"centerChannelBg": "#073642",
"centerChannelColor": "#93a1a1",
"codeTheme": "solarized-dark-custom",
"dndIndicator": "#d24b4e",
"errorTextColor": "#dc322f",
"linkColor": "#268bd2",
@Nikos410
Nikos410 / docker-compose.yml
Last active September 9, 2024 21:52
Signal TLS proxy behind Traefik
version: '3'
services:
nginx-relay:
build: ./nginx-relay/
restart: unless-stopped
volumes:
- ./data/nginx-relay:/etc/nginx/conf.d
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
expose:
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import TimedAnimation
from matplotlib.animation import FuncAnimation
import math
import serial
import threading