Commit Graph

48 Commits

Author SHA1 Message Date
randomuser 3a4f18beb4 move imports to one line 2021-08-02 22:23:10 -05:00
randomuser b5af57d51d fix a silly grammar blunder 2021-08-02 22:20:59 -05:00
randomuser 2b88d770e2 add a paragraph about python3/2 support 2021-08-02 22:20:44 -05:00
randomuser 3db7b43c72 Logger.write() also calls print() 2021-07-29 23:49:31 -05:00
randomuser 17ac6cccba licensed under the agpl 3.0 2021-07-29 23:43:42 -05:00
randomuser 0cef6add89 the great documentation update 2021-07-29 23:10:25 -05:00
randomuser 252c63a0d5 add a flag, --gopherhost 2021-07-29 22:59:21 -05:00
randomuser bc1d100297 change action from extend to append 2021-07-29 21:00:41 -05:00
randomuser 79d8ea618a add help for -nx 2021-07-29 20:46:15 -05:00
randomuser a0815b341a add the shebang 2021-07-29 20:43:26 -05:00
randomuser 8545b74a1f add executable permission to esgd.py 2021-07-29 20:42:48 -05:00
randomuser 63dbf95994 add simple cgi script to sandbox 2021-07-29 20:42:11 -05:00
randomuser 27b1d258bb add documentation 2021-07-23 20:14:58 -05:00
randomuser e25d062322 add --nocgi and --direxc 2021-07-23 20:12:36 -05:00
randomuser 57124b797d add tentative service file for esgd 2021-07-23 14:39:39 -05:00
randomuser e2560d7ea1 add rest of sandbox 2021-07-23 14:29:29 -05:00
randomuser ec58745a3a remove some stuff from the gitignore 2021-07-23 14:29:05 -05:00
randomuser 0be76c0711 make a proper readme 2021-07-23 14:18:12 -05:00
randomuser ffbbb6f93b clean up the code, enforce 63 character limit 2021-07-20 12:50:52 -05:00
randomuser 4eda8f6d2c move argparsing to parseArgs() 2021-07-20 12:39:53 -05:00
randomuser c048fda55a add perimitive argparse support 2021-07-20 03:43:12 -05:00
randomuser 54a6c6eff9 add some simple error checking at startup 2021-07-20 03:31:02 -05:00
randomuser aab8672229 add a chdir call 2021-07-20 03:27:44 -05:00
randomuser 86cc88f6bf add a log message after switch user 2021-07-20 03:20:24 -05:00
randomuser 7d8b259a2f add a perimitive nobody switch user call 2021-07-20 03:18:48 -05:00
randomuser 4585792396 small bugfix in Logger.close() 2021-07-20 03:02:47 -05:00
randomuser d35296ef16 move log assignment and friends to be in-scope 2021-07-20 02:59:59 -05:00
randomuser b3a665448a add simple logging 2021-07-20 02:59:01 -05:00
randomuser c9f0dce189 add a simple logger 2021-07-20 02:55:32 -05:00
randomuser 08588b967f clean up the code 2021-07-20 02:44:48 -05:00
randomuser c194b01731 rename class gopherHandler to GopherHandler 2021-07-20 02:41:24 -05:00
randomuser cf6fd727a5 move server logic into its own class 2021-07-20 02:40:48 -05:00
randomuser 3c159a5729 move all the functions in the global namespace to the gopherHandler() class 2021-07-20 02:35:29 -05:00
randomuser a2ac3369e4 simplify serveFile some more 2021-07-20 02:14:27 -05:00
randomuser 393e06bb6c add fileToFileArray(...) function 2021-07-20 02:13:47 -05:00
randomuser 6902236940 remove sendFile(...) function 2021-07-20 02:12:56 -05:00
randomuser 5cb3a8c460 simplify serveFile 2021-07-20 02:10:17 -05:00
randomuser b690b8f571 move file serving logic to serveFile(...) 2021-07-20 02:04:52 -05:00
randomuser 581aa7d1d7 remove one tiny debugging line 2021-07-20 00:07:04 -05:00
randomuser df0278be76 add .gitignore 2021-07-20 00:06:03 -05:00
randomuser 99befdabca change variable names HOST, PORT to host, port 2021-07-19 17:16:26 -05:00
randomuser 6c711ae3da integrate parser into server 2021-07-19 17:15:39 -05:00
randomuser b6de76f44d add perimitive gopher parser 2021-07-19 16:17:45 -05:00
randomuser 44213df44a replace the quotes 2021-07-19 16:16:54 -05:00
randomuser bd50cd7e1e simplify the file sending code so the canonical implimentation is sendFileArray 2021-07-19 15:20:26 -05:00
randomuser f7b79fdc1b the server is somewhat usable now 2021-07-19 15:11:31 -05:00
randomuser fbeb1d2584 prototype 2021-07-18 23:24:08 -05:00
randomuser 1120770246 add readme 2021-07-18 23:23:56 -05:00