{"id":25387902,"url":"https://github.com/karshprime/syshacks","last_synced_at":"2026-03-05T06:32:33.016Z","repository":{"id":212383868,"uuid":"730139106","full_name":"karshPrime/SysHacks","owner":"karshPrime","description":"tools for enhanced terminal functionality","archived":false,"fork":false,"pushed_at":"2026-01-13T03:35:29.000Z","size":613,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T06:48:32.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karshPrime.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":"2023-12-11T09:40:04.000Z","updated_at":"2026-01-13T03:35:33.000Z","dependencies_parsed_at":"2023-12-14T01:26:05.143Z","dependency_job_id":"51a5e756-f7c7-43c4-b813-b00989081802","html_url":"https://github.com/karshPrime/SysHacks","commit_stats":null,"previous_names":["karshprime/silly_scripts","karshprime/syshacks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karshPrime/SysHacks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2FSysHacks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2FSysHacks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2FSysHacks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2FSysHacks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karshPrime","download_url":"https://codeload.github.com/karshPrime/SysHacks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karshPrime%2FSysHacks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30112245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-02-15T12:36:04.027Z","updated_at":"2026-03-05T06:32:32.971Z","avatar_url":"https://github.com/karshPrime.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# System Hacks\nRepository of handy command line scripts designed to simplify common tasks and\nenhance terminal experience. Each script in this repository is designed to solve\na very specific task, aimubg to make command line sessions more efficient and\nenjoyable. \n\n\n\u003cdetails\u003e\n\u003csummary\u003ebattery_cap.sh\u003c/summary\u003e\nLimit laptop battery from overcharging. Define maximum charge limit within the \nscript and if the model's supported, the script will enable systemd service to \nlimit charging over your specified limit.\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003ecolors.sh\u003c/summary\u003e\nDisplays all terminal colors along with their escape character codes. Offers a\nvisual representation of various color combinations for customisation.\n\n![physicalModel](/screenshots/colors.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003ecopy_code.sh\u003c/summary\u003e\nCopy all code of a specified type to clipboard. Would be extremely helpful when\ntrying to share code where uploading files is not convenient/possible.\n\n![physicalModel](/screenshots/copy_code.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003egomake.sh\u003c/summary\u003e\nMore robust go build command, to compile program for multiple architectures in\n./bin rather than in root project dir.\n\n![physicalModel](/screenshots/gomake.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eMakefiles/\u003c/summary\u003e\nDirectory consisting of general makefile templates that should be sufficient for\nmost purposes. \n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eperiodic.sh\u003c/summary\u003e\nDisplays the Periodic Table with color coding for different groups. Provides a\nvisually appealing representation of chemical elements organised by their atomic\nnumbers and properties.\n\n![physicalModel](/screenshots/periodic.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eproject_initialise.sh\u003c/summary\u003e\nAutomates project setup tasks, including directory creation, Git initialisation,\nREADME file generation, language-specific setup, and .gitignore configuration.\nSimplifies the process of starting new software projects.\n\n![physicalModel](/screenshots/project_initialise.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003erefresh.sh\u003c/summary\u003e\nClears cache and displays memory usage before and after cache clearing. Provides\na quick overview of system memory usage, including total, used, free, shared,\nand buffer/cache memory.\n\n\n![physicalModel](/screenshots/refresh.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003erename.sh\u003c/summary\u003e\nMass rename files using a text editor. Super handy with vim motions and macros.\nAlso supports file conversion via `ffmpeg`. Rename a file with new extension,\nand the script will convert it as well.\n\n![physicalModel](/screenshots/rename.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003ereplace.sh\u003c/summary\u003e\nShort script to update current file with sed after confirming the changes.\nPrevents from accidently corrupting the file with regex flaw, or unintended\nchange.\n\n![physicalModel](/screenshots/replace.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eresistor.c\u003c/summary\u003e\nGives resistance values for band colors. If provided with specific bands (e.g.,\nblue red green gold), it will output the corresponding resistance value. With no\nparameters, it will display a table of all band colors and their corresponding\nvalues.\n\n![physicalModel](/screenshots/resistor.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003ermsymlink.sh\u003c/summary\u003e\nScript designed to remove symbolic links and their target files. It ensures a\nclean deletion process, first deleting the symbolic link itself and then, if\napplicable, the target file it points to. \n\n![physicalModel](/screenshots/rmsymlink.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003etodo.sh\u003c/summary\u003e\nMaintains an organised library of todo files at a specified location. Opens a\ntodo file associated with the current project or directory in the default\neditor.\n\n![physicalModel](/screenshots/todo.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003etrash.sh\u003c/summary\u003e\nMoves files and directories to the system's trash directory instead of\npermanently deleting them. Mimics the behavior of graphical environment trash\nsystems from the terminal, providing an opportunity to restore or permanently\ndelete files later.\n\n![physicalModel](/screenshots/trash.png)\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003evimacro.sh\u003c/summary\u003e\nBring the magic of vim macros to shell.\n\n![physicalModel](/screenshots/vimacro.png)\n\u003c/details\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarshprime%2Fsyshacks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarshprime%2Fsyshacks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarshprime%2Fsyshacks/lists"}