The story of how I got done 3 days of work in 3 hours on a bumpy train ride from Jakarta to Bandung, thanks to the power of Linux.
Shell 1
guillaume@laptop3 ~ [15:34:08]
> $ podman exec -it cranky_lewin bash
root@740c8c87182c:/# pdftotext
pdftotext version 22.02.0
Copyright 2005-2022 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
-f <int> : first page to convert
-l <int> : last page to convert
-r <fp> : resolution, in DPI (default is 72)
-x <int> : x-coordinate of the crop area top left corner
-y <int> : y-coordinate of the crop area top left corner
-W <int> : width of crop area in pixels (default is 0)
-H <int> : height of crop area in pixels (default is 0)
-layout : maintain original physical layout
-fixed <fp> : assume fixed-pitch (or tabular) text
-raw : keep strings in content stream order
-nodiag : discard diagonal text
-htmlmeta : generate a simple HTML file, including the meta information
-enc <string> : output text encoding name
-listenc : list available encodings
-eol <string> : output end-of-line convention (unix, dos, or mac)
-nopgbrk : don't insert page breaks between pages
-bbox : output bounding box for each word and page size to html. Sets -htmlmeta
-bbox-layout : like -bbox but with extra layout bounding box data. Sets -htmlmeta
-cropbox : use the crop box rather than media box
-colspacing <fp> : how much spacing we allow after a word before considering adjacent text to be a new column, as a fraction of the font size (default is 0.7, old releases had a 0.3 default)
-opw <string> : owner password (for encrypted files)
-upw <string> : user password (for encrypted files)
-q : don't print any messages or errors
-v : print copyright and version info
-h : print usage information
-help : print usage information
--help : print usage information
-? : print usage information
root@740c8c87182c:/# ls -l /Docs/
ls: cannot open directory '/Docs/': Permission denied
root@740c8c87182c:/# ls -l /Docs/
root@740c8c87182c:/# ls -l /Docs/cd /home/
ls: cannot access '/Docs/cd': No such file or directory
/home/:
total 1972
-rw-r--r--. 1 root root 2018518 Jul 13 06:08 Cupffee_Presentation.pdf
root@740c8c87182c:/# cd /home/
root@740c8c87182c:/home# ll
total 1972
drwxr-xr-x. 1 root root 48 Jul 14 07:36 ./
dr-xr-xr-x. 1 root root 54 Jul 14 07:30 ../
-rw-r--r--. 1 root root 2018518 Jul 13 06:08 Cupffee_Presentation.pdf
root@740c8c87182c:/home# pdftotext Cupffee_Presentation.pdf Cupffee_Presentation.txt
root@740c8c87182c:/home# cat Cupffee_Presentation.
Cupffee_Presentation.pdf Cupffee_Presentation.txt
root@740c8c87182c:/home# cat Cupffee_Presentation.txt
Nice to eat you!
A PLASTIC PLANET
Single use plastics like cutlery, cups, stirrers and straws
contribute significantly to the environmental pollution,
causing major damage to terrestrial and marine life.
And the current alternatives, including paper cups,
are just not good enough.
So, we decided to invent a better oneβ¦
90 TONS of plastic and paper waste ends
up in landfills each year.
72 TONS of plastic and paper waste
leaks into the soil and oceans.
It takes FROM 100 TO 1000 YEARS
for all of it to decompose.
400 MILLION single-use plastic and paper
cups are used daily worldwide.
MEET CUPFFEE
The delicious edible cookie cup that perfectly complements
your coffee or dessert. It does not alter the taste of your drink,
but also remains crunchy for over 40 minutes. And its vegan!
Resists liquids up to 85ΛC
Remains crunchy for up to 40 minutes
Weights at 14/26 grams, as light as a cookie
A guilt-free snack at only 56/105 kcal
TWO CONVENIENT CUP SIZES
Different sizes, same crunchiness. Cupffee is great on the go, ideal for your home indulgence, and
a catchy conversation starter during personal or corporate events!
SMALL
Cupffee 110 ml (14 grams)
Ideal for espresso or short drinks.
Try it with a scoop of ice cream or
a chocolate mousse.
LARGE
Cupffee 220 ml (26 grams)
Perfectly suitable for
cappuccino,
flat white, hot chocolate or
tea.
EVERY BITE IS TASTY
AND ALL-NATURAL
FULLY ORGANIC
Cupffee uses only 7 plain ingredients of natural origin.
GMO-FREE
No artificial colorants, sweeteners, or preservatives.
100% VEGAN
We use natural oil and no animals-based ingredients.
WHERE YOU WILL FIND CUPFFEE
On the go
CafΓ©s
Cupffee is perfect for having
some coffee or tea on your
way to work, school, and
even on the plane!
Cupffee remains crunchy
for 40 minutes, while you
take your time to chill in
your favorite cafΓ©.
Restaurants
Events
Cupffee is perfect for serving
hot drinks and even desserts,
which makes it a great
addition to any customer
experience.
Why deal with excessive
waste from plastic and
paper cups when you
can just have Cupffee?
WHO LOVES CUPFFEE
The ones with a healthy lifestyle
Cupffee is an all-natural, 100% vegan product
that perfectly fits anyoneβs healthy habits.
The ones who adore coffee
Cupffee doesnβt alter the coffeeβs taste, which is
exactly what enthusiasts are looking for.
The ones who are eco-friendly
Sometimes, healthy is not enough. Cupffee takes
the hearts of all people who strive for a
sustainable future.
The ones who are trendy
You own a contemporary venue? Win customers
with Cupffee β coffeeβs modern best friend.
The ones with kids
Cupffee is every momβs dream β tasty, crunchy,
healthy and the perfect touch to a great party.
CREATED TO
CHANGE THE WORLD
How do you make an edible cup that adds more
character to your coffee experience and obliterates
the need for plastic and single-use paper cups?
We gathered the exceptional minds of coffee lovers
with the inner drive to make the planet greener. And
we came up with the perfect recipe for the crunchy
and delicious Cupffee cups that now complements
the coffee and tea of people all around the world.
Moreover, our production process does not generate
industrial waste and emits steam only, as we believe
only positive environmental impact has a place in a
sustainable future.
DESIGNED TO HELP YOU TOO
Make Cupffee your own and ensure a whole new level of
experience for your customers, while solving pressing
problems and delivering greater value.
Bigger environmental impact
By using Cupffee you support our
mission to make the world cleaner and
greener by reducing the use of plastic
and paper cups.
Better brand visibility
Cupffee helps you improve your own
brand in the process by showing your
audiences that you care for a
sustainable future.
Increased customer value
Expand customer experience by
proposing drinks with Cupffeeβs
exclusive, delicious, and crunchy final.
Emanuil Kolev
SALES MANAGER
+359 886 063 838
emanuil.kolev@cupffee.me
Elena Daskalova
ACCOUNT MANAGER
+359 878 116 394
sales@cupffee.me
LETβS MAKE
THE WORLD
BETTER
TOGETHER
root@740c8c87182c:/home# pandoc -f plain -t markdown Cupffee_Presentation.txt -o Cupffee_Presentation.md
bash: pandoc: command not found
root@740c8c87182c:/home# apt install pandoc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libcmark-gfm-extensions0.29.0.gfm.3 libcmark-gfm0.29.0.gfm.3 pandoc-data
Suggested packages:
texlive-latex-recommended texlive-xetex texlive-luatex pandoc-citeproc texlive-latex-extra context wkhtmltopdf librsvg2-bin groff ghc nodejs php perl python ruby r-base-core libjs-mathjax libjs-katex citation-style-language-styles
The following NEW packages will be installed:
libcmark-gfm-extensions0.29.0.gfm.3 libcmark-gfm0.29.0.gfm.3 pandoc pandoc-data
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 20.6 MB of archives.
After this operation, 156 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
root@740c8c87182c:/home# apt install pandoc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libcmark-gfm-extensions0.29.0.gfm.3 libcmark-gfm0.29.0.gfm.3 pandoc-data
Suggested packages:
texlive-latex-recommended texlive-xetex texlive-luatex pandoc-citeproc texlive-latex-extra context wkhtmltopdf librsvg2-bin groff ghc nodejs php perl python ruby r-base-core libjs-mathjax libjs-katex citation-style-language-styles
The following NEW packages will be installed:
libcmark-gfm-extensions0.29.0.gfm.3 libcmark-gfm0.29.0.gfm.3 pandoc pandoc-data
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 20.6 MB of archives.
After this operation, 156 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcmark-gfm0.29.0.gfm.3 amd64 0.29.0.gfm.3-3 [115 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcmark-gfm-extensions0.29.0.gfm.3 amd64 0.29.0.gfm.3-3 [25.1 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/universe amd64 pandoc-data all 2.9.2.1-3ubuntu2 [81.8 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/universe amd64 pandoc amd64 2.9.2.1-3ubuntu2 [20.3 MB]
40% [4 pandoc 6208 kB/20.3 MB 31%] 379 kB/s 37s^C
root@740c8c87182c:/home# apt install pandoc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libcmark-gfm-extensions0.29.0.gfm.3 libcmark-gfm0.29.0.gfm.3 pandoc-data
Suggested packages:
texlive-latex-recommended texlive-xetex texlive-luatex pandoc-citeproc texlive-latex-extra context wkhtmltopdf librsvg2-bin groff ghc nodejs php perl python ruby r-base-core libjs-mathjax libjs-katex citation-style-language-styles
The following NEW packages will be installed:
libcmark-gfm-extensions0.29.0.gfm.3 libcmark-gfm0.29.0.gfm.3 pandoc pandoc-data
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 20.3 MB/20.6 MB of archives.
After this operation, 156 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 pandoc amd64 2.9.2.1-3ubuntu2 [20.3 MB]
Fetched 13.6 MB in 22s (608 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libcmark-gfm0.29.0.gfm.3:amd64.
(Reading database ... 5563 files and directories currently installed.)
Preparing to unpack .../libcmark-gfm0.29.0.gfm.3_0.29.0.gfm.3-3_amd64.deb ...
Unpacking libcmark-gfm0.29.0.gfm.3:amd64 (0.29.0.gfm.3-3) ...
Selecting previously unselected package libcmark-gfm-extensions0.29.0.gfm.3:amd64.
Preparing to unpack .../libcmark-gfm-extensions0.29.0.gfm.3_0.29.0.gfm.3-3_amd64.deb ...
Unpacking libcmark-gfm-extensions0.29.0.gfm.3:amd64 (0.29.0.gfm.3-3) ...
Selecting previously unselected package pandoc-data.
Preparing to unpack .../pandoc-data_2.9.2.1-3ubuntu2_all.deb ...
Unpacking pandoc-data (2.9.2.1-3ubuntu2) ...
Selecting previously unselected package pandoc.
Preparing to unpack .../pandoc_2.9.2.1-3ubuntu2_amd64.deb ...
Unpacking pandoc (2.9.2.1-3ubuntu2) ...
Setting up libcmark-gfm0.29.0.gfm.3:amd64 (0.29.0.gfm.3-3) ...
Setting up libcmark-gfm-extensions0.29.0.gfm.3:amd64 (0.29.0.gfm.3-3) ...
Setting up pandoc-data (2.9.2.1-3ubuntu2) ...
Setting up pandoc (2.9.2.1-3ubuntu2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
root@740c8c87182c:/home# pandoc -f plain -t markdown Cupffee_Presentation.txt -o Cupffee_Presentation.md
Unknown input format plain
root@740c8c87182c:/home# pandoc -f plain -t markdown Cupffee_Presentation.txt -o Cupffee_Presentation.md^C
root@740c8c87182c:/home#
root@740c8c87182c:/home# pandoc
^C
root@740c8c87182c:/home# pandoc --help
pandoc [OPTIONS] [FILES]
-f FORMAT, -r FORMAT --from=FORMAT, --read=FORMAT
-t FORMAT, -w FORMAT --to=FORMAT, --write=FORMAT
-o FILE --output=FILE
--data-dir=DIRECTORY
-M KEY[:VALUE] --metadata=KEY[:VALUE]
--metadata-file=FILE
-d FILE --defaults=FILE
--file-scope
-s --standalone
--template=FILE
-V KEY[:VALUE] --variable=KEY[:VALUE]
--wrap=auto|none|preserve
--ascii
--toc, --table-of-contents
--toc-depth=NUMBER
-N --number-sections
--number-offset=NUMBERS
--top-level-division=section|chapter|part
--extract-media=PATH
--resource-path=SEARCHPATH
-H FILE --include-in-header=FILE
-B FILE --include-before-body=FILE
-A FILE --include-after-body=FILE
--no-highlight
--highlight-style=STYLE|FILE
--syntax-definition=FILE
--dpi=NUMBER
--eol=crlf|lf|native
--columns=NUMBER
-p --preserve-tabs
--tab-stop=NUMBER
--pdf-engine=PROGRAM
--pdf-engine-opt=STRING
--reference-doc=FILE
--self-contained
--request-header=NAME:VALUE
--abbreviations=FILE
--indented-code-classes=STRING
--default-image-extension=extension
-F PROGRAM --filter=PROGRAM
-L SCRIPTPATH --lua-filter=SCRIPTPATH
--shift-heading-level-by=NUMBER
--base-header-level=NUMBER
--strip-empty-paragraphs
--track-changes=accept|reject|all
--strip-comments
--reference-links
--reference-location=block|section|document
--atx-headers
--listings
-i --incremental
--slide-level=NUMBER
--section-divs
--html-q-tags
--email-obfuscation=none|javascript|references
--id-prefix=STRING
-T STRING --title-prefix=STRING
-c URL --css=URL
--epub-subdirectory=DIRNAME
--epub-cover-image=FILE
--epub-metadata=FILE
--epub-embed-font=FILE
--epub-chapter-level=NUMBER
--ipynb-output=all|none|best
--bibliography=FILE
--csl=FILE
--citation-abbreviations=FILE
--natbib
--biblatex
--mathml
--webtex[=URL]
--mathjax[=URL]
--katex[=URL]
--gladtex
--trace
--dump-args
--ignore-args
--verbose
--quiet
--fail-if-warnings
--log=FILE
--bash-completion
--list-input-formats
--list-output-formats
--list-extensions[=FORMAT]
--list-highlight-languages
--list-highlight-styles
-D FORMAT --print-default-template=FORMAT
--print-default-data-file=FILE
--print-highlight-style=STYLE|FILE
-v --version
-h --help
root@740c8c87182c:/home# pandoc -f plain -t markdown Cupffee_Presentation.txt -o Cupffee_Presentation.md
Unknown input format plain
root@740c8c87182c:/home# pandoc -f plain+smart -t markdown Cupffee_Presentation.txt -o Cupffee_Presentation.md
Unknown input format plain
root@740c8c87182c:/home#
root@740c8c87182c:/home#
Shell 2
guillaume@laptop3 ~/Nextcloud_GA_Clients/Documents/Edible Cups [15:35:52]
> $ podman cp ./Cupffee\ Material/Cupffee_Presentation.pdf cranky_lewin:/home/
guillaume@laptop3 ~/Nextcloud_GA_Clients/Documents/Edible Cups [15:36:21]
> $ podman cp cranky_lewin:/home/Cupffee_Presentation.txt ./Cupffee\ Material