Skip to content

Instantly share code, notes, and snippets.

View misterunknown's full-sized avatar

Marco Dickert misterunknown

View GitHub Profile
#!/usr/bin/env python3
import asyncio
import datetime
import random
import websockets
USERS = set()
async def register(websocket):
USERS.add(websocket)
@misterunknown
misterunknown / alpine-virtual-desktop.sh
Created March 29, 2019 13:47
Alpine Linux: Virtual Desktop installation
#!/bin/sh
#
# This script installs a virtual desktop using Xvfb, x11vnc, mate-desktop,
# mate-session-manager and Apache Guacamole. It runs on Alpine Linux Edge.
#
# See also:
# https://www.reddit.com/r/selfhosted/comments/b6k8go/poc_a_desktop_in_a_container_on_a_server/
# This is the user, under which the MATE desktop will run
# Notice: For several reasons this shouldn't be root
@misterunknown
misterunknown / jdownloader.sh
Created September 20, 2016 13:54
init script for jdownloader
#!/bin/sh
### BEGIN INIT INFO
# Provides: jdownloader
# Required-Start: $networking
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: JDownloader
### END INIT INFO