{"id":13581593,"url":"https://github.com/thc2cat/geocli","last_synced_at":"2026-01-23T05:51:31.705Z","repository":{"id":73778316,"uuid":"363169782","full_name":"thc2cat/geocli","owner":"thc2cat","description":"geoip cli for ip address localization","archived":false,"fork":false,"pushed_at":"2022-09-16T12:41:47.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"production","last_synced_at":"2024-11-05T21:44:49.015Z","etag":null,"topics":["cli","dns","geoip2","logs"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thc2cat.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}},"created_at":"2021-04-30T14:42:07.000Z","updated_at":"2023-01-25T21:14:27.000Z","dependencies_parsed_at":"2023-09-21T04:15:12.767Z","dependency_job_id":null,"html_url":"https://github.com/thc2cat/geocli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thc2cat%2Fgeocli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thc2cat%2Fgeocli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thc2cat%2Fgeocli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thc2cat%2Fgeocli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thc2cat","download_url":"https://codeload.github.com/thc2cat/geocli/tar.gz/refs/heads/production","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247470370,"owners_count":20944146,"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":["cli","dns","geoip2","logs"],"created_at":"2024-08-01T15:02:06.857Z","updated_at":"2026-01-23T05:51:31.678Z","avatar_url":"https://github.com/thc2cat.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# GeoCli\n\n## Purpose\n\n`geocli` is a CLI that provide Geoip and dns checkout.\n`geocli` come with geolite country database directly embedded into the cli binary.\n\n## Needs\n\n* Create an account on Maxmind site for downloading database.\n\n## Build\n\n* Makefile download and extract maxmind geolite database.\n* Makefile get exact asset name and replace in template init.go\n* ~~Makefile build name.go from assets with go-bindata.~~\n* Asset is embedded with go embed facility\n\n## Usage\n\n* \"-V\" is used to show maxmind geolite database version.\n* \"-r\" option read stdin and try to resolve dns in parallel.\n* otherwise arg1 is checked.\n\n```Shell\n $/local/bin/geocli -V \n/local/bin/geocli build with GeoLite2-Country_20191001/GeoLite2-Country.mmdb\n\n # rg \"imap\\[.* login: \" /var/log/imapd.log | cut -d: -f5- | sed \"s/ User.*//g\" | rg -v \"webmail|TLS\" | sort -u|rg -v uvsq | cut -d\\[ -f2 | cut -d\\] -f1 | sor\n37.171.85.185 [37-171-85-185.coucou-networks.fr.] France, FR\n10.172.16.103 [unknown] , \n37.164.163.41 [unknown] France, FR\n37.170.73.3 [37-170-73-3.coucou-networks.fr.] France, FR\n37.164.246.169 [unknown] France, FR\n176.179.79.3 [176-179-79-3.abo.bbox.fr.] France, FR\n37.170.3.114 [37-170-3-114.coucou-networks.fr.] France, FR\n37.171.67.201 [37-171-67-201.coucou-networks.fr.] France, FR\n```\n\n## References\n\n* go-bindata \u003e go get -u github.com/jteeuwen/go-bindata/...\n\n* go embed see [golang embed](https://golang.org/pkg/embed/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthc2cat%2Fgeocli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthc2cat%2Fgeocli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthc2cat%2Fgeocli/lists"}