summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-06-10src:update copyright yearAaron Ball
2023-05-25Better organize main qs handling and improve 404Aaron Ball
This moves page handling logic into a new function, `handle_page`, and special qs handling logic to `handle_special`. This keeps code better organized. This also better handles 404 pages. If a custom 404.html is available, it is treated as a normal page and parsed correctly. If none exists, a generic 404 is sent in all scenarios where no logic handled the query string.
2023-05-25Support special request for client headersAaron Ball
This will print all HTTP headers the client sends to the server.
2023-05-25main:import unistdAaron Ball
This is for access. Whoops!
2023-05-25Remove file_exists functionAaron Ball
This is easily replaced with the `access` function.
2022-10-31src/common/catfile: Replace printf with putcharAaron Ball
This should be much faster.
2021-01-17j2_cat:switch printf to puts where appropriateAaron Ball
This should reduce cpu cycles since the format strings were unused other than just to print to stdout.
2021-01-17Fix j2_cat segfault on long linesAaron Ball
Increase j2 max line len and buffer a bit and fix a printf statement that was just printing the input string in place of the format string. Now it prints a format of "%s", with the first argument being the input string now. Whoops.
2020-12-29j2:Add support for inline shell directiveimplement-runshAaron Ball
This allows for render-time shell command input to the output document. This also simplifies the j2_readvar function to make it handle input line by line rather than as a pure stream, character by character, which had incredibly complex logic and was very brittle. The new method is more durable, though is a bit less efficient due to reprocessing the string, though it no longer seeks back and forth. Add j2_strstr function and better protect against buffer overflow This also updates the librem 5 no wifi post to print the current date and time at pageload.
2020-10-25Refactored read title function to work in more casesAaron Ball
Moved the function to common.c/h. It now handles header tags with additional xml properties inline. This also removes the implicit colon inserted before the title, which previously yielded strange page titles on pages that did not define one.
2019-12-07Initial commit of CGI conversionAaron Ball
This introduces the C code that will build out the index rendering cgi program. It supports three query string keys, 404 pages, and printing of requestor ip (?q=ip) and user agent (?q=agent). Remove index.php and info.php. These are no longer needed as their functionality is replaced by the new CGI program. Makefile:add src and clean targets to build the source and clean up build artifacts, respectively. Add header and footer j2 files to replace the old header and footer php files. Deleted old php variants.
2017-12-02Moved all posts under src to new posts directoryAaron Ball
This allows the src directory to be used for other things (like cgi code).
2017-10-16Scheduling jobs in Linux:fixt doctitle spellingAaron Ball
2017-10-15bash:waitpid function:Added section headers and doc titleAaron Ball
2017-10-15bash:waitpid_function:Added to index scripting sectionAaron Ball
2017-10-15Wrote bash:waitpid functionAaron Ball
2017-10-15Merge branch 'git-automate-http-creds'Aaron Ball
2017-10-15Rename of .ascii files to .adocAaron Ball
Originally, .ascii was used because .asciidoc was far too long. The .adoc extension is more standard, shorter, and vim syntax highlighting recognizes it.
2017-10-15Wrote git:secure automated http credentialsAaron Ball
2017-07-13Wrote pny_micro_sleep benchmarkAaron Ball
2017-07-09about:Updated contentAaron Ball
Updated email addresses. Also updated the about me section with more up-to-date and descriptive text. Also removed the references to my twitter account, since that is currently buried under tumble weeds and sand.
2017-05-08Wrote Process:Versioning SchemesAaron Ball
This post details what is (hopefully) a useful, flexible versioning scheme that other people can use (it's a very subjective matter, so quite possibly not). Updated index.php. Added new post to 'New Posts' section and removed another.
2017-05-08Wrote bash:Mock Objects/CommandsAaron Ball
This post details how to write a framework that behaves somewhat like mock objects in other more complex languages.
2017-01-18linux_dev:detecting escape char supportAaron Ball
Fixed bug in the c code. Also updated description for the last paragraph.
2016-12-22Added linux dev escape char detection to linux sectionAaron Ball
2016-12-22Linux dev: detecting stdout escape char supportAaron Ball
Finished this post and added to index
2016-10-27index:added linux_desktop:password_managementAaron Ball
2016-10-14Android:My Phone configuration: Updated flym to sparssAaron Ball
2016-08-04linux development:detecting output typeAaron Ball
Finished bash section. Started writing section explaining how it works using C.
2016-08-03Linux Dev:Detecting output typeAaron Ball
More work. Also updated style.css to support terminal styles for paragraphs as well as pre.
2016-08-03linux_dev:detecting output typeAaron Ball
Testing a few asciidoc nuances
2016-08-03Linux Dev:Detecting output typeAaron Ball
Fixed incorrect role syntax
2016-08-03Linux Development:Detecting Output TypeAaron Ball
Initial commit
2016-04-25Initial commit of Touro S 1 TB benchmark postAaron Ball
2016-04-24Updated Updating SSH Keys Across an EnvironmentAaron Ball
2016-04-19Updated some bad image referencesAaron Ball
2016-04-19Removed iohq_status pageAaron Ball
This isn't really pertinent anymore.
2016-04-19Updated nullspoon github linksAaron Ball
Now all point to their respective locations in the cgit instance at https://oper.io/src.
2016-02-15Sysrq post: Fixed definition listAaron Ball
2016-02-15Updated index with sysrq-trigger postAaron Ball
2016-02-15Initial commit of Linux:Manual Restart with sysrq-triggerAaron Ball
2016-02-01Added Crux Linux:Faster Builds to indexAaron Ball
2016-02-01Added Crux_Linux:Faster BuildsAaron Ball
2015-11-12Grammar fixAaron Ball
2015-11-12Index:Moved Understanding the Bash Fork BombAaron Ball
Accidentally put it under the Git section. It belongs under Scripting.
2015-11-12Wrote Understanding the Bash Fork BombAaron Ball
Updated index for this post
2015-11-01Updated indexAaron Ball
2015-11-01Just a little reorgAaron Ball
2015-11-01Commit of Gentoo:Converting Portage to GitAaron Ball
2015-11-01Fixed another single quoteAaron Ball

Generated by cgit