diff --git a/admin/1337-Noms-The-Hacker-Cookbook.code-workspace b/.admin/1337-Noms-The-Hacker-Cookbook.code-workspace similarity index 100% rename from admin/1337-Noms-The-Hacker-Cookbook.code-workspace rename to .admin/1337-Noms-The-Hacker-Cookbook.code-workspace diff --git a/admin/CONTRIBUTING.md b/.admin/CONTRIBUTING.md similarity index 89% rename from admin/CONTRIBUTING.md rename to .admin/CONTRIBUTING.md index 5d0d453..f6500a6 100644 --- a/admin/CONTRIBUTING.md +++ b/.admin/CONTRIBUTING.md @@ -5,14 +5,14 @@ eclectic mix of dishes from around the hacker community. Tell us about your favorite recipe or something you like to make with your own unique twist. Feel free to include a recommendation for booze pairing. -General questions should be directed to: +General questions should be directed to the maintainers: * [\@iheartmalware](https://twitter.com/iheartmalware) -* [\@thedevilsvoice](https://twitter.com/thedevilsvoice). +* [\@thedevilsvoice](https://twitter.com/thedevilsvoice) -We can\'t promise that all submissions will be included in the final -printed book. We do plan to leave this repo up indefinitely. We intend -to give any proceeds to a charitable cause of our choosing. +* We can\'t promise that all submissions will be included in the final printed book. +* We do plan to leave this repo up indefinitely. +* We intend to give any proceeds to a charitable cause of our choosing. ## Submissions diff --git a/admin/Makefile.am b/.admin/Makefile.am similarity index 87% rename from admin/Makefile.am rename to .admin/Makefile.am index 9e9fc10..961c130 100644 --- a/admin/Makefile.am +++ b/.admin/Makefile.am @@ -7,7 +7,8 @@ clean: rm -rf _build *.egg-info @find . -name '*.pyc' | xargs rm -rf @find . -name '__pycache__' | xargs rm -rf - @for trash in aclocal.m4 autom4te.cache config config.log config.status configure configure~ libtool Makefile Makefile.in docker/cloudbot/Makefile docker/cloudbot/Makefile.in; do \ + @for trash in aclocal.m4 autom4te.cache config config.log config.status configure configure~ \ + libtool Makefile Makefile.in docker/Makefile docker/Makefile.in; do \ if [ -f $$trash ] || [ -d $$trash ]; then \ echo "Removing $$trash" ;\ rm -rf $$trash ;\ diff --git a/.admin/README.md b/.admin/README.md new file mode 100644 index 0000000..0c0916c --- /dev/null +++ b/.admin/README.md @@ -0,0 +1,15 @@ +# admin + +Various maintenance tools. + +## :blue_book: Generate the Book :orange_book: + +You can generate a PDF of this book. + +- Set up the dev environment [as explained in the docs](docs/nix.md) + +## Make utility + +### make docker + +Build a Docker container with the application. diff --git a/.admin/SECURITY.md b/.admin/SECURITY.md new file mode 100644 index 0000000..7990b32 --- /dev/null +++ b/.admin/SECURITY.md @@ -0,0 +1,15 @@ +# Security Policy + +* Using [Mend Renovate](https://github.com/marketplace/renovate) to scan for dependency issues. + +## Supported Versions + +All versions of this project are currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 0.1 | :white_check_mark: | + +## Reporting a Vulnerability + +Use [the "issues" tab in this repo](https://github.com/EAD10C5/1337-Noms-The-Hacker-Cookbook/issues) to report security issues. diff --git a/admin/aclocal/latex-m4/_ac_latex_test.m4 b/.admin/aclocal/latex-m4/_ac_latex_test.m4 similarity index 100% rename from admin/aclocal/latex-m4/_ac_latex_test.m4 rename to .admin/aclocal/latex-m4/_ac_latex_test.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_class.m4 b/.admin/aclocal/latex-m4/ac_latex_class.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_class.m4 rename to .admin/aclocal/latex-m4/ac_latex_class.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_class_article.m4 b/.admin/aclocal/latex-m4/ac_latex_class_article.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_class_article.m4 rename to .admin/aclocal/latex-m4/ac_latex_class_article.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_class_book.m4 b/.admin/aclocal/latex-m4/ac_latex_class_book.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_class_book.m4 rename to .admin/aclocal/latex-m4/ac_latex_class_book.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_class_report.m4 b/.admin/aclocal/latex-m4/ac_latex_class_report.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_class_report.m4 rename to .admin/aclocal/latex-m4/ac_latex_class_report.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_classes.m4 b/.admin/aclocal/latex-m4/ac_latex_classes.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_classes.m4 rename to .admin/aclocal/latex-m4/ac_latex_classes.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_dvips_o_stdout.m4 b/.admin/aclocal/latex-m4/ac_latex_dvips_o_stdout.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_dvips_o_stdout.m4 rename to .admin/aclocal/latex-m4/ac_latex_dvips_o_stdout.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_dvips_t.m4 b/.admin/aclocal/latex-m4/ac_latex_dvips_t.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_dvips_t.m4 rename to .admin/aclocal/latex-m4/ac_latex_dvips_t.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_dvips_t_a4.m4 b/.admin/aclocal/latex-m4/ac_latex_dvips_t_a4.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_dvips_t_a4.m4 rename to .admin/aclocal/latex-m4/ac_latex_dvips_t_a4.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_dvips_t_a4_landscape.m4 b/.admin/aclocal/latex-m4/ac_latex_dvips_t_a4_landscape.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_dvips_t_a4_landscape.m4 rename to .admin/aclocal/latex-m4/ac_latex_dvips_t_a4_landscape.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_dvips_t_letter.m4 b/.admin/aclocal/latex-m4/ac_latex_dvips_t_letter.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_dvips_t_letter.m4 rename to .admin/aclocal/latex-m4/ac_latex_dvips_t_letter.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_dvips_t_letter_landscape.m4 b/.admin/aclocal/latex-m4/ac_latex_dvips_t_letter_landscape.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_dvips_t_letter_landscape.m4 rename to .admin/aclocal/latex-m4/ac_latex_dvips_t_letter_landscape.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_package.m4 b/.admin/aclocal/latex-m4/ac_latex_package.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_package.m4 rename to .admin/aclocal/latex-m4/ac_latex_package.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_package_amsmath.m4 b/.admin/aclocal/latex-m4/ac_latex_package_amsmath.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_package_amsmath.m4 rename to .admin/aclocal/latex-m4/ac_latex_package_amsmath.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_package_fontenc.m4 b/.admin/aclocal/latex-m4/ac_latex_package_fontenc.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_package_fontenc.m4 rename to .admin/aclocal/latex-m4/ac_latex_package_fontenc.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_package_input.m4 b/.admin/aclocal/latex-m4/ac_latex_package_input.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_package_input.m4 rename to .admin/aclocal/latex-m4/ac_latex_package_input.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_package_opt.m4 b/.admin/aclocal/latex-m4/ac_latex_package_opt.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_package_opt.m4 rename to .admin/aclocal/latex-m4/ac_latex_package_opt.m4 diff --git a/admin/aclocal/latex-m4/ac_latex_packages.m4 b/.admin/aclocal/latex-m4/ac_latex_packages.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_latex_packages.m4 rename to .admin/aclocal/latex-m4/ac_latex_packages.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_bibtex.m4 b/.admin/aclocal/latex-m4/ac_prog_bibtex.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_bibtex.m4 rename to .admin/aclocal/latex-m4/ac_prog_bibtex.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_dvibook.m4 b/.admin/aclocal/latex-m4/ac_prog_dvibook.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_dvibook.m4 rename to .admin/aclocal/latex-m4/ac_prog_dvibook.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_dvipdf.m4 b/.admin/aclocal/latex-m4/ac_prog_dvipdf.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_dvipdf.m4 rename to .admin/aclocal/latex-m4/ac_prog_dvipdf.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_dvips.m4 b/.admin/aclocal/latex-m4/ac_prog_dvips.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_dvips.m4 rename to .admin/aclocal/latex-m4/ac_prog_dvips.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_fig2dev.m4 b/.admin/aclocal/latex-m4/ac_prog_fig2dev.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_fig2dev.m4 rename to .admin/aclocal/latex-m4/ac_prog_fig2dev.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_gnuplot.m4 b/.admin/aclocal/latex-m4/ac_prog_gnuplot.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_gnuplot.m4 rename to .admin/aclocal/latex-m4/ac_prog_gnuplot.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_gunzip.m4 b/.admin/aclocal/latex-m4/ac_prog_gunzip.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_gunzip.m4 rename to .admin/aclocal/latex-m4/ac_prog_gunzip.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_gzip.m4 b/.admin/aclocal/latex-m4/ac_prog_gzip.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_gzip.m4 rename to .admin/aclocal/latex-m4/ac_prog_gzip.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_jpeg2ps.m4 b/.admin/aclocal/latex-m4/ac_prog_jpeg2ps.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_jpeg2ps.m4 rename to .admin/aclocal/latex-m4/ac_prog_jpeg2ps.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_jpegtopnm.m4 b/.admin/aclocal/latex-m4/ac_prog_jpegtopnm.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_jpegtopnm.m4 rename to .admin/aclocal/latex-m4/ac_prog_jpegtopnm.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_kpsewhich.m4 b/.admin/aclocal/latex-m4/ac_prog_kpsewhich.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_kpsewhich.m4 rename to .admin/aclocal/latex-m4/ac_prog_kpsewhich.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_latex.m4 b/.admin/aclocal/latex-m4/ac_prog_latex.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_latex.m4 rename to .admin/aclocal/latex-m4/ac_prog_latex.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_latex2html.m4 b/.admin/aclocal/latex-m4/ac_prog_latex2html.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_latex2html.m4 rename to .admin/aclocal/latex-m4/ac_prog_latex2html.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_latex2man.m4 b/.admin/aclocal/latex-m4/ac_prog_latex2man.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_latex2man.m4 rename to .admin/aclocal/latex-m4/ac_prog_latex2man.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_latex2png.m4 b/.admin/aclocal/latex-m4/ac_prog_latex2png.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_latex2png.m4 rename to .admin/aclocal/latex-m4/ac_prog_latex2png.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_latex2rtf.m4 b/.admin/aclocal/latex-m4/ac_prog_latex2rtf.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_latex2rtf.m4 rename to .admin/aclocal/latex-m4/ac_prog_latex2rtf.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_makeindex.m4 b/.admin/aclocal/latex-m4/ac_prog_makeindex.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_makeindex.m4 rename to .admin/aclocal/latex-m4/ac_prog_makeindex.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_mf.m4 b/.admin/aclocal/latex-m4/ac_prog_mf.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_mf.m4 rename to .admin/aclocal/latex-m4/ac_prog_mf.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_mktexpk.m4 b/.admin/aclocal/latex-m4/ac_prog_mktexpk.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_mktexpk.m4 rename to .admin/aclocal/latex-m4/ac_prog_mktexpk.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_pdflatex.m4 b/.admin/aclocal/latex-m4/ac_prog_pdflatex.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_pdflatex.m4 rename to .admin/aclocal/latex-m4/ac_prog_pdflatex.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_pngtopnm.m4 b/.admin/aclocal/latex-m4/ac_prog_pngtopnm.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_pngtopnm.m4 rename to .admin/aclocal/latex-m4/ac_prog_pngtopnm.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_pnmtops.m4 b/.admin/aclocal/latex-m4/ac_prog_pnmtops.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_pnmtops.m4 rename to .admin/aclocal/latex-m4/ac_prog_pnmtops.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_ps2pdf.m4 b/.admin/aclocal/latex-m4/ac_prog_ps2pdf.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_ps2pdf.m4 rename to .admin/aclocal/latex-m4/ac_prog_ps2pdf.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_psbook.m4 b/.admin/aclocal/latex-m4/ac_prog_psbook.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_psbook.m4 rename to .admin/aclocal/latex-m4/ac_prog_psbook.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_psnup.m4 b/.admin/aclocal/latex-m4/ac_prog_psnup.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_psnup.m4 rename to .admin/aclocal/latex-m4/ac_prog_psnup.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_psresize.m4 b/.admin/aclocal/latex-m4/ac_prog_psresize.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_psresize.m4 rename to .admin/aclocal/latex-m4/ac_prog_psresize.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_psselect.m4 b/.admin/aclocal/latex-m4/ac_prog_psselect.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_psselect.m4 rename to .admin/aclocal/latex-m4/ac_prog_psselect.m4 diff --git a/admin/aclocal/latex-m4/ac_prog_texhash.m4 b/.admin/aclocal/latex-m4/ac_prog_texhash.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_prog_texhash.m4 rename to .admin/aclocal/latex-m4/ac_prog_texhash.m4 diff --git a/admin/aclocal/latex-m4/ac_texmf_path.m4 b/.admin/aclocal/latex-m4/ac_texmf_path.m4 similarity index 100% rename from admin/aclocal/latex-m4/ac_texmf_path.m4 rename to .admin/aclocal/latex-m4/ac_texmf_path.m4 diff --git a/admin/aclocal/latex.m4 b/.admin/aclocal/latex.m4 similarity index 100% rename from admin/aclocal/latex.m4 rename to .admin/aclocal/latex.m4 diff --git a/admin/bin/formatting.sh b/.admin/bin/formatting.sh similarity index 95% rename from admin/bin/formatting.sh rename to .admin/bin/formatting.sh index 2812358..d1d16f2 100755 --- a/admin/bin/formatting.sh +++ b/.admin/bin/formatting.sh @@ -57,7 +57,6 @@ function path_setup() { fi } - function shell_script_fmt() { echo -e "${CYAN}Formatting shell scripts...${NC}" shfmt -i 2 -l -w ../bootstrap.sh @@ -76,15 +75,15 @@ function convert_rst_to_md() { fi } -function format_markdown(){ +function format_markdown() { FILES=*.md for f in $FILES; do filename="${f%.*}" echo "Removing spaces from ${filename}.md" - cat ${filename}.md | tr -s ' ' > /tmp/tmp_file + cat ${filename}.md | tr -s ' ' >/tmp/tmp_file mv /tmp/tmp_file ${filename}.md echo "Running markdown lint on ${filename}.md" - mdl ${filename}.md + mdl ${filename}.md done } @@ -94,4 +93,4 @@ function main() { format_markdown } -main "$@" \ No newline at end of file +main "$@" diff --git a/.admin/bin/generate_book.sh b/.admin/bin/generate_book.sh new file mode 100755 index 0000000..ed96db4 --- /dev/null +++ b/.admin/bin/generate_book.sh @@ -0,0 +1,152 @@ +#!/usr/bin/env bash +# +# SPDX-FileCopyrightText: 2023 DE:AD:10:C5 +# +# SPDX-License-Identifier: GPL-3.0-or-later + +set -euo pipefail +#IFS=$'\n\t' + +#Black 0;30 Dark Gray 1;30 +#Red 0;31 Light Red 1;31 +#Green 0;32 Light Green 1;32 +#Brown/Orange 0;33 Yellow 1;33 +#Blue 0;34 Light Blue 1;34 +#Purple 0;35 Light Purple 1;35 +#Cyan 0;36 Light Cyan 1;36 +#Light Gray 0;37 White 1;37 + +RED='\033[0;31m' +LRED='\033[1;31m' +LGREEN='\033[1;32m' +CYAN='\033[0;36m' +LCYAN='\033[1;36m' +LPURP='\033[1;35m' +YELLOW='\033[1;33m' +NC='\033[0m' # No Color + +# --- Some config Variables ---------------------------------------- +CATEGORIES=("APPETIZERS" "BREAKFAST" "COOKWARE" "DESSERTS" "DRINKS" "ENTREES" "SAUCES" "SIDES" "SNACKS") +LOGGING_DIR="/tmp/cookbook/log" +MY_DATE=$(date '+%Y-%m-%d-%H') +MY_PWD="${PWD}" +RAW_OUTPUT="${LOGGING_DIR}/generate_cookbook_${MY_DATE}.txt" # log file name +TEX_DIR="/tmp/cookbook" +TEX_OUTPUT="${TEX_DIR}/hacker_cookbook.tex" + +function directory_setup() { + + # ##### LaTeX ##### + if [ ! -d "${TEX_DIR}" ]; then + #echo -e "${LRED}Creating LaTeX dir: ${LCYAN}${TEX_DIR}${NC}" + mkdir -p ${TEX_DIR} + fi + + # ##### Logging ##### + if [ ! -d "${LOGGING_DIR}" ]; then + #echo -e "${LRED}Creating log dir: ${LCYAN}${LOGGING_DIR}${NC}" + mkdir -p ${LOGGING_DIR} + fi + + # output the results + echo -e "\n${LCYAN}------------------ Building Cookbook ------------------${NC}" | tee -a "${RAW_OUTPUT}" + echo -e "${LGREEN}Log file path is: ${LCYAN}${RAW_OUTPUT}${NC}" | tee -a "${RAW_OUTPUT}" + echo -e "${LGREEN}LaTeX directory is: ${LCYAN}${TEX_DIR}${NC}" | tee -a "${RAW_OUTPUT}" +} + +# The frontmatter includes ToC, colophon, etc. +function frontmatter() { + echo -e "${LGREEN}Adding frontmatter...${NC}" | tee -a "${RAW_OUTPUT}" + + # Copy TeX files to tmp build dir + cp -Rp .admin/tex/frontmatter ${TEX_DIR} + cp .admin/tex/preamble.tex ${TEX_DIR} + cp -Rp .admin/images ${TEX_DIR} + + # build the front pages + cat .admin/tex/frontmatter/header.tex | tee -a "${TEX_OUTPUT}" + echo -e "\n" | tee -a "${TEX_OUTPUT}" + cat .admin/tex/frontmatter/frontmatter.tex | tee -a "${TEX_OUTPUT}" + echo -e "\n" | tee -a "${TEX_OUTPUT}" +} + +# the recipes +function mainmatter() { + COUNTER=0 + echo -e "${LGREEN}Adding mainmatter...${NC}" | tee -a "${RAW_OUTPUT}" + cat .admin/tex/mainmatter/mainmatter.tex | tee -a "${TEX_OUTPUT}" + + for i in ${CATEGORIES[@]}; do + echo -e "${LGREEN}Copying folder: ${LCYAN}${i}${NC}" | tee -a "${RAW_OUTPUT}" + cp -Rp ${i} ${TEX_DIR} + + # start with the section header + if [ -f "${TEX_DIR}/${i}/section.tex" ]; then + echo -e "${LGREEN}Found section header: ${LCYAN}${TEX_DIR}/${i}/section.tex${NC}" | tee -a "${RAW_OUTPUT}" + NEW_DIR=$(echo "${TEX_DIR}/${i}/images/" | sed 's@/@\\/@g') + echo -e "${LGREEN}Update image path in section header to: ${LCYAN}${NEW_DIR}${NC}" | tee -a "${RAW_OUTPUT}" + sed -i -e "s/images\//${NEW_DIR}/g" ${TEX_DIR}/${i}/section.tex + cat ${TEX_DIR}/${i}/section.tex | tee -a "${TEX_OUTPUT}" + fi + + THESE_FILES=$(ls ${TEX_DIR}/${i}/*.md) + for j in $THESE_FILES; do + sed -i -e "s/images\//${NEW_DIR}/g" ${j} # fix image directory + sed -i 's|^#|##|' ${j} # fix the markdown heading level + echo -e "${LGREEN}Adding recipe: ${LCYAN}${j}${NC}" | tee -a "${RAW_OUTPUT}" + echo "\pagebreak" | tee -a "${TEX_OUTPUT}" # new page for every recipe + echo "\markdownInput{${j}}" | tee -a "${TEX_OUTPUT}" + ((COUNTER += 1)) # increment recipe count + done + done +} + +function backmatter() { + echo -e "${LGREEN}Adding backmatter...${NC}" | tee -a "${RAW_OUTPUT}" + cat .admin/tex/backmatter/backmatter.tex \ + .admin/tex/backmatter/end.tex | tee -a "${TEX_OUTPUT}" +} + +function cleanup() { + echo "Cleaning up..." | tee -a "${RAW_OUTPUT}" + + # copy final file to original dir + if [ -f "${TEX_DIR}/hacker_cookbook.pdf" ]; then + echo -e "${LGREEN}Copying PDF to project dir: ${LCYAN}$${TEX_DIR}/hacker_cookbook.pdf${NC}" | tee -a "${RAW_OUTPUT}" + cp ${TEX_DIR}/hacker_cookbook.pdf ${MY_PWD} + else + echo -e "${LRED}PPDF generation failed.${NC}" + fi + + # Blow away the temp working dir + if [ -d "${TEX_DIR}" ]; then + echo -e "${LGREEN}Erase tmp build dir: ${LCYAN}${TEX_DIR}${NC}" | tee -a "${RAW_OUTPUT}" + rm -rf ${TEX_DIR} + fi +} + +function main() { + + # Check to see if script is being run from correct relative path + if [ ! -f ".admin/bin/generate_book.sh" && ! -d ".admin/tex" ]; then + echo -e "${LRED}Please run this tool from top level of repo clone${NC}" + exit 1 + fi + + directory_setup + + # remove any stale output file + if [ -f "${TEX_OUTPUT}" ]; then rm ${TEX_OUTPUT} && touch ${TEX_OUTPUT}; fi + + frontmatter + mainmatter + echo -e "${LGREEN}Processed ${COUNTER} recipes total.${NC}" | tee -a "${RAW_OUTPUT}" + backmatter + + cp ${TEX_OUTPUT} ${MY_PWD}/.admin/tex + cd ${TEX_DIR} && latexmk -pdf -file-line-error -interaction=nonstopmode -synctex=1 -shell-escape hacker_cookbook + + cleanup +} + +main "$@" diff --git a/admin/bootstrap.sh b/.admin/bootstrap.sh similarity index 100% rename from admin/bootstrap.sh rename to .admin/bootstrap.sh diff --git a/admin/configure.ac b/.admin/configure.ac similarity index 98% rename from admin/configure.ac rename to .admin/configure.ac index 63299cb..fd521d1 100644 --- a/admin/configure.ac +++ b/.admin/configure.ac @@ -59,7 +59,7 @@ AC_PROG_DVIBOOK AC_CONFIG_FILES([ Makefile - cookbook/Makefile + tex/Makefile ]) # files to generate, one per line AC_OUTPUT diff --git a/admin/docker/.env b/.admin/docker/.env similarity index 100% rename from admin/docker/.env rename to .admin/docker/.env diff --git a/admin/docker/Dockerfile b/.admin/docker/Dockerfile similarity index 100% rename from admin/docker/Dockerfile rename to .admin/docker/Dockerfile diff --git a/admin/docker/README.md b/.admin/docker/README.md similarity index 100% rename from admin/docker/README.md rename to .admin/docker/README.md diff --git a/admin/docker/docker-compose.yml b/.admin/docker/docker-compose.yml similarity index 100% rename from admin/docker/docker-compose.yml rename to .admin/docker/docker-compose.yml diff --git a/admin/images/Hacker1-1.jpg b/.admin/images/Hacker1-1.jpg similarity index 100% rename from admin/images/Hacker1-1.jpg rename to .admin/images/Hacker1-1.jpg diff --git a/admin/images/hacked.jpg b/.admin/images/hacked.jpg similarity index 100% rename from admin/images/hacked.jpg rename to .admin/images/hacked.jpg diff --git a/admin/src/__init__.py b/.admin/src/__init__.py similarity index 100% rename from admin/src/__init__.py rename to .admin/src/__init__.py diff --git a/admin/src/requirements.txt b/.admin/src/requirements.txt similarity index 100% rename from admin/src/requirements.txt rename to .admin/src/requirements.txt diff --git a/admin/cookbook/Makefile.am b/.admin/tex/Makefile.am similarity index 74% rename from admin/cookbook/Makefile.am rename to .admin/tex/Makefile.am index e7bc0cc..bc764cd 100644 --- a/admin/cookbook/Makefile.am +++ b/.admin/tex/Makefile.am @@ -5,7 +5,7 @@ clean: rm -rf _build *.egg-info @find . -name '*.pyc' | xargs rm -rf @find . -name '__pycache__' | xargs rm -rf - @for trash in *.aux *.bbl *.blg *.lof *.log *.lot *.out *.pdf *.synctex.gz *.toc ; do \ + @for trash in *.aux *.bbl *.blg *.err *.fdb_latexmk *.fls *.idx *.lof *.log *.lot *.lua *.out *.pdf *.synctex.gz *.toc Makefile Makefile.in _markdown_hacker_cookbook; do \ if [ -f "$$trash" ]; then rm -rf $$trash ; fi ; \ done diff --git a/admin/cookbook/backmatter/backmatter.tex b/.admin/tex/backmatter/backmatter.tex similarity index 73% rename from admin/cookbook/backmatter/backmatter.tex rename to .admin/tex/backmatter/backmatter.tex index 2c7fb3d..5a815e4 100644 --- a/admin/cookbook/backmatter/backmatter.tex +++ b/.admin/tex/backmatter/backmatter.tex @@ -1,4 +1,4 @@ % backmatter: appendix, bibliography, index, postface \backmatter{} -\printindex -\nocite{*} +%\printindex +%\nocite{*} diff --git a/admin/cookbook/backmatter/end.tex b/.admin/tex/backmatter/end.tex similarity index 100% rename from admin/cookbook/backmatter/end.tex rename to .admin/tex/backmatter/end.tex diff --git a/.admin/tex/frontmatter/frontmatter.tex b/.admin/tex/frontmatter/frontmatter.tex new file mode 100644 index 0000000..3c76d50 --- /dev/null +++ b/.admin/tex/frontmatter/frontmatter.tex @@ -0,0 +1,12 @@ +% frontmatter: half title, title page, colophon (copyright page), epigraph, toc, preface, acknowledgements +\frontmatter{} + +\include{frontmatter/maketitle} +%\include{frontmatter/colophon} +%\include{frontmatter/epigraph} +%\include{frontmatter/preface} + +% Generate these sections +\tableofcontents +%\listoffigures +%\listoftables \ No newline at end of file diff --git a/admin/cookbook/frontmatter/header.tex b/.admin/tex/frontmatter/header.tex similarity index 64% rename from admin/cookbook/frontmatter/header.tex rename to .admin/tex/frontmatter/header.tex index 8552d72..993014a 100644 --- a/admin/cookbook/frontmatter/header.tex +++ b/.admin/tex/frontmatter/header.tex @@ -1,6 +1,6 @@ +% !TeX document-id = {8b67b01d-8418-4209-9cf6-487e17368a27} % !TeX encoding = UTF-8 % !TeX root = hacker_cookbook.tex % !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] - \include{preamble} -\begin{document} \ No newline at end of file +\begin{document} diff --git a/.admin/tex/frontmatter/maketitle.tex b/.admin/tex/frontmatter/maketitle.tex new file mode 100644 index 0000000..61b9d1c --- /dev/null +++ b/.admin/tex/frontmatter/maketitle.tex @@ -0,0 +1,17 @@ +\pagenumbering{Roman} %%% to avoid page 1 conflict with actual page 1 +\begin{titlepage} + \centering + \vspace{0mm} + \includegraphics[scale=2.1]{images/hacked.jpg} + \vspace*{40mm} %%% * is used to give space from top + \begin{flushright} + \textbf{\Huge {1337-Noms-The-Hacker-Cookbook}}\\ + \vspace{5mm} + \Large \textsf{@thedevilsvoice \&\& @iheartmalware}\\ + %\Large \textsf{Created on : May 16, 2016} + \vspace*{0mm} + %\Large \textsf{Last updated : \today} + \end{flushright} + \clearpage + \vspace*{\fill} +\end{titlepage} \ No newline at end of file diff --git a/admin/cookbook/mainmatter/mainmatter.tex b/.admin/tex/mainmatter/mainmatter.tex similarity index 100% rename from admin/cookbook/mainmatter/mainmatter.tex rename to .admin/tex/mainmatter/mainmatter.tex diff --git a/admin/cookbook/preamble.tex b/.admin/tex/preamble.tex similarity index 97% rename from admin/cookbook/preamble.tex rename to .admin/tex/preamble.tex index 10d98cf..6a7ec4e 100644 --- a/admin/cookbook/preamble.tex +++ b/.admin/tex/preamble.tex @@ -24,7 +24,11 @@ %%% FONTS %%% \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} + + \usepackage[english]{babel} + + %\usepackage{tgpagella} % set the document font to TeX Gyre Pagella \usepackage{tgbonum} % set the document font to TeX Gyre Bonum \usepackage{fontawesome5} % The Creative Commons icons @@ -40,8 +44,7 @@ %%% SPACING %%% \setcounter{secnumdepth}{3} % add number to subsubsection \setcounter{tocdepth}{2} % Table of content upto 2=subsection, 3=subsubsection -\usepackage[notlot,nottoc,notlof]{} % reduce spaces for ToC, figs and tables % used like so "\addtocontents{toc}{\vskip -1 -.2cm}" +\usepackage[notlot,nottoc,notlof]{} % reduce spaces for ToC, figs and tables % used like so "\addtocontents{toc}{\vskip -1.2cm}" \linespread{1.25} \usepackage{enumerate} % itemize package diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5990d9c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.gitignore b/.gitignore index 10d8965..7d07d05 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ .DS_Store *.swp -*.pdf _build/ -admin/logs/ +hacker_cookbook.tex +**/logs/* +**/_markdown_hacker_cookbook/* AUTHORS COPYING diff --git a/APPETIZERS/_section.md b/APPETIZERS/_section.md deleted file mode 100644 index 6c4682c..0000000 --- a/APPETIZERS/_section.md +++ /dev/null @@ -1,5 +0,0 @@ -# Appetizers - -- This is a collection of appetizers for the hackers cookbook - -![canape](images/appetizer-canape-canapes-cheese-41967.jpg) diff --git a/APPETIZERS/section.tex b/APPETIZERS/section.tex new file mode 100644 index 0000000..4dbbbf4 --- /dev/null +++ b/APPETIZERS/section.tex @@ -0,0 +1,8 @@ +\pagebreak +\chapter{Appetizers} + +This is a collection of appetizers for the hackers cookbook + +\centering +% ![canape]() +\includegraphics[scale=0.1]{images/appetizer-canape-canapes-cheese-41967.jpg} diff --git a/BREAKFAST/_section.md b/BREAKFAST/_section.md deleted file mode 100644 index a9183a6..0000000 --- a/BREAKFAST/_section.md +++ /dev/null @@ -1,5 +0,0 @@ -# Breakfast - -- Can't be a daytime hacker without a good breakfast - -![breakfast](https://images.pexels.com/photos/101533/pexels-photo-101533.jpeg?w=315&h=237&dpr=2&auto=compress&cs=tinysrgb){.align-center} diff --git a/BREAKFAST/aaron_the_king_hashbrownpatty_bacon_sandwich.md b/BREAKFAST/aaron_the_king_hashbrownpatty_bacon_sandwich.md index c47981e..0f2b17c 100644 --- a/BREAKFAST/aaron_the_king_hashbrownpatty_bacon_sandwich.md +++ b/BREAKFAST/aaron_the_king_hashbrownpatty_bacon_sandwich.md @@ -20,14 +20,14 @@ Play with your food and then eat it! on the bottom hashbrownpatty - Place the top hashbrownpatty on top of the bacon kilobytes -## Tips n' Tricks +## Tips and Tricks - Please don't put ketchup on it. -![image](images/aaron_the_king_hashbrownpatty_bacon_sandwich_0.jpg) +![hashbrownpatty0](images/aaron_the_king_hashbrownpatty_bacon_sandwich_0.jpg) -![image](images/aaron_the_king_hashbrownpatty_bacon_sandwich_1.jpg) +![hashbrownpatty1](images/aaron_the_king_hashbrownpatty_bacon_sandwich_1.jpg) -![image](images/aaron_the_king_hashbrownpatty_bacon_sandwich_2.jpg) +![hashbrownpatty2](images/aaron_the_king_hashbrownpatty_bacon_sandwich_2.jpg) -![image](images/aaron_the_king_hashbrownpatty_bacon_sandwich_3.jpg) +![hashbrownpatty3](images/aaron_the_king_hashbrownpatty_bacon_sandwich_3.jpg) diff --git a/BREAKFAST/images/pexels-photo-101533.jpg b/BREAKFAST/images/pexels-photo-101533.jpg new file mode 100644 index 0000000..651a06d Binary files /dev/null and b/BREAKFAST/images/pexels-photo-101533.jpg differ diff --git a/BREAKFAST/section.tex b/BREAKFAST/section.tex new file mode 100644 index 0000000..5c80734 --- /dev/null +++ b/BREAKFAST/section.tex @@ -0,0 +1,8 @@ +\pagebreak +\chapter{Breakfast} + +Can't be a daytime hacker without a good breakfast + +\centering +% ![breakfast]( +\includegraphics[scale=0.08]{images/pexels-photo-101533.jpg} diff --git a/COOKWARE/_section.md b/COOKWARE/_section.md deleted file mode 100644 index 95207ab..0000000 --- a/COOKWARE/_section.md +++ /dev/null @@ -1,3 +0,0 @@ -# Cookware - -- These are the things that are used for cooking diff --git a/COOKWARE/section.tex b/COOKWARE/section.tex new file mode 100644 index 0000000..dc29532 --- /dev/null +++ b/COOKWARE/section.tex @@ -0,0 +1,4 @@ +\pagebreak +\chapter{Cookware} + +These are the things that are used for cooking diff --git a/CREDITS.md b/CREDITS.md index 6a3e603..2cd8a86 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,5 +1,8 @@ -Credits -======= +# Credits + +- [This link shows exactly who did and did not on this project](https://github.com/DEAD10C5/1337-Noms-The-Hacker-Cookbook/graphs/contributors) + +These folks have added their recipes to the project, and their names to this file: - [@iHeartMalware](https://twitter.com/iheartmalware) - Organizing the project @@ -10,7 +13,7 @@ Credits - Street Corn - Jangajji - @da_667 - Crock Pot Cheesey Chicken Chili (Dinner) -- ``Ajn ``\ \_\_ +- [Ajn](https://github.com/x41x41x90) - [@v3rtig0 (Russ Rogers)](https://twitter.com/v3rtig0) - @timstrazz aka diff - diff’s Asian Chicken Wings - @boredsilly diff --git a/DESSERTS/keto_marbled_turtle_cheesecake.md b/DESSERTS/keto_marbled_turtle_cheesecake.md index 346f0ce..4e8a41d 100644 --- a/DESSERTS/keto_marbled_turtle_cheesecake.md +++ b/DESSERTS/keto_marbled_turtle_cheesecake.md @@ -7,41 +7,47 @@ oven, and don't over bake it! Opening the oven will cause a draft and in turn cause irregularities in the temperature, which makes the cheesecake crack. Over baking will dry it out and also make it crack. -Nutritional Information: +- Makes 12 Slices +- Nutritional Information Per Slice: 5g Net Carbs 50g Fat 10g Protein -Per Slice- - -5g Net Carbs 50g Fat 10g Protein - -Recipe: Makes 12 Slices - -![image](images/keto_marbled_turtle_cheesecake.jpg){.align-center} +![cheesecake](images/keto_marbled_turtle_cheesecake.jpg){.align-center} ## Ingredients -You will need a 9″ Springform pan +You will need a 9 inch Springform pan ### crust -6 Tbsp of Butter 1/3 Cup of Swerve 2 Cups of Almond Flour 3 Tbsp of -Cocoa Baking Powder (A very small) Pinch of Salt +- 6 Tbsp of Butter +- 1/3 Cup of Swerve +- 2 Cups of Almond Flour +- 3 Tbsp of Cocoa Baking Powder +- (A very small) Pinch of Salt ### Filling -4 Eggs 1 Cup of Swerve 1 Tsp of Vanilla Extract 3 8oz Packs of Cream -Cheese 1/3 Cup of Sour Cream 2 Tbsp of Cocoa Baking Powder +- 4 Eggs +- 1 Cup of Swerve +- 1 Tsp of Vanilla Extract +- 3 8oz Packs of Cream Cheese +- 1/3 Cup of Sour Cream +- 2 Tbsp of Cocoa Baking Powder ### Caramel -4 Tbsp of Butter 1 Tbsp of Coconut Oil 4 Tbsp of Heavy Cream 1 tsp of -Vanilla Extract 3 Tbsp of Swerve A Pinch of Salt 1 Cup Pecans, roughly -chopped +- 4 Tbsp of Butter +- 1 Tbsp of Coconut Oil +- 4 Tbsp of Heavy Cream +- 1 tsp of Vanilla Extract +- 3 Tbsp of Swerve +- A Pinch of Salt +- 1 Cup Pecans, roughly chopped -## Recipe +## Crust Recipe -1. Crust- Preheat oven to 375 Degrees +1. Preheat oven to 375 Degrees 2. Combine all ingredients well (I just used my hands to mix it because - it's easier than using a mixer or hand mixer) + it\'s easier than using a mixer or hand mixer) 3. Press the mix firmly into the bottom of your springform pan. 4. Bake for 8 minutes then let cool @@ -55,13 +61,13 @@ pan and place on baking sheet minutes. 3. Gently add one egg at a time, mixing for about 1 minute in between each egg. -4. separate out 1 -- 1 1/2 Cups of the filling into a separate bowl and +4. separate out 1 to 1 1/2 Cups of the filling into a separate bowl and add 2 Tbsp of Cocoa baking powder, mixing for about 1 minute. 5. Pour the regular mix into the springform pan. Add the chocolate mix in portions around the pan. Use a butter knife to carefully swirl the chocolate mix through the regular mix to create a marbled effect. -6. Bake for 40 -- 45 minutes, or until it is puffy and golden around +6. Bake for 40 to 45 minutes, or until it is puffy and golden around the edges. 7. Run a knife around the inside of the rim to loosen the cake, but let it cool for a while before removing the rim! @@ -70,7 +76,7 @@ pan and place on baking sheet ### Caramel Directions Make sure to consistently whisk your caramel throughout the cooking -process so it doesn't burn! +process so it doesn\'t burn! 1. Melt the butter in a small pan on medium heat and cook until it is golden brown. Add in the coconut oil and stir well. @@ -78,7 +84,7 @@ process so it doesn't burn! and simmer for about 1 minute. 3. Add in the sweetener, vanilla, and salt. Cook until it starts to get thicker and stickier. -4. Remove from heat and stir to make sure it isn't separated, then pour +4. Remove from heat and stir to make sure it isn\'t separated, then pour over the cooled cheesecake. Sprinkle on the chopped pecans. 5. Chill in the fridge for at least 4 hours, then enjoy! diff --git a/DESSERTS/section.tex b/DESSERTS/section.tex new file mode 100644 index 0000000..8f3acdf --- /dev/null +++ b/DESSERTS/section.tex @@ -0,0 +1,2 @@ +\pagebreak +\chapter{Desserts} \ No newline at end of file diff --git a/DRINKS/_section.md b/DRINKS/_section.md deleted file mode 100644 index fdf5344..0000000 --- a/DRINKS/_section.md +++ /dev/null @@ -1,5 +0,0 @@ -# Drinks - -- In order to hack all the things, one must drink all the booze - -![foods](https://images.pexels.com/photos/274131/pexels-photo-274131.jpeg?w=315&h=237&dpr=2&auto=compress&cs=tinysrgb) diff --git a/DRINKS/ashmastaflash-grandpappys_turnt_juice.md b/DRINKS/ashmastaflash-grandpappys_turnt_juice.md index 388f1b8..68dd639 100644 --- a/DRINKS/ashmastaflash-grandpappys_turnt_juice.md +++ b/DRINKS/ashmastaflash-grandpappys_turnt_juice.md @@ -11,15 +11,14 @@ Not for the faint of heart, or the faint of pancreas. If you need to shoot your blood sugar through the roof and take the edge way off, this is the drink for you. -![Grandpappy's Turnt -Juice](images/ashmastaflash-grandpappys_turnt_juice.jpg) +![Grandpappy's Turnt Juice](images/ashmastaflash-grandpappys_turnt_juice.jpg) -Tools: +## Tools - Martini shaker - Mason jar -Ingredients: +## Ingredients - Woodford Reserve bourbon - Woodford Reserve cherries @@ -28,7 +27,7 @@ Ingredients: - Unsulphured molasses - Angostura bitters -Directions: +## Directions 1. Put a tablespoon of molasses into the shaker along with a handful of crushed ice @@ -41,5 +40,4 @@ Directions: shaker and drop it into the turnt juice. Enjoy! - -\_@ashmastaflash\_ +@ashmastaflash diff --git a/DRINKS/images/pexels-photo-274131.jpg b/DRINKS/images/pexels-photo-274131.jpg new file mode 100644 index 0000000..b6f247f Binary files /dev/null and b/DRINKS/images/pexels-photo-274131.jpg differ diff --git a/DRINKS/moonbas3_new_fashioned.md b/DRINKS/moonbas3_new_fashioned.md index 6bc02cb..b34ca06 100644 --- a/DRINKS/moonbas3_new_fashioned.md +++ b/DRINKS/moonbas3_new_fashioned.md @@ -1,6 +1,6 @@ # Moonbas3's New Fashioned -![Moonbas3 New Fashioned](https://i.imgur.com/HqXth1P.jpg) +![Moonbas3 New Fashioned](images/moonbas3_new_fashioned.jpg) ## Discussion diff --git a/DRINKS/section.tex b/DRINKS/section.tex new file mode 100644 index 0000000..dedd02e --- /dev/null +++ b/DRINKS/section.tex @@ -0,0 +1,7 @@ +\pagebreak +\chapter{Drinks} + +In order to hack all the things, one must drink all the booze + +\centering +\includegraphics[scale=0.1]{images/pexels-photo-274131.jpg} diff --git a/DRINKS/tiptone-mexican-martini.md b/DRINKS/tiptone-mexican-martini.md index 21c613b..c1f0675 100644 --- a/DRINKS/tiptone-mexican-martini.md +++ b/DRINKS/tiptone-mexican-martini.md @@ -3,8 +3,6 @@ Serving Size: Two Cocktails Calories: Yes, definitely -![image](images/tiptone-mexican-martini.jpg){.align-center, .images alt="Mexican Martini"} - ## Ingredients - 3oz Hornitos Reposado @@ -19,7 +17,7 @@ Calories: Yes, definitely 1. Salt the rim of two cocktail glasses 2. Fill a cocktail shaker with ice and ingredients 3. Shake vigorously -4. Strain into cocktail glasses and garnish with olive(s)\* +4. Strain into cocktail glasses and garnish with olive(s) 5. Enjoy mrstiptone insists this should be jalapeno stuffed olives diff --git a/ENTREES/BenHeise_Bangers_and_Mash.md b/ENTREES/BenHeise_Bangers_and_Mash.md index 8901164..fdd9384 100644 --- a/ENTREES/BenHeise_Bangers_and_Mash.md +++ b/ENTREES/BenHeise_Bangers_and_Mash.md @@ -79,12 +79,12 @@ Americans). blood sugar is hard. 12. Garnish with Parsley -![image](images/DS-aV05WkAAfTjd.jpg){.align-center} +![bangers1](images/DS-aV05WkAAfTjd.jpg){.align-center} -![image](images/DS-ez01WAAAjwCY.jpg){.align-center} +![bangers2](images/DS-ez01WAAAjwCY.jpg){.align-center} -![image](images/DS-hKTvW4AAP118.jpg){.align-center} +![bangers3](images/DS-hKTvW4AAP118.jpg){.align-center} -![image](images/DS-p7YYWkAMlRRK.jpg){.align-center} +![bangers4](images/DS-p7YYWkAMlRRK.jpg){.align-center} -![image](images/DS-rKFAWkAIUih1.jpg){.align-center} +![bangers5](images/DS-rKFAWkAIUih1.jpg){.align-center} diff --git a/ENTREES/_section.md b/ENTREES/_section.md deleted file mode 100644 index 313ec9f..0000000 --- a/ENTREES/_section.md +++ /dev/null @@ -1,5 +0,0 @@ -# Entrees - -- This is a collection of main courses provided by the community - -![foods](https://images.pexels.com/photos/461198/pexels-photo-461198.jpeg?w=315&h=237&dpr=2&auto=compress&cs=tinysrgb) diff --git a/ENTREES/dis0wn-TwoCheese_Bacon_Potato_and_Cauliflower_Soup.md b/ENTREES/dis0wn-TwoCheese_Bacon_Potato_and_Cauliflower_Soup.md index 936a2b4..4ab7252 100644 --- a/ENTREES/dis0wn-TwoCheese_Bacon_Potato_and_Cauliflower_Soup.md +++ b/ENTREES/dis0wn-TwoCheese_Bacon_Potato_and_Cauliflower_Soup.md @@ -3,7 +3,7 @@ My variation of a traditional Irish soup. Serve with a hearty bread to dip. -![image](images/dis0wn-TwoCheese_Bacon_Potato_and_Cauliflower_Soup.png){.align-center} +![TwoCheese](images/dis0wn-TwoCheese_Bacon_Potato_and_Cauliflower_Soup.png){.align-center} ## Ingredients diff --git a/ENTREES/elegin_balsamic_tempeh.md b/ENTREES/elegin_balsamic_tempeh.md index d216071..1dd40d1 100644 --- a/ENTREES/elegin_balsamic_tempeh.md +++ b/ENTREES/elegin_balsamic_tempeh.md @@ -38,10 +38,10 @@ have as snacks. Quick prep and only oven time for cooking. For a quick meal add some quinoa or wild rice with a vegetable of choice. -![image](images/elegin_balsamic_tempeh_1.jpg){.align-center} +![balsamictempeh1](images/elegin_balsamic_tempeh_1.jpg) -![image](images/elegin_balsamic_tempeh_2.jpg){.align-center} +![balsamictempeh2](images/elegin_balsamic_tempeh_2.jpg) -![image](images/elegin_balsamic_tempeh_3.jpg){.align-center} +![balsamictempeh3](images/elegin_balsamic_tempeh_3.jpg) -![image](images/elegin_balsamic_tempeh_4.jpg){.align-center} +![balsamictempeh4](images/elegin_balsamic_tempeh_4.jpg) diff --git a/ENTREES/hardwaterhacker_grilled_cedar_plank_salmon.md b/ENTREES/hardwaterhacker_grilled_cedar_plank_salmon.md index af473b9..1ac47fa 100644 --- a/ENTREES/hardwaterhacker_grilled_cedar_plank_salmon.md +++ b/ENTREES/hardwaterhacker_grilled_cedar_plank_salmon.md @@ -49,6 +49,4 @@ Keep a close eye on the grill during cooking. The brown sugar mixture is likely to flare up. Knock down flames with a spray bottle filled with water. -::: {.imagee alt="Grilled Cedar Plank Salmon"} -images/hardwaterhacker_grilled_cedar_plank_salmon.jpg -::: +![Grilled Cedar Plank Salmon](images/hardwaterhacker_grilled_cedar_plank_salmon.jpg) diff --git a/ENTREES/images/pexels-photo-461198.jpg b/ENTREES/images/pexels-photo-461198.jpg new file mode 100644 index 0000000..6d05a17 Binary files /dev/null and b/ENTREES/images/pexels-photo-461198.jpg differ diff --git a/ENTREES/moonbas3_bbq_ribs.md b/ENTREES/moonbas3_bbq_ribs.md index 7a682a8..541b05d 100644 --- a/ENTREES/moonbas3_bbq_ribs.md +++ b/ENTREES/moonbas3_bbq_ribs.md @@ -1,6 +1,6 @@ # Moonbas3 St. Louis Style Barbecue Ribs -![image](images/moonbas3_bbq_ribs.jpg){.align-center} +![ribs](images/moonbas3_bbq_ribs.jpg){.align-center} ## Required Equipment diff --git a/ENTREES/moonbas3_mississippi_pot_roast.md b/ENTREES/moonbas3_mississippi_pot_roast.md index 8caed8c..8a3b79c 100644 --- a/ENTREES/moonbas3_mississippi_pot_roast.md +++ b/ENTREES/moonbas3_mississippi_pot_roast.md @@ -1,7 +1,6 @@ # Moonbas3's "Instant" Mississippi Pot Roast -![Moonbas3 "Instant" Mississippi Pot -Roast](images/moonbas3_mississippi_pot_roast.jpg) +![Moonbas3PotRoast](images/moonbas3_mississippi_pot_roast.jpg) ## Discussion @@ -23,12 +22,12 @@ long. ## Ingredients -- 3- to 4-pound boneless beef roast, your choice of cut, I use chuck. +- 3 to 4 pound boneless beef roast, your choice of cut, I use chuck. - 1 stick (8 tbsp) unsalted butter - 1 package au jus gravy mix - 1 package dry ranch dressing mix, such as Hidden Valley - Pepperoncini peppers, number to your liking, and a little juice -- Salt and freshly ground pepper, if desired (\~1 tbsp of each) +- Salt and freshly ground pepper, if desired (about 1 tbsp of each) ## Directions diff --git a/ENTREES/rahlquist_slow_cooker_chorizo_black_bean_stew.md b/ENTREES/rahlquist_slow_cooker_chorizo_black_bean_stew.md index be3faf0..90d56e4 100644 --- a/ENTREES/rahlquist_slow_cooker_chorizo_black_bean_stew.md +++ b/ENTREES/rahlquist_slow_cooker_chorizo_black_bean_stew.md @@ -3,7 +3,7 @@ A large batch (about 6 quart) of thick, hearty, protein rich, low carb stew -![image](images/rahlquist_slow_cooker_chorizo_black_bean_stew.jpg){.align-center} +![chroizo stew](images/rahlquist_slow_cooker_chorizo_black_bean_stew.jpg){.align-center} ## Ingredients diff --git a/ENTREES/section.tex b/ENTREES/section.tex new file mode 100644 index 0000000..f3f056c --- /dev/null +++ b/ENTREES/section.tex @@ -0,0 +1,7 @@ +\pagebreak +\chapter{Entrees} + +This is a collection of main courses provided by the community + +\centering +\includegraphics[scale=0.25]{images/pexels-photo-461198.jpg} diff --git a/ENTREES/sl3dges_low-carb_sticky_pork_belly.md b/ENTREES/sl3dges_low-carb_sticky_pork_belly.md index 47b98dd..18c901f 100644 --- a/ENTREES/sl3dges_low-carb_sticky_pork_belly.md +++ b/ENTREES/sl3dges_low-carb_sticky_pork_belly.md @@ -4,7 +4,7 @@ - 86g Fat - 17g Protein -![image](images/sl3dges_low-carb_sticky_pork_belly.jpg){.align-center} +![stickyporkbelly](images/sl3dges_low-carb_sticky_pork_belly.jpg){.align-center} ## Recipe diff --git a/ENTREES/wimzkl_caramelized-onion-mushroom-stuffin.md b/ENTREES/wimzkl_caramelized-onion-mushroom-stuffin.md index ed54699..26aaabd 100644 --- a/ENTREES/wimzkl_caramelized-onion-mushroom-stuffin.md +++ b/ENTREES/wimzkl_caramelized-onion-mushroom-stuffin.md @@ -2,9 +2,9 @@ Simple, hot, and tasty stuff to share with pals. -![image](images/wimzkl_caramelized-onion-mushroom-stuffin_1.jpg){.align-center} +![onion1](images/wimzkl_caramelized-onion-mushroom-stuffin_1.jpg) -![image](images/wimzkl_caramelized-onion-mushroom-stuffin_2.jpg){.align-center} +![onion2](images/wimzkl_caramelized-onion-mushroom-stuffin_2.jpg) ## Cooking Hardware diff --git a/ENTREES/wireheadlance_grandmothers_chicken_and_gravy.md b/ENTREES/wireheadlance_grandmothers_chicken_and_gravy.md index 21302a1..f43acc1 100644 --- a/ENTREES/wireheadlance_grandmothers_chicken_and_gravy.md +++ b/ENTREES/wireheadlance_grandmothers_chicken_and_gravy.md @@ -3,7 +3,7 @@ This is a recipe from wireheadlance's grandmother for fried chicken and gravy! -![image](images/wireheadlance_grandmothers_chicken_and_gravy.jpg){.align-center} +![grandmotherschickengravy](images/wireheadlance_grandmothers_chicken_and_gravy.jpg) ## Instructions diff --git a/README.md b/README.md index cac4b02..4b141cf 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,13 @@ ![hacked](https://github.com/DEAD10C5/1337-Noms-The-Hacker-Cookbook/blob/main/admin/images/hacked.jpg?raw=true) -[Click here to learn how to add your recipe to this project!](https://github.com/DEAD10C5/1337-Noms-The-Hacker-Cookbook/blob/main/admin/CONTRIBUTING.rst) +## Contributing -If you still need help you can reach out to [@thedevilsvoice](https://twitter.com/thedevilsvoice) or [@iheartmalware](https://twitter.com/iheartmalware). +* A page that explains [how to add your recipe to this project!](https://github.com/DEAD10C5/1337-Noms-The-Hacker-Cookbook/blob/main/.admin/CONTRIBUTING.md) +* An [older wiki page](https://github.com/DEAD10C5/1337-Noms-The-Hacker-Cookbook/wiki/Adding-Recipes) that may be of help. +* [This link shows exactly who did and did not on this project](https://github.com/DEAD10C5/1337-Noms-The-Hacker-Cookbook/graphs/contributors) + +## Maintainers + +* [@thedevilsvoice](https://twitter.com/thedevilsvoice) +* [@iheartmalware](https://twitter.com/iheartmalware) diff --git a/SAUCES/_section.md b/SAUCES/_section.md deleted file mode 100644 index 3c17f31..0000000 --- a/SAUCES/_section.md +++ /dev/null @@ -1,6 +0,0 @@ -# Sauces - -- Sauce. You know, that thing that you edit then push out to - production - -![foods](https://images.pexels.com/photos/699544/pexels-photo-699544.jpeg?w=315&h=237&dpr=2&auto=compress&cs=tinysrgb) diff --git a/SAUCES/images/pexels-photo-699544.jpg b/SAUCES/images/pexels-photo-699544.jpg new file mode 100644 index 0000000..a138618 Binary files /dev/null and b/SAUCES/images/pexels-photo-699544.jpg differ diff --git a/SAUCES/section.tex b/SAUCES/section.tex new file mode 100644 index 0000000..ee0b845 --- /dev/null +++ b/SAUCES/section.tex @@ -0,0 +1,7 @@ +\pagebreak +\chapter{Sauces} + +Sauce. You know, that thing that you edit then push out to production. + +\centering +\includegraphics[scale=0.075]{images/pexels-photo-699544.jpg} \ No newline at end of file diff --git a/SIDES/_section.md b/SIDES/_section.md deleted file mode 100644 index 14652be..0000000 --- a/SIDES/_section.md +++ /dev/null @@ -1,5 +0,0 @@ -# Sides - -- Sort of like appetizers but you eat them with other foods - -![foods](https://images.pexels.com/photos/1475/food-vegetables-italian-restaurant.jpg?w=315&h=237&dpr=2&auto=compress&cs=tinysrgb) diff --git a/SIDES/dis0wn-Whiskey_Cranberry_Brussel_Sprouts.md b/SIDES/dis0wn-Whiskey_Cranberry_Brussel_Sprouts.md index f74d5cf..74330de 100644 --- a/SIDES/dis0wn-Whiskey_Cranberry_Brussel_Sprouts.md +++ b/SIDES/dis0wn-Whiskey_Cranberry_Brussel_Sprouts.md @@ -1,31 +1,32 @@ # dis0wn - Whiskey Cranberry Brussel Sprouts -![brussel_sprouts](images/dis0wn-Whiskey_Cranberry_Brussel_Sprouts.jpg) +![sprouts](images/dis0wn-Whiskey_Cranberry_Brussel_Sprouts.jpg) -This is one of my wife's favorite sides and even if you hate brussel -sprouts, this might be your opportunity to change your mind. Feeds 5-6 +This is one of my wife\'s favorite sides and even if you hate brussel +sprouts, this might be your opportunity to change your mind. Feeds 5-6 people. + +Great with red meat and red wine. ## Ingredients -- 1 pkg frozen brussel sprouts or 12-14 fresh brussel sprouts +- 1 pkg frozen brussel sprouts or 12 to 14 fresh brussel sprouts - 1/2 cup dried cranberries - 2 tbsp salt - 4 tbps Butter -- 2-3 tbsp Brown Sugar +- 2 to 3 tbsp Brown Sugar - 1 shot of your favorite whiskey/bourbon -- Torch or stick lighter. Don't use a regular lighter. You'll lose arm - hair. +- Torch or stick lighter. Don't use a regular lighter. You'll lose arm hair. ## Instructions -Prepare your brussel sprouts depending on the option you picked above: +Prepare your brussel sprouts depending on the option you picked above. ### Frozen (quick option) -- Nuke 'em as directed on the package. -- Melt helf the butter in frying pan or wok -- Increase heat to Medium and add sprouts. Too much heat will burn the - butter. +- Nuke \'em as directed on the package. +- Melt helf the butter in frying pan or wok. +- Increase heat to Medium and add sprouts. + - Too much heat will burn the butter. - Let them brown a little on the outside then proceed to step 2. ### Fresh (tasty option) @@ -33,20 +34,13 @@ Prepare your brussel sprouts depending on the option you picked above: - Cut sprouts in half and place them on a baking sheet with cut side up. Cover with foil for easy cleanup. - Drizzle olive oil over each and sprinkle with a light layer of salt. -- Bake @ 400F for 20-30 min. Add more time (\~10min) if you like them - crispy! +- Bake \@ 400F for 20 to 30 min. Add more time (about 10 minutes) if you like them crispy! - Melt half the butter in a frying pan or wok on Low-Medium heat. Too much heat will burn the butter. -- Add the sprouts and proceed to Step 2. - -1. Add brown sugar, dried cranberries, and remaining 2 tbps of butter. -2. Stir on Low-Medium heat until all the brown sugar has disolved. -3. Toss in the shot of whiskey. Count to 3. Stand back and light it. - The flames will go out once all the alcohol has burned off. (Make - sure the cooking area is free of dry material with a high surface - area. It'll be tough trying to explain that one to the fire - marshall.) -4. Now that the fire is out, transfer the sprouts and the Vorpal Glaze - of Awesomeness to a serving dish or directly to the plate. - -Great with red meat and red wine. +- Add the sprouts. +- Add brown sugar, dried cranberries, and remaining 2 tbps of butter. +- Stir on Low-Medium heat until all the brown sugar has disolved. +- Toss in the shot of whiskey. Count to 3. Stand back and light it. + - The flames will go out once all the alcohol has burned off. + - Make sure the cooking area is free of dry material with a high surface area. It\'ll be tough trying to explain that one to the fire marshall. +- Now that the fire is out, transfer the sprouts and the Vorpal Glaze of Awesomeness to a serving dish or directly to the plate. diff --git a/SIDES/images/food-vegetables-italian-restaurant.jpg b/SIDES/images/food-vegetables-italian-restaurant.jpg new file mode 100644 index 0000000..9d4e032 Binary files /dev/null and b/SIDES/images/food-vegetables-italian-restaurant.jpg differ diff --git a/SIDES/section.tex b/SIDES/section.tex new file mode 100644 index 0000000..ed0046f --- /dev/null +++ b/SIDES/section.tex @@ -0,0 +1,7 @@ +\pagebreak +\chapter{Sides} + +Sort of like appetizers but you eat them with other foods + +\centering +\includegraphics[scale=0.08]{images/food-vegetables-italian-restaurant.jpg} diff --git a/SIDES/thedevilsvoice_jangajji.md b/SIDES/thedevilsvoice_jangajji.md index 4271a56..95d6d6c 100644 --- a/SIDES/thedevilsvoice_jangajji.md +++ b/SIDES/thedevilsvoice_jangajji.md @@ -1,6 +1,6 @@ -# theDevilsVoice Jangajji (장아찌) +# theDevilsVoice Jangajji -Jangajji (장아찌) or pickled vegetables is a type of banchan (side dish) +Jangajji or pickled vegetables is a type of banchan (side dish) made by pickling vegetables. ![Jangajji](images/thedevilsvoice_jangajji.jpg) diff --git a/SNACKS/_section.md b/SNACKS/_section.md deleted file mode 100644 index 799f2ef..0000000 --- a/SNACKS/_section.md +++ /dev/null @@ -1,5 +0,0 @@ -# Snacks - -- Nom noms to be consumed between bigger noms. - -![foods](https://images.pexels.com/photos/122434/popcorn-cinema-ticket-film-122434.jpeg?w=315&h=237&dpr=2&auto=compress&cs=tinysrgb) diff --git a/SNACKS/aaron_the_king-chicken_parm_nachos.md b/SNACKS/aaron_the_king-chicken_parm_nachos.md index 446d2d7..b0e9640 100644 --- a/SNACKS/aaron_the_king-chicken_parm_nachos.md +++ b/SNACKS/aaron_the_king-chicken_parm_nachos.md @@ -33,26 +33,14 @@ Turn your leftover chicken parm into an exciting midnight snack! - After you've finished your nachos just pick up the chicken parm and eat it with your hands. -::: images -../images/aaron_the_king-chicken_parm_nachos_0.jpg -::: +![nacho0](../images/aaron_the_king-chicken_parm_nachos_0.jpg) -::: images -../images/aaron_the_king-chicken_parm_nachos_1.jpg -::: +![nacho1](../images/aaron_the_king-chicken_parm_nachos_1.jpg) -::: images -../images/aaron_the_king-chicken_parm_nachos_2.jpg -::: +![nacho2](../images/aaron_the_king-chicken_parm_nachos_2.jpg) -::: images -../images/aaron_the_king-chicken_parm_nachos_3.jpg -::: +![nacho3](../images/aaron_the_king-chicken_parm_nachos_3.jpg) -::: images -../images/aaron_the_king-chicken_parm_nachos_4.jpg -::: +![acho4](../images/aaron_the_king-chicken_parm_nachos_4.jpg) -::: images -../images/aaron_the_king-chicken_parm_nachos_5.jpg -::: +![nacho5](../images/aaron_the_king-chicken_parm_nachos_5.jpg) diff --git a/SNACKS/images/popcorn-cinema-ticket-film-122434.jpg b/SNACKS/images/popcorn-cinema-ticket-film-122434.jpg new file mode 100644 index 0000000..a3d3dca Binary files /dev/null and b/SNACKS/images/popcorn-cinema-ticket-film-122434.jpg differ diff --git a/SNACKS/section.tex b/SNACKS/section.tex new file mode 100644 index 0000000..2bd0468 --- /dev/null +++ b/SNACKS/section.tex @@ -0,0 +1,7 @@ +\pagebreak +\chapter{Snacks} + +Nom noms to be consumed between bigger noms. + +\centering +\includegraphics[scale=0.08]{images/popcorn-cinema-ticket-film-122434.jpg} \ No newline at end of file diff --git a/admin/README.md b/admin/README.md deleted file mode 100644 index 1b5f573..0000000 --- a/admin/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# admin - -Various maintenance tools. - -## Make utility - -### make docker - -Build a Docker container with the application. diff --git a/admin/bin/generate_book.sh b/admin/bin/generate_book.sh deleted file mode 100755 index a10b7ef..0000000 --- a/admin/bin/generate_book.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/env bash -# -# SPDX-FileCopyrightText: 2023 DE:AD:10:C5 -# -# SPDX-License-Identifier: GPL-3.0-or-later - -set -euo pipefail -#IFS=$'\n\t' - -#Black 0;30 Dark Gray 1;30 -#Red 0;31 Light Red 1;31 -#Green 0;32 Light Green 1;32 -#Brown/Orange 0;33 Yellow 1;33 -#Blue 0;34 Light Blue 1;34 -#Purple 0;35 Light Purple 1;35 -#Cyan 0;36 Light Cyan 1;36 -#Light Gray 0;37 White 1;37 - -RED='\033[0;31m' -LRED='\033[1;31m' -LGREEN='\033[1;32m' -CYAN='\033[0;36m' -LCYAN='\033[1;36m' -LPURP='\033[1;35m' -YELLOW='\033[1;33m' -NC='\033[0m' # No Color - -# --- Some config Variables ---------------------------------------- -CATEGORIES=("APPETIZERS" "BREAKFAST" "COOKWARE" "DESSERTS" "DRINKS" "ENTREES" "SAUCES" "SIDES" "SNACKS") -MY_DATE=$(date '+%Y-%m-%d-%H') -RAW_OUTPUT="generate_cookbook_${MY_DATE}.txt" # log file name -TEX_OUTPUT="cookbook/hacker_cookbook.tex" - -function path_setup() { - # path madness - CURRENT_DIR="${PWD}" - #echo -e "${LGREEN}Current dir: ${LCYAN}${CURRENT_DIR}${NC}" | tee -a "${RAW_OUTPUT}" - PROG_DIR="$0" - - SCRIPT_DIR=$(echo $PROG_DIR | sed 's|\(.*\)/.*|\1|') - #echo -e "${LGREEN}Found script dir: ${LCYAN}${SCRIPT_DIR}${NC}" | tee -a "${RAW_OUTPUT}" - SUB_DIR=$(echo $SCRIPT_DIR | rev | cut -d'/' -f2- | rev) - #echo "Sub dir: $SUB_DIR" - if [ "$SUB_DIR" != "bin" ]; then - LOGGING_DIR="$CURRENT_DIR/$SUB_DIR/logs" - DATA_DIR="$CURRENT_DIR/$SUB_DIR/data" - else - LOGGING_DIR="$CURRENT_DIR/logs" - DATA_DIR="$CURRENT_DIR/data" - fi - - if [ -d "${LOGGING_DIR}" ]; then - RAW_OUTPUT="${LOGGING_DIR}/${RAW_OUTPUT}" - echo -e "\n${LCYAN}------------------ Starting Backup Tool ------------------${NC}" | tee -a "${RAW_OUTPUT}" - echo -e "${LGREEN}Found log dir: ${LCYAN}${LOGGING_DIR}${NC}" | tee -a "${RAW_OUTPUT}" - echo -e "${LGREEN}Log file path is: ${LCYAN}${RAW_OUTPUT}${NC}" | tee -a "${RAW_OUTPUT}" - echo -e "${LGREEN}LaTeX file path is: ${LCYAN}${TEX_OUTPUT}${NC}" | tee -a "${RAW_OUTPUT}" - else - echo -e "${LRED}Did not find log dir: ${LCYAN}${RAW_OUTPUT}${NC}" - LOGGING_DIR="." - RAW_OUTPUT="${LOGGING_DIR}/${RAW_OUTPUT}" - fi -} - -function frontmatter() { - cat ${CURRENT_DIR}/cookbook/frontmatter/header.tex \ - ${CURRENT_DIR}/cookbook/frontmatter/frontmatter.tex | tee -a "${TEX_OUTPUT}" -} - -function mainmatter() { - cat ${CURRENT_DIR}/cookbook/mainmatter/mainmatter.tex | tee -a "${TEX_OUTPUT}" - for i in ${CATEGORIES[@]}; do - THESE_FILES=$(ls ../${i}/*.md) - for j in $THESE_FILES; do - echo "\markdownInput{../${j}}" - done - done -} - -function backmatter() { - cat ${CURRENT_DIR}/cookbook/backmatter/backmatter.tex \ - ${CURRENT_DIR}/cookbook/backmatter/end.tex | tee -a "${TEX_OUTPUT}" -} - -function main() { - path_setup - frontmatter - mainmatter - backmatter -} - -main "$@" diff --git a/admin/cookbook/frontmatter/frontmatter.tex b/admin/cookbook/frontmatter/frontmatter.tex deleted file mode 100644 index 63ca6e3..0000000 --- a/admin/cookbook/frontmatter/frontmatter.tex +++ /dev/null @@ -1,5 +0,0 @@ -% frontmatter: half title, title page, colophon (copyright page), epigraph, toc, preface, acknowledgements -\frontmatter{} -\tableofcontents -\listoffigures -\listoftables \ No newline at end of file diff --git a/admin/cookbook/hacker_cookbook.tex b/admin/cookbook/hacker_cookbook.tex deleted file mode 100644 index 4edead4..0000000 --- a/admin/cookbook/hacker_cookbook.tex +++ /dev/null @@ -1,54 +0,0 @@ -% !TeX encoding = UTF-8 -% !TeX root = hacker_cookbook.tex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] - -\include{preamble} - -\markdownInput{../../} -% !TeX encoding = UTF-8 -% !TeX root = hacker_cookbook.tex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] - -\include{preamble} -\begin{document}% frontmatter: half title, title page, colophon (copyright page), epigraph, toc, preface, acknowledgements -\frontmatter{} -\tableofcontents -\listoffigures -\listoftables\mainmatter{} -% backmatter: appendix, bibliography, index, postface -\backmatter{} -\printindex -\nocite{*} -%%% front cover, spline, back cover -% front_cover -\end{document} -% !TeX encoding = UTF-8 -% !TeX root = hacker_cookbook.tex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] - -\include{preamble} -\begin{document}% frontmatter: half title, title page, colophon (copyright page), epigraph, toc, preface, acknowledgements -\frontmatter{} -\tableofcontents -\listoffigures -\listoftables\mainmatter{} -% !TeX encoding = UTF-8 -% !TeX root = hacker_cookbook.tex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] - -\include{preamble} -\begin{document}% frontmatter: half title, title page, colophon (copyright page), epigraph, toc, preface, acknowledgements -\frontmatter{} -\tableofcontents -\listoffigures -\listoftables\mainmatter{} -% !TeX encoding = UTF-8 -% !TeX root = hacker_cookbook.tex -% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape] - -\include{preamble} -\begin{document}% frontmatter: half title, title page, colophon (copyright page), epigraph, toc, preface, acknowledgements -\frontmatter{} -\tableofcontents -\listoffigures -\listoftables\mainmatter{}