aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-15 14:50:42 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-15 14:50:42 -0500
commit35eb8cb456bfa1c62ee569465283fd6324c177d8 (patch)
treefedfd3c7db9cb5bcf9f10536f70dd3878973b967
parentc012e5b4d60ad4567bd27d08753ad2e93c5e22a9 (diff)
added minimun perl script, uwsgi ini, and barebones format
-rw-r--r--format.tex1
-rwxr-xr-xminimun25
-rw-r--r--minimun.ini5
3 files changed, 31 insertions, 0 deletions
diff --git a/format.tex b/format.tex
new file mode 100644
index 0000000..9789bd0
--- /dev/null
+++ b/format.tex
@@ -0,0 +1 @@
+bruh moment\par
diff --git a/minimun b/minimun
new file mode 100755
index 0000000..92abe33
--- /dev/null
+++ b/minimun
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+use IPC::Run qw(run);
+
+my ($in, $out);
+
+$in .= "\\relax\n";
+
+open(FORMAT, '<', 'format.tex');
+while (my $line = <FORMAT>){
+ $in .= $line;
+}
+close(FORMAT);
+
+$in .= "bruh\n";
+$in .= "\\bye\n";
+
+run ['/usr/bin/pdftex'], '<', \$in, '>', \$out;
+print "Content-type: application/pdf\n\n";
+open(DOC, '<', 'texput.pdf');
+while (<DOC>){
+ print;
+}
diff --git a/minimun.ini b/minimun.ini
new file mode 100644
index 0000000..9b6d890
--- /dev/null
+++ b/minimun.ini
@@ -0,0 +1,5 @@
+[uwsgi]
+master = true
+plugins = cgi
+socket = 127.0.0.1:8080
+cgi = /home/czar/minimun/minimun