{"id":20929636,"url":"https://github.com/rt75272/bash","last_synced_at":"2025-03-13T01:42:30.046Z","repository":{"id":197896386,"uuid":"698409648","full_name":"rt75272/Bash","owner":"rt75272","description":"Fun with Bash","archived":false,"fork":false,"pushed_at":"2024-10-28T21:26:22.000Z","size":9742,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T18:47:24.962Z","etag":null,"topics":["bash","cli","linux","shell-script","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rt75272.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-29T21:14:58.000Z","updated_at":"2024-10-28T21:26:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8eca4e0-5596-499c-960c-35a2728ff88a","html_url":"https://github.com/rt75272/Bash","commit_stats":null,"previous_names":["rt75272/bash"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rt75272%2FBash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rt75272%2FBash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rt75272%2FBash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rt75272%2FBash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rt75272","download_url":"https://codeload.github.com/rt75272/Bash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324267,"owners_count":20273099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","cli","linux","shell-script","terminal"],"created_at":"2024-11-18T21:22:29.407Z","updated_at":"2025-03-13T01:42:30.020Z","avatar_url":"https://github.com/rt75272.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"### __BASH__\n*Bash tools and stuff*\n\u0026nbsp;    \n\n\u003chr\u003e\n\n### **Prereq**\n**Install [Linux Debain 12](https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/)**\n```sh\n$ sudo apt -y isntall screenfetch\n$ screenfetch\n```\n*screenfetch output*  \n![screenfetch](photos/screenfetch.png)  \n\u003chr\u003e\n\n### **Grep for multiple phrases**\n```sh\n$ ls | grep 'phrase1\\|phrase2' \n```\n\u003chr\u003e\n\n### **Bash encryption tool**\n```sh\n$ sudo apt -y install mcrypt\n$ nano test_file.txt #create test file\n```\n*GNU nano \u0026nbsp;test_mcrypt.txt*\n```bash\nencrypt this file with mcrypt\n\ntesting...\n\n42\n 42\n  42\n   42\n  42\n 42\n42\n```\n```bash\n$ nano key.txt #create key\n```\n*GNU nano \u0026nbsp;key.txt*\n```sh\ngreatPassword42!\n```\n```sh\n$ mcrypt test_mcrypt.txt --keyfile key.txt # encrypt file \n$ rm test_mcrypt.txt # remove original\n$ ls\nkey.txt  README.md  test_mcrypt.txt.nc\n$ mcrypt --decrypt text_mcrypt.txt.nc --keyfile key.txt\n$ ls\nkey.txt  README.md  test_mcrypt.txt.nc  test_mcrypt.txt  \n```\n\u0026nbsp;\n*Require a password/key to view decrypted file*\n```sh\n$ mcrypt encrypted_file.txt; rm encrypted_file.txt # only the encrypted file remains\nEnter passphrase:\n$ mcrypt -d encrypted_file.txt.nc\nEnter passphrase: \nFile encrypted_file.txt was encrypted.\n```\n*Now you can encrypt all of your files so no one view them without the key/passphrase* \n\n\u003chr\u003e\n\n### **Look pro**\n```sh\n$ sudo apt -y install hollywood\n$ hollywood\n```\n*Hollywood Screenshot*\n![Hollywood](photos/hollywood.gif)\n\n\u003chr\u003e\n  \n### **Internet speed test CLI**\n*After cloning this bash repo...*\n```sh\n$ sudo apt -y install speedtest-cli\n$ speedtest\n```\n![Speedtest Output](photos/speedtest.png)\n\n\u003chr\u003e\n  \n### **Running Bash via Python**\n*prereq*\n```sh\n$ sudo apt -y install cmatrix\n```\n*bash.py*\n```py\nimport os\n\nbash_command = os.popen('konsole --fullscreen -e cmatrix')\noutput = bash_command.read()\nprint(output)\n```\n```sh\n$ python bash.py\n```\n*bash.py outputs cmatrix*\n![bash.py output](photos/cmatrix.gif)\n\n\u003chr\u003e\n \n### **Send command via SSH to Raspberry Pi**\n```sh\n$ ssh pi@localhost 'ls -l'\n```\n\n\u003chr\u003e\n \n### **Running dog**\n*Have a dog running accross your screen*\n```sh\n$ sudo apt -y install oneko\n$ oneko -dog -fg cyan\n```\n![oneko dog](photos/oneko_dog.gif)  \n\n\u003chr\u003e\n\n### **Cow delivered fortune**\n```sh\n$ sudo apt -y install fortune \n$ sudo apt -y install cowsay\n$ fortune | cowsay\n```\n![Fortune Cow](photos/fortune_cow.png)  \n\n\u003chr\u003e\n\n### **Generate  random addresses**\n```sh\n$ sudo apy -y install rig\n$ rig\n```\n![Random Address](photos/random_address.png)\n\n\u003chr\u003e\n \n### **Wikipedia Data**\n_Could be useful for gathering semi-random data for data science/machine learning programs_  \n\u0026nbsp;  \n*Prereq*\n```sh\n$ sudo apt -y install nodejs\n```\n*Wiki package install*\n```sh\n$ sudo apt -y install wikit -g\n```\n*Run a wiki query*\n```sh\n$ wikit \"machine learning\"\n```\n*wikit machine learning output*  \n![wikit machine learning](photos/wikit.png)\n\n\u003chr\u003e\n\n\n### **Battery Status**\n```sh\n$ sudo apt -y install acpi\n$ acpi -b\nBattery 0: Discharging, 16%, 00:27:07 remaining\n```\n\n\u003chr\u003e\n\n### **Fuzzy Finder Search**\n```sh\n$ sudo apt -y install fzf\n$ fzf\n```\n![fuzzy search tool](photos/fzf.png)\n\u0026nbsp;  \n*Searching for mcrypt encrypted files within this bash repo using fzf*\n\n\u003chr\u003e\n\n### **Terminal Search**\n```sh\n$ conda install googler\n```\n\n\u003chr\u003e\n\n### **Terminal Train**\n```sh\n$ sudo apt -y install sl \n```\n![Sl Train](photos/sl_train.png)\n\n\u003chr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frt75272%2Fbash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frt75272%2Fbash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frt75272%2Fbash/lists"}