funny, i have no idea what i'm doing!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mini keyboard-activated console for Javascript | |
// Unobtrusive, comes with it's own CSS, appends to the html Body element. Configurable - change the password to whatever you want. | |
// Add new [method]s with miniConsole.methodTable[name] = your_function | |
// Made by Tyler Clarke circa 2022 A.D - use it however you want, but I'd be very disappointed if you avoided accrediting it ;) | |
let miniConsole = { | |
consoleEl: undefined, | |
password: "opensesame", | |
lock: "", | |
showed: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Socket includes | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> | |
#include <cstring> | |
#include <fcntl.h> | |
// STD includes | |
#include <thread> | |
#include <string> |