The code for this service has been moved to this GitHub repository.
This file contains hidden or 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
import os | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from pyngrok import ngrok | |
port = os.environ.get("PORT", "80") | |
server_address = ("", port) | |
httpd = HTTPServer(server_address, BaseHTTPRequestHandler) |
This file contains hidden or 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
# HOST="1.tcp.ngrok.io" PORT=12345 python server.py | |
import os | |
import socket | |
from pyngrok import ngrok | |
host = os.environ.get("HOST") | |
port = int(os.environ.get("PORT")) |
This file contains hidden or 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
#include <dirent.h> | |
#include <iterator> | |
#include <cstdlib> | |
#include <cstring> | |
#include <sstream> | |
#include <iostream> | |
#include <stdlib.h> | |
#include <string> | |
#include <sys/stat.h> | |
#include <syslog.h> |
NewerOlder