{"id":15417145,"url":"https://github.com/hpsaturn/linux_scripts","last_synced_at":"2025-04-19T14:38:19.928Z","repository":{"id":56700634,"uuid":"56811578","full_name":"hpsaturn/linux_scripts","owner":"hpsaturn","description":"Utilities and scripts compendium","archived":false,"fork":false,"pushed_at":"2025-02-06T14:20:25.000Z","size":2326,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T08:43:37.651Z","etag":null,"topics":["bash","linux","python","script","utilities"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hpsaturn.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}},"created_at":"2016-04-21T23:25:53.000Z","updated_at":"2025-02-06T14:20:29.000Z","dependencies_parsed_at":"2024-05-07T10:36:32.577Z","dependency_job_id":"a7491b4e-1078-41f2-a235-72a98f5078e2","html_url":"https://github.com/hpsaturn/linux_scripts","commit_stats":{"total_commits":203,"total_committers":3,"mean_commits":67.66666666666667,"dds":"0.019704433497536922","last_synced_commit":"57132b004148affd47d8e176750f2c9ba2068d3b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpsaturn%2Flinux_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpsaturn%2Flinux_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpsaturn%2Flinux_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpsaturn%2Flinux_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpsaturn","download_url":"https://codeload.github.com/hpsaturn/linux_scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249715820,"owners_count":21315058,"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","linux","python","script","utilities"],"created_at":"2024-10-01T17:14:45.260Z","updated_at":"2025-04-19T14:38:19.895Z","avatar_url":"https://github.com/hpsaturn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux Tools and Scripts\n\nThis document provides an overview of various scripts available in this repository.\n\n## Linux System Utilities\n\n| Script            | Description                                                                 |\n|:------------------|-----------------------------------------------------------------------------|\n| **freemem**       | Basic tool for freeing swap and caches; restores memory to the state after boot. |\n| **memof**         | Returns a memory summary of all threads of an application.                 |\n| **usbreboot**     | Restarts corrupted USB interfaces of the operating system.                 |\n| **snapdetector**  | Identifies possible Snap packages included in the APT repository.          |\n| **psaux**         | Returns only the main command and PID; also searches for similar processes.|\n| **testdisk**      | Basic hard drive or SSD benchmark.                                         |\n| **ddtest**        | Benchmarking tool for `dd`.                                                |\n| **scanhosts**     | Scans devices in the local network or network segment.                     |\n| **fanstatus**     | Returns the current RPM of the system fan.                                 |\n| **bluetooth**     | Enables/disables basic rfkill for Bluetooth.                               |\n| **build_pkg**     | Utility for building Debian `.deb` packages using `checkinstall`.          |\n| **cpfromfile**    | Utility for copying files from a specified list.                          |\n| **gitrev**        | Returns revision and version names of the current repository.             |\n| **ikvpn**         | Utility for manual operations over an OpenVPN connection.                 |\n| **jsonlint**      | Validates a JSON file locally.                                            |\n| **x11sockets**    | Lists the current X11 sockets used by each application.                   |\n| **pidgrep**       | Returns only the PIDs of all threads of an application.                   |\n| **verifydebfiles**| Checks signature hashes of Debian packages.                               |\n| **osdetect**      | Returns the platform architecture and OS name.                            |\n\n| |\n|:-------------------------------------------------------------------:|\n|![freemem demo](images/freemem.gif)|\n| freemem utility |\n\n## Windowmaker Utilities\n\n| Script                | Description                                                                 |\n|:----------------------|-----------------------------------------------------------------------------|\n| **loaddocks**         | Loads docks and applications called from GNUStep autostart.                |\n| **sshdocs**           | Loads specific docks for SSH connections.                                   |\n| **loadterminators**   | Loads Terminator terminals in fixed positions.                              |\n| **btvol**             | Utility for adjusting Bluetooth sink volume.                                |\n| **brightness_touchpanel** | Utility for adjusting touch panel brightness (Asus dual-screen laptop). |\n| **virtual_screens**   | Adds virtual screens using `xrandr` combined with `xvnc` [^1].            |\n| **kben/kbes**        | Toggles keyboard keymap.                                                   |\n| **kbcheckdeamon**     | Keyboard watchdog; restores `xmodmap` config after input changes.         |\n\n## Android Utilities\n\n| Script                | Description                                                                 |\n|-----------------------|-----------------------------------------------------------------------------|\n| **adbmpull**          | Pulls multiple files using wildcards.                                      |\n| **adbpackage**        | Filters ADB output by package using `grep`.                                |\n| **pmlist**            | Searches for packages by pattern and lists them.                           |\n| **pmclear**           | Searches for a package by pattern and clears its data (use with caution).  |\n| **pminfo**            | Searches for a package by pattern and displays its information.            |\n| **pmversion**         | Retrieve device versions name info. With pattern parameter also for pkgs   |\n| **pmpaste**           | Pastes a string into the Android device UI via ADB.                        |\n| **pmpull**            | Fetches a package by pattern.                                              |\n| **pmscreenshot**      | Takes a screenshot and saves it to the current directory.                  |\n| **pmvideo**           | Take a video capture (interactive: press CTRL+C to stop)                   |\n| **pmstart**           | Launches the default activity of a package.                                |\n| **pmstop**            | Stops a package by pattern.                                                |\n| **pmsignature**       | Retrieves the package signature.                                           |\n| **pmload**            | Utility to list and load apks in the current directory                     |\n| **pmuninstall**       | Uninstalls a package by pattern.                                           |\n| **pmmediack**         | Force media scan trigger (for instance, when you push videos via adb)      |\n| **pmaudioinfo**       | Retreive audio device info for bug reports                                 |\n\n![pmvideo android tool demo](images/pmvideo.gif)\n\n## HDMI (xrandr Utilities)\n\n| Script                | Description                                                               |\n|-----------------------|---------------------------------------------------------------------------|\n| **hdmion**            | Activates external HDMI as the main screen, with eDP as secondary right. |\n| **hdmioff**           | Restores the laptop screen.                                              |\n| **hdmion-desktop**    | Similar functionality to `hdmion`.                                       |\n| hdmion-below      | Two screens. The laptop screen is below of main screen                   |\n\n## Linux Application Utilities\n\n| Script                | Description                                                               |\n|-----------------------|---------------------------------------------------------------------------|\n| **countdown**         | Terminal countdown clock alarm.                                          |\n| **deploy**            | CanAirIO firmware deployment utility for generic projects [^2].         |\n| **firefox_**          | Sends CONT and STOP signals to manage the Firefox process.               |\n| **chrome_**           | Sends CONT and STOP signals to manage the Chrome process.                |\n| **code_**             | Sends CONT and STOP signals to manage the VSCode process.                |\n| **pidrun/pidstop**    | Sends CONT and STOP signals to manage an application.                    |\n| **kermit48**          | Utility that launch Kermit preconfigured for Hp48g calculators.          |\n\n![Countdown Demo](images/countdown.gif)\n\n## Backup Utility\n\nFull and incremental backup script.\n\n**Syntax**:\n\n``` bash\n$ backup help\n\nUsage: backup [command] name storage target [optional storage]\n\nExample dual storage: backup full home /bkp /home/user /mnt/samba/bkp\nExample simple:       backup full home /bkp /home/user\n\nExample: installing in crontab:\n00  19  *   *   *   /home/user/bin/backup increm home /bkp /home/user\n00  20  *   *   0   /home/user/bin/backup week home /bkp /home/user\n\nCommands:\n\nfull: Full backup, output with complete date name file\nweek: Week full backup, output with day name file\nincrem: Incremental backup respect last full backup (week or full)\n```\n\nRelated scripts: nasbackup, bkpinflxdb.sh\n\n## Deprecated\n\n| Script                     | Description                                                            |\n|----------------------------|------------------------------------------------------------------------|\n| **vimperatorrc**           | Old Vimperator configuration and functions.                            |\n| **resetttyusb**            | Resets corrupted serial consoles.                                      |\n| **displayon/off**          | Utility for controlling some TFT displays.                             |\n| **battery**                | Utility for Raspberry Pi and Sense HAT.                                |\n| **build_opencv_android**   | Utility for building OpenCV by architecture.                           |\n| **cpustat**                | Utility for monitoring CPU statistics.                                 |\n| **lanips**                 | Returns the used IPs in the LAN network.                               |\n| **loadhotspot**            | Old hotspot implementation using `iptables` and Network Addressing.    |\n\n[^1]: For a complete guide to this script, please visit [here](https://hpsaturn.com/virtual-serial-port/).  \n[^2]: Utility extracted from the [CanAirIO Project](https://github.com/kike-canaries/canairio_firmware).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpsaturn%2Flinux_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpsaturn%2Flinux_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpsaturn%2Flinux_scripts/lists"}