{"id":51563333,"url":"https://github.com/lfir/linux-bash-scripts","last_synced_at":"2026-07-10T12:32:17.623Z","repository":{"id":359603945,"uuid":"1246802322","full_name":"lfir/linux-bash-scripts","owner":"lfir","description":"Small and useful Bash scripts","archived":false,"fork":false,"pushed_at":"2026-05-22T18:21:51.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-22T20:21:15.968Z","etag":null,"topics":["bash","bash-script","bash-scripting","linux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lfir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-22T15:12:33.000Z","updated_at":"2026-05-22T18:43:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lfir/linux-bash-scripts","commit_stats":null,"previous_names":["lfir/linux-bash-scripts"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lfir/linux-bash-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfir%2Flinux-bash-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfir%2Flinux-bash-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfir%2Flinux-bash-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfir%2Flinux-bash-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfir","download_url":"https://codeload.github.com/lfir/linux-bash-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfir%2Flinux-bash-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35331951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"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":["bash","bash-script","bash-scripting","linux"],"created_at":"2026-07-10T12:32:17.530Z","updated_at":"2026-07-10T12:32:17.616Z","avatar_url":"https://github.com/lfir.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux-Bash-Scripts\n\nThis repository contains a collection of small and useful (at least to me :P) Bash scripts organized in\nsubdirectories of a central project, for easy referencing and usage as templates for other programs.\n\n## Scripts\n\n### 1. VSCode Tarball Updater\n\nAutomatically updates VSCode for Linux by downloading the latest release from the\nofficial website and replacing the current installation.\n\n**Features**\n\n- Checks if the latest VSCode version available is newer than the existing one\n- Clean and safe replacement of the application directory (preserves existing\n  installation as backup during update process)\n\n**Files**\n\n- `vscode-updater.sh`: Run as non-root, with env var _appParentDir_\n\n**Prerequisites**\n\n- VSCode's current dir name (_appDir_ variable) == name of the dir\n  that comes within the downloadable tarballs (i.e. _VSCode-linux-x64_)\n- AntigravityIDE's current dir name == name of the dir\n  that comes within the downloadable tarballs (i.e. _Antigravity IDE_)\n- Both live in _appParentDir_\n\n**Dependencies**\n\n- `wget`\n\n### 2. System resources monitor\n\nAlerts via email if the system is overloaded; to be used as a cron job.\n\n**Features**\n\n- Checks if CPU, Memory and/or Disk usage is over a certain threshold\n- Notifies via email if any resource is above alert levels\n\n**Files**\n\n- `monitor-resources`: Runs as root\n\n**Dependencies**\n\n- `postfix` (or some other SMTP server)\n- `mail`\n\n### 3. Rclone Backup\n\nCron job that creates a remote backup using `tar` and `rclone`.\n\n**Features**\n\n- Saves execution results in a standard log file\n- Reads backup targets from an external config file\n\n**Files**\n\n- `rclone-backup`: Runs as root, needs env vars _backupTargets_, _username_ and _remotePath_\n- `targets.txt`: Full path of directories and files to back up\n\n**Dependencies**\n\n- `rclone`\n\n### 4. Rsync Backup\n\nBackup script using rsync with exclusion patterns for efficient system backups.\n\n**Features**\n\n- Excludes cache files, temporary files, and other non-essential data in home dirs\n- Keeps track of backup dates and errors\n\n**Files**\n\n- `rsync-backup.sh`: Run as root or non-root (depending on the permissions of files that need to be backed up),\n  passing env vars _scriptDirOnDest_ and _username_\n- `excluded.txt`: Directories and files to exclude from backup, mainly the list from this [repo](https://github.com/rubo77/rsync-homedir-excludes)\n\n**Notes**\n\n- ACLs and Selinux context of files is preserved (but not hard links or extended attributes)\n\n**Dependencies**\n\n- `rsync`\n\n### 5. Ngrok Agent Admin\n\nStarts a ngrok agent for creating an HTTP tunnel, saving the public URL to a JSON file and committing it to a git repository.\n\n**Features**\n\n- Retrieves the public tunnel URL and saves it to a JSON file\n- Commits and pushes the changes to a remote repository\n\n**Files**\n\n- `start-agent.sh`: Main script that manages the ngrok agent, run as non-root\n- `tunnel-url.json`: JSON file containing the public URL\n\n**Dependencies**\n\n- `ngrok`\n- `git`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfir%2Flinux-bash-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfir%2Flinux-bash-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfir%2Flinux-bash-scripts/lists"}