Skip to content

p4xx07/ASCII_bling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ASCII_bling

Show ASCII art every time you open a new terminal!

How to install

Debian ( Ubuntu )

Dependencies

For coloring text in the console

sudo apt install lolcat

Add to .bashrc this line

ls ~/.ASCII_bling/art | shuf | head -1 | xargs -I {} cat ~/.ASCII_bling/art/{} | lolcat

Mac

Dependencies

For coloring text in the console

brew install lolcat

For shuffling output from the terminal

brew install coreutils

Add to .zsh this line

ls ~/.ASCII_bling/art | gshuf | head -1 | xargs -I {} cat ~/.ASCII_bling/art/{} | lolcat

Download ASCII Art

Create folder for art:

mkdir -p ~/.ASCII_bling/art

Put ascii art in different files under the directory:

cd ~/.ASCII_bling/art

Utility Website for ASCII art

Javascript

Move onto a specific section of the page: https://www.asciiart.eu/computers/apple

Paste in the console this code to download the images in the download folder:

function blob(text) {
    const b = new Blob([text], {
        type: "text/plain"
    });
    return URL.createObjectURL(b);
}

function download(url) {
    const a = document.createElement("a");
    a.href = url;
    a.download = url.split("/").pop();
    document.body.appendChild(a);
    a.click(); 
    document.body.removeChild(a);
} 

$(".border-header.border-top.p-3 pre").each(function(index){ 
  const url = blob(this.textContent); 
  download(url);
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published