{"id":26491634,"url":"https://github.com/edisedis777/useful-shell-scripts","last_synced_at":"2026-04-19T03:31:57.846Z","repository":{"id":278559317,"uuid":"936021684","full_name":"edisedis777/Useful-Shell-Scripts","owner":"edisedis777","description":"Useful Shell Scripts","archived":false,"fork":false,"pushed_at":"2025-05-02T06:11:41.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-02T07:24:15.678Z","etag":null,"topics":["compress-images","disk-space","exif","flac-mp3","linux","macos","script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edisedis777.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":"2025-02-20T12:01:29.000Z","updated_at":"2025-05-02T06:11:44.000Z","dependencies_parsed_at":"2025-03-20T08:50:04.573Z","dependency_job_id":"9f9fbe0d-6813-4e99-9ae6-f959e3aaecf9","html_url":"https://github.com/edisedis777/Useful-Shell-Scripts","commit_stats":null,"previous_names":["edisedis777/useful-shell-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edisedis777/Useful-Shell-Scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edisedis777%2FUseful-Shell-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edisedis777%2FUseful-Shell-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edisedis777%2FUseful-Shell-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edisedis777%2FUseful-Shell-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edisedis777","download_url":"https://codeload.github.com/edisedis777/Useful-Shell-Scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edisedis777%2FUseful-Shell-Scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compress-images","disk-space","exif","flac-mp3","linux","macos","script"],"created_at":"2025-03-20T08:49:58.248Z","updated_at":"2026-04-19T03:31:57.838Z","avatar_url":"https://github.com/edisedis777.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Useful-Shell-Scripts\n\nA collection of handy shell scripts for automating tasks on macOS and Linux.\n\n---\n\n## 📜 Available Scripts\n\n### 1️⃣ Remove GPS EXIF Data from Photos (`remove_gps_exif.sh`)\n\nThis script removes GPS location metadata from image files to protect privacy.\n\n#### 📥 Installation\nEnsure you have `exiftool` installed:\nsh\nbrew install exiftool  # macOS (Homebrew)\nsudo apt install libimage-exiftool-perl  # Ubuntu/Debian\n\n#### 🚀 Usage\nRun the script with a file or directory as an argument:\nsh\n./remove_gps_exif.sh path/to/photo.jpg\n\nTo process all images in a folder:\nsh\n./remove_gps_exif.sh path/to/folder\n\n#### ⚙️ Features\nRemoves GPS metadata (-gps:all=)\nWorks on single files or entire directories\nOverwrites original files to prevent data leaks\n\n### 2️⃣ Compress and Resize Images (compress_resize_images.sh)\nThis script compresses and resizes images using ImageMagick.\n\n#### 📥 Installation\nEnsure you have ImageMagick installed:\nsh\nbrew install imagemagick  # macOS (Homebrew)\nsudo apt install imagemagick  # Ubuntu/Debian\n\n#### 🚀 Usage\nRun the script with a file or directory as an argument\n\nCompress and resize a single image to 800x600 with 80% quality:\nsh\n./compress_resize_images.sh image.jpg 800x600 80\n\nProcess all images in a folder with default quality (85%):\nsh\n./compress_resize_images.sh /path/to/folder 1024x768\n\n#### ⚙️ Features\nSupports JPG, JPEG, and PNG formats\nAllows setting max width and height (800x600 format)\nAdjustable compression quality (default: 85%)\nProcesses single files or entire directories\n\n### 3️⃣ Transcode FLAC to MP3 (flac_to_mp3.sh)\nThis script converts FLAC audio files to MP3 format using ffmpeg.\n\n#### 📥 Installation\nEnsure you have ffmpeg installed:\nsh\nbrew install ffmpeg  # macOS (Homebrew)\nsudo apt install ffmpeg  # Ubuntu/Debian\n\n#### 🚀 Usage\nRun the script with a file or directory as an argument\n\nConvert a single FLAC file to MP3 (default 320kbps):\nsh\n./flac_to_mp3.sh song.flac\n\nConvert all FLAC files in a directory at 192kbps:\nsh\n./flac_to_mp3.sh /path/to/folder 192k\n\n#### ⚙️ Features\nSupports batch conversion for directories\nRetains metadata from the original FLAC file\nAllows customizable bitrate (default: 320kbps)\nOutputs MP3 files in the same directory as the source FLAC files\n\n## 4️⃣ Disk Space Checker for macOS\nThis is a simple shell script designed for macOS to monitor available disk space on your main volume (`/`) and provide a visual alert if it falls below a customizable threshold.\n\n### 📥 Installation\n\n#### Download the Script:\n   - Clone this repository or download `disk_space_checker.sh` directly:\n     bash\n     git clone https://github.com/yourusername/your-repo.git\n     cd your-repo\n#### Make It Executable:\n\nRun the following command in your Terminal to make the script executable:\nbash\nchmod +x disk_space_checker.sh\n\nOptional: Move to a Bin Directory. For easy access, move it to a directory in your $PATH, like /usr/local/bin:\nbash\nmv disk_space_checker.sh /usr/local/bin/disk_space_checker\n\nNow you can run it from anywhere by typing disk_space_checker.\n\n### 🚀 Usage\nRun the Script:\nExecute the script from its location:\nbash\nWrap\nCopy\n./disk_space_checker.sh\nOr, if you moved it to a bin directory:\nbash\nWrap\nCopy\ndisk_space_checker\n\n#### Example Output:\nWhen disk space is sufficient:\ntext\nDisk space looks good!\n45 GB available out of 250 GB.\nUsage: [=========                                         ] 18%\n\nWhen disk space is low:\ntext\nWARNING: Low disk space!\n8 GB available out of 250 GB.\nConsider freeing up some space.\nUsage: [=                                                 ] 3%\n\n#### Customize the Threshold:\nOpen the script in a text editor (e.g., nano disk_space_checker.sh).\n\nAdjust the THRESHOLD variable (default is 10 GB):\nbash\nTHRESHOLD=20  # Change to 20 GB\n\n#### ⚙️ Features\n- Color-Coded Alerts: Green for sufficient space, red and yellow for low space warnings.\n- Customizable Threshold: Set your own low-space limit by editing the THRESHOLD variable.\n- Visual Progress Bar: Displays a simple bar showing the percentage of used disk space.\n- Error Handling: Checks for valid disk space data and exits gracefully if retrieval fails.\n- Lightweight: No dependencies beyond standard macOS tools (df, bash).\n\n## Contributions \n- Contributions are welcome! \n\n## License\n- Distributed under the GNU Affero General Public License v3.0 License. See `LICENSE` for more information.\n\n\n\u003cdiv align=\"right\"\u003e\n\n[Back To Top ⬆️](#Useful-Shell-Scripts)\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedisedis777%2Fuseful-shell-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedisedis777%2Fuseful-shell-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedisedis777%2Fuseful-shell-scripts/lists"}