Skip to content

Instantly share code, notes, and snippets.

View lc-at's full-sized avatar
🧀
eating cheese

Faiz Jazadi lc-at

🧀
eating cheese
View GitHub Profile
// SPDX-License-Identifier: GPL-2.0
/*
* @author Ammar Faizi <[email protected]> https://www.facebook.com/ammarfaizi2
* @license GPL-2.0
* @package tgvisd::Main::Preload
*
* Copyright (C) 2021 Ammar Faizi <[email protected]>
*/
#if defined(__linux__)
@lc-at
lc-at / 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 <[email protected]>'
services = [
{
'name': 'ssh',
'address': ('127.0.0.1', 22),