From a1789a96d9567aa87114717e3ec48a6258595c09 Mon Sep 17 00:00:00 2001 From: youainti Date: Thu, 17 Aug 2023 14:25:04 -0700 Subject: [PATCH] added some fundamental scripts I use --- .gitignore | 15 +++++++++++++++ compiletex | 19 +++++++++++++++++++ md2html | 6 ++++++ mds2htmls | 22 ++++++++++++++++++++++ scotty | 1 + tex_spell | 3 +++ 6 files changed, 66 insertions(+) create mode 100644 .gitignore create mode 100755 compiletex create mode 100755 md2html create mode 100755 mds2htmls create mode 100755 scotty create mode 100755 tex_spell diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6c0df6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +#Ignore specific things +checkuptimes +conda-freecad-dev.sh +ghostscript_pdf_appender +kompose +loghw.sh +logs/ +pluto +restart_cinnamon_help +sagemath_jupyterlab.sh +semaphores/ +sites_to_check.txt +templog +tikzit/ +update-zoom diff --git a/compiletex b/compiletex new file mode 100755 index 0000000..4bc5c8e --- /dev/null +++ b/compiletex @@ -0,0 +1,19 @@ +#!/bin/bash + +#Remove the .tex extention, it just messes up the bibliography +tex=${1%%\.tex} + +pdflatex $tex +biber $tex +pdflatex $tex +pdflatex $tex +pdflatex $tex + +echo +echo "Removing biliography database \n\t$tex" +rm $tex.bbl + +echo +echo Done +exit 0 + diff --git a/md2html b/md2html new file mode 100755 index 0000000..30a85df --- /dev/null +++ b/md2html @@ -0,0 +1,6 @@ +#!/bin/bash + +file="$1" + +echo ./"${file//'md'/'html'}" +pandoc $file -s --metadata pagetitle="kgjk.icu" -f markdown -t html5 --katex -o ./"${file//'md'/'html'}" diff --git a/mds2htmls b/mds2htmls new file mode 100755 index 0000000..369722d --- /dev/null +++ b/mds2htmls @@ -0,0 +1,22 @@ +#!/bin/bash + + + +for file in $(find md/ -name '*.md') +do + #I should really get some way to create individual page titles + + + + echo ./"${file//'md'/'html'}" + #Explanation of next line + #pandoc renders + # -s #gives a standalone html file + # --metadata pagetitle="EconStuff" # + # -f markdown + # -t html5 --mathjax + # $file + # -o ./"${file//'md'/'html'}" + pandoc $file -s --metadata pagetitle="kgjk.icu" -f markdown -t html5 --katex -o ./"${file//'md'/'html'}" +# pandoc -s --metadata pagetitle="EconStuff" -f markdown -t html5 $file -o ./"${file//'md'/'html'}" --mathjax="/node_modules/mathjax/es5/tex-chtml.js?config=TeX-AMS-MML_HTMLorMML" +done diff --git a/scotty b/scotty new file mode 100755 index 0000000..aa40e38 --- /dev/null +++ b/scotty @@ -0,0 +1 @@ +play -n -c1 synth whitenoise band -n 100 20 band -n 50 20 gain +25 fade h 1 864000 1 diff --git a/tex_spell b/tex_spell new file mode 100755 index 0000000..083230f --- /dev/null +++ b/tex_spell @@ -0,0 +1,3 @@ +#!/bin/bash + +aspell check --mode=tex "$1"