{"id":17177968,"url":"https://github.com/curusarn/til","last_synced_at":"2026-03-18T23:51:43.231Z","repository":{"id":129173532,"uuid":"78227162","full_name":"curusarn/til","owner":"curusarn","description":"today I learned - useful little commands, tools, facts","archived":false,"fork":false,"pushed_at":"2020-04-21T10:51:48.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T06:37:09.934Z","etag":null,"topics":["bash-hacks","oneliners","tips","tips-and-tricks"],"latest_commit_sha":null,"homepage":"https://curusarn.github.io/til/","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/curusarn.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,"zenodo":null}},"created_at":"2017-01-06T18:01:07.000Z","updated_at":"2023-03-07T02:16:12.000Z","dependencies_parsed_at":"2023-07-06T09:48:32.956Z","dependency_job_id":null,"html_url":"https://github.com/curusarn/til","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curusarn/til","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Ftil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Ftil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Ftil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Ftil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curusarn","download_url":"https://codeload.github.com/curusarn/til/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curusarn%2Ftil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: 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":["bash-hacks","oneliners","tips","tips-and-tricks"],"created_at":"2024-10-15T00:05:36.825Z","updated_at":"2026-01-30T14:34:35.554Z","avatar_url":"https://github.com/curusarn.png","language":null,"readme":"## Magic\n\nVector terminal screenshots: xterm \u003e CTRL+left_mouse_button \u003e svg screen dump\n\n\n## Commands\n`enca file.txt -L czech` - **detect encoding** of the *file.txt*, assume it's in *czech*. \n\n`enca file.txt -L czech -x utf-8` - **detect and convert encoding** of the *file.txt* to *utf-8*, assume it's in *czech*.  \n\n`dd bs=4M if=os_img.iso of=/dev/sdb status=progress` - **create bootable usb drive** by writing *os_img.iso* to */dev/sdb*, show progress.  \n\n## Hacks\n`vim -p $(grep -rl '#warn')` - **open all files containing** \"*#warn*\" as tabs in vim. search current directory recursively.\n\n## Tools\n\nhttps://lvc.github.io/pkgdiff/ - An awesome tool for visualizing changes in Linux software packages \n\n## Websites\n`curl `[http://wttr.in/](http://wttr.in/) - **get weather in ASCII** using your terminal or browser.  \n\n[https://github-forks.abumalick.com/](https://github-forks.abumalick.com/) - **find maintained forks** of your favorite GitHub repos.\n\n## Facts\n\nPython searches `/usr/local/lib/python...` before `/usr/lib/python...` - it had caused me problems.\n\n`getopts` is a (POSIX) shell builtin that can parse simple arguments.   \n`getopt` is an external command (GNU and BSD variants) that can parse all kinds of arguments. \n\n## Design\n\nMany tools are bound to a single directory - this greatly simplifies usage of the tool by reducing the amount of possibilities. (`Makefile`, `Dockerfile`, `Rakefile`, etc.) \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurusarn%2Ftil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurusarn%2Ftil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurusarn%2Ftil/lists"}