Skip to content

Instantly share code, notes, and snippets.

View ttycelery's full-sized avatar
🧀
eating cheese

Faiz Jazadi ttycelery

🧀
eating cheese
View GitHub Profile
// SPDX-License-Identifier: GPL-2.0
/*
* @author Ammar Faizi <ammarfaizi2@gmail.com> https://www.facebook.com/ammarfaizi2
* @license GPL-2.0
* @package tgvisd::Main::Preload
*
* Copyright (C) 2021 Ammar Faizi <ammarfaizi2@gmail.com>
*/
#if defined(__linux__)
@ttycelery
ttycelery / mux.py
Created January 7, 2020 11:29
pymux: run multiple services in one port (connection multiplexer)
import select
import socket
import socketserver
__author__ = 'loncat <me@lcat.dev>'
services = [
{
'name': 'ssh',
'address': ('127.0.0.1', 22),