Skip to content

Instantly share code, notes, and snippets.

View alephalpha0's full-sized avatar
💫
Learning bash scripting ⌨️ and python🐍. Thanks O'reilly!

alephalpha0 alephalpha0

💫
Learning bash scripting ⌨️ and python🐍. Thanks O'reilly!
View GitHub Profile
@alephalpha0
alephalpha0 / buildingAPipeline_01.md
Last active November 10, 2020 21:39
First entry in a series on my first true bash script, one with a purpose.

Building a cli program flow in order to archive a single webpage or article.

The problem to be solved:

I have a desire to be able to, through the command line, download a single webpage into a self-contained .html file with the option to convert it to (or save alongside) other formats such as PDF, EPUB, or even md if possible. There are two main use-cases I want to offer: 1) get the entire webpage, strip out the ads/useless shit, and save the new version locally & 2) for journal/website articles, blog entries, or tutorials: simply save the main content and discard every other element from the source.

The inital idea for solution:

A bash script that takes in a URL and, through menu redirection, outputs the desired file(s) into a standard directory.

Why not use currently available methods:

I've come across quite a few programs and scripts that seem like they would be perfect for what I want to do, but unfortunately I'm using termux on an Android and most of them do not work

@alephalpha0
alephalpha0 / Figlet.md
Created February 20, 2021 10:22
Reference for when I wanna make banner text on the command line

http://www.figlet.org/fontdb.cgi

figlet -f ascii12 ...

                                                                      
           mmmm                          mm                  mmmm     
           ""##                          ##                  ""##     
  m#####m    ##       m####m   ##m###m   ##m####m   m#####m    ##     
  " mmm##    ##      ##mmmm##  ##"  "##  ##"   ##   " mmm##    ##     

Keybase proof

I hereby claim:

  • I am alephalpha0 on github.
  • I am alephalpha0 (https://keybase.io/alephalpha0) on keybase.
  • I have a public key ASAE7L4nzWs71iicjqNTZtwd8ZLDErWfiQoGbLUHxSuLVgo

To claim this, I am signing this object:

@alephalpha0
alephalpha0 / soc-20220309112841.md
Created March 9, 2022 17:41
stream of consciousness
creation author categories tags
2022-03-09 03:28:41 -0800
mdk3
SoC
stream of consciousness
commandline gazing
terminal blues

This SoC is mainly created so I could use the hub command to push a gist to GitHub. This would give me a lazy way to get onto GitHub, via the generated by hub link to the gist, without actually alt-tabing to FireFox.. All so I can search for some little whirly gig application that has now completely slipped from my memory.

...