{"id":21044632,"url":"https://github.com/tripflex/clicmd","last_synced_at":"2026-02-07T11:02:27.712Z","repository":{"id":147531757,"uuid":"110149564","full_name":"tripflex/clicmd","owner":"tripflex","description":"Just a repo of useful shell commands :)","archived":false,"fork":false,"pushed_at":"2017-11-09T18:35:33.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T11:45:41.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tripflex.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":"2017-11-09T18:07:30.000Z","updated_at":"2023-11-20T22:39:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"965ccff7-0dc7-46b7-ba21-76cf5f412350","html_url":"https://github.com/tripflex/clicmd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tripflex/clicmd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Fclicmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Fclicmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Fclicmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Fclicmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tripflex","download_url":"https://codeload.github.com/tripflex/clicmd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Fclicmd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"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":"2024-11-19T14:17:54.679Z","updated_at":"2026-02-07T11:02:27.695Z","avatar_url":"https://github.com/tripflex.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# clicmd\n\n*List CloudLinux users by PHP version selector*\n```shell\nselectorctl --list-users --version=5.2\n```\n\n*Output IP info to imap logins from specific domain in `/var/log/maillog`*\n```shell\nfor i in $(zgrep domain.com /var/log/maillog* | grep imap-login | grep -v '127.0.0.1\\|::1' | cut -d ',' -f 4 | cut -d '=' -f 2 | sort); do curl -s ipinfo.io/$i | grep 'ip\\|city\\|country\\|org'; printf '%20s\\n' | tr ' ' -; done\n```\n\n*Output imap login IP addresses (exclude local) connecting to specific domain*\n```shell\nzgrep domain.com /var/log/maillog* | grep imap-login | grep -v '127.0.0.1\\|::1' | cut -d ',' -f 4 | cut -d '=' -f 2 | sort\n```\n\n*Output all unique IP logins using `dovecot_plain`*\n```shell\ngrep \"A=dovecot_plain\" /var/log/exim_mainlog | sed -e 's#H=.* \\[##' -e 's#\\]:[0-9]*##' | awk '{print $6}' | sort -n | uniq\n```\n\n*Top 5 users sending emails on server*\n```shell\ngrep \"\u003c=.*P=local\" /var/log/exim_mainlog | awk '{print $6}' | sort | uniq -c | sort -nr | head -5 \n```\n\n*Output IP and number of failed attempts to send mail from server*\n```shell\ngrep 'rejected RCPT' /var/log/exim_mainlog |awk '{print$4}'|awk -F\\[ '{print $2} '|awk -F\\] '{print $1} '|sort | uniq -c | sort -k 1 -nr | head -n 5\n```\n\n### Useful Links:\nhttp://bradthemad.org/tech/notes/exim_cheatsheet.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripflex%2Fclicmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftripflex%2Fclicmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripflex%2Fclicmd/lists"}