{"id":21989382,"url":"https://github.com/makelinux/lib","last_synced_at":"2025-04-30T11:33:35.600Z","repository":{"id":12541407,"uuid":"15211471","full_name":"makelinux/lib","owner":"makelinux","description":"Library of Linux shell functions","archived":false,"fork":false,"pushed_at":"2021-09-05T13:57:29.000Z","size":299,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T15:47:12.454Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makelinux.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}},"created_at":"2013-12-15T21:51:18.000Z","updated_at":"2024-07-28T01:42:19.000Z","dependencies_parsed_at":"2022-08-31T07:22:42.578Z","dependency_job_id":null,"html_url":"https://github.com/makelinux/lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makelinux%2Flib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makelinux%2Flib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makelinux%2Flib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makelinux%2Flib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makelinux","download_url":"https://codeload.github.com/makelinux/lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251691659,"owners_count":21628367,"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":[],"created_at":"2024-11-29T19:29:16.571Z","updated_at":"2025-04-30T11:33:35.536Z","avatar_url":"https://github.com/makelinux.png","language":"Shell","readme":"lib.sh - Library of shell functions\n===\nUsage:\n\nLoad commands to shell:\n* . lib.sh\n\nRun a command with subshell:\n* lib.sh \\\u003ccommand\\\u003e \\\u003carguments...\\\u003e\n* lib_help - shows help for Lib.sh\n\nList of available commands:\n* ps-all - lists all processes\n* ps-threads - lists processes with threads\n* ps-tree - lists process tree via ps, see also pstree -p\n* ps-cpu - lists most CPU consuming processes\n* ps-mem - lists most memory consuming processes\n* default-eth - provides default Ethernet interface\n* external-ip - Provides external IP\n* ps-wchan - shows what processes are waiting for, used in debugging blocked processes\n* ls-size - list files with sizes in bytes, shorter than ls -l\n* mplayer-rotate-right - play video rotated right, used to play vertically captured videos\n* hist - handy history, up to one screen length\n* deb-list - list content of specified deb file\n* quotation-highlight - highlight text in quotation marks (\"quotation\")\n* keyboard-shortcuts - bash keyboard shortcuts. See also man readline.\n* tcpdump-text - tcpdump of payload in text\n* make-debug - verbose make\n* git-diff - handy git diff\n* git-prompt - sets shell prompt to show git branch\n* git-fixup - interactive fix up of specified number of last git commits\n* git-ign-add - add files' names with path to appropriate .gitignore list\n* log - safely prints messages to stderr\n* trap-err - traps command failures, print return value and returns, better than set -o errexit\n* system-status-short - shows short summary of system resources (RAM,CPU) usage\n* system-status-long - shows long system status and statistics by running various system utilities\n* shell-type - tries to identify type of current shell\n* ps-of - specified process info\n* proc-mem-usage - returns percentage memory usage by specified process\n* dir-diff - compare listings of two specified directories\n* retry - retry argument operation till success\n* duplicates - finds duplicate files. To follow symbolic links run duplicate -L $DIR\n* for-each - applies an operation to set of arguments one by one\n* str - readable string manipulations: ltrim, ltrim-max, rtrim, rtrim-max, subst, subst-all\n* postfix-extract - return filename postfix: path/name[-_]postfix.ext -\u003e postfix\n* unzip-dir - handy unzip to directory with name of zip-file\n* mac-to-ip - looks for LAN IP for MAC\n* ip-to-mac - show MAC address for specified IP in LAN\n* fs-usage - show biggest directories and optionally files on a filesystem, for example on root: fs-usage -a /\n* PATH-append - prints PATH in readable format\n* PATH-insert - inserts argument to head of PATH, if required\n* PATH-remove - removes argument from PATH\n* PATH-append - prints PATH in readable format\n* gcc-set - set specified [cross] compiler as default in environment\n* gcc-set - set specified [cross] compiler as default in environment\n* get-source - download and unpack an open source tarball\n* get-source - download and unpack an open source tarball\n* gnu-build - universal complete build and install of gnu package\n* alternative-config-build - build of package, alternatively to gnu-build\n* build-env - configure staging build environment\n* glib-arm-build - demonstration of arm compilation of glib from the scratch\n* staging-dir-fix - fix parameter libdir in *.la files in staging cross-compilation directory\n* mem-drop-caches - drop caches and free this memory. Practically not required\n* gdb-print-prepare - prepares gdb script to print variables and structs at runtime\n* wget-as-me - Run wget with cookies from firefox to access authenticated data\n* calc - calculate with bc specified floating point expression\n* md5sum-make - create md5 files for each specified file separately\n* check - runs verbosely specified command and prints return status\n* lib-sh-demo - run lib.sh functions for demonstration and testing\n* doxygen-bootstrap - generic handy doxygen wrapper\n* load-watch - kills memory and cpu hogs when load average is too high\n* dts-tags - extacts tags (ctags format)from device tree source files\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakelinux%2Flib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakelinux%2Flib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakelinux%2Flib/lists"}