{"id":18320060,"url":"https://github.com/davidfmiller/bin","last_synced_at":"2025-04-12T21:44:33.956Z","repository":{"id":146515712,"uuid":"45700623","full_name":"davidfmiller/bin","owner":"davidfmiller","description":":shell: Shell scripts ","archived":false,"fork":false,"pushed_at":"2025-04-08T22:42:01.000Z","size":194,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T23:27:25.227Z","etag":null,"topics":["python","shell","swift"],"latest_commit_sha":null,"homepage":"","language":"Python","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/davidfmiller.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":"2015-11-06T18:47:29.000Z","updated_at":"2025-04-08T22:42:04.000Z","dependencies_parsed_at":"2025-03-07T17:20:19.768Z","dependency_job_id":"9dc7fe3b-582a-4eb5-adc7-f3639845c013","html_url":"https://github.com/davidfmiller/bin","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/davidfmiller%2Fbin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfmiller%2Fbin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfmiller%2Fbin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfmiller%2Fbin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfmiller","download_url":"https://codeload.github.com/davidfmiller/bin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637833,"owners_count":21137538,"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":["python","shell","swift"],"created_at":"2024-11-05T18:15:00.419Z","updated_at":"2025-04-12T21:44:33.950Z","avatar_url":"https://github.com/davidfmiller.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bin\n\nRandom shell scripts, primarily for macOS\n\n## byte-format\n\nFormats a byte count into a human-friendly string:\n\n\t\u003e byte-format [number]\n\n\n## catf\n\nEcho the contents of a file with [Pygments](http://pygments.org)-powered syntax highlighting.\n\n\t\u003e catf [filename]\n\nSee [http://davidfmiller.github.io/bin/catf.html](http://davidfmiller.github.io/bin/catf.html) for more info.\n\n## data-uri\n\nEcho the `data:` URI for the contents of a file. Supports the following types:\n\n * `css`\n * `gif`\n * `htm` \u0026 `html`\n * `jpg` \u0026 `jpeg`\n * `js` \u0026 `json`\n * `pdf`\n * `png`\n * `svg`\n * `txt` (default)\n\n\t\u003e data-uri [filename]\n\n## date-rss\n\nEcho the current date in [RSS-compatible](http://www.faqs.org/rfcs/rfc2822.html) format.\n\n\t\u003e date-rss\n\n## git-rev\n\nEcho the newest git revision id from the current branch\n\n\t\u003e git-rev\n\n## git-repo\n\nOpen the remote host for a git repository in your web browser of choice. Currently supports [GitHub](https://github.com), [BitBucket](https://bitbucket.org), \u0026 [GitLab](https://gitlab.com).\n\n    \u003e git-repo [path]\n\n## guetzler\n\nRun one or more JPGs (or a directory of them) through [guetzli](https://github.com/google/guetzli)\n\n    \u003e guetzler [jpg|directory]\n\n## http\n\nServe a directory via Python's [SimpleHTTPServer](https://docs.python.org/2/library/simplehttpserver.html) library:\n\n    \u003e http [port]\n\n\n## icon-reset\n\nClear all macOS icon caches (requires restart)\n\n## imessage-icon\n\nCreate all iMessage app icon variations from a master image (≥ 1024x768):\n\n    \u003e imessage-icon [icon.png]\n\n\n## ios-application-icon\n\nCreate all iOS icon variations from a master image (≥ 1024x1024):\n\n    \u003e ios-icon [icon.png]\n\n## macos-icon\n\nCreate a `.icns` file for Mac applications, documents, \u0026 other resources\n\n    \u003e macos-application-icon [icon.png]\n\n\n## json\n\nA simple JSON-formatter. Reads from `stdin`, prints to `stdout`.\n\n    \u003e curl \"https://readmeansrun.com/code/readmeansafari/test/json.php\" | json\n\n## memcache-flush\n\nFlush contents of [`memcached`](https://memcached.org)\n\n    \u003e memcache-flush\n\n## os\n\nA simple script to echo one of the following identifiers to `stdout` based on OS name:\n\n * `osx` - [Mac OS X](http://www.apple.com/osx/)\n * `raspberry` - [Raspbian](http://www.raspbian.org)\n * `linux` - [Ubuntu](https://www.ubuntu.com)\n * `?` - Anything else\n\n\n## quit\n\nQuit an OS X application by name:\n\n  * `\u003e quit Terminal`\n  * `\u003e quit \"Google Chrome\"`\n\n## pushover\n\nEasily send messages to the [Pushover](https://pushover.net) API\n\n  `\u003e pushover {application} {message}`\n\n## restart\n\nRestarts your computer, handles macOS restarts somewhat gracefully\n\n\n## touch-icon\n\nCreate all [Apple touch icon](https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html) \u0026 [MS application](https://msdn.microsoft.com/en-us/library/dn255024(v=vs.85).aspx) variations from a master image (≥ 310x310):\n\n    \u003e touch-icon [icon.png]\n\nA sibling folder containing the generated images will be created with the same basename as the argument\n\n## url\n\nEcho the file-system URL (or internet URL for `.webloc` files) for arguments\n\n    \u003e url [file(s)]\n\n\n## uti\n\nEcho the [UTI](https://developer.apple.com/library/content/documentation/General/Conceptual/DevPedia-CocoaCore/UniformTypeIdentifier.html) for files provided as arguments\n\n    \u003e uti [file(s)]\n\n## watchos-application-icon\n\nCreate all watch OS application icon variations from a master image (≥ 1024x1024):\n\n    \u003e watchos-application-icon [icon.png]\n\n## watchos-complication-icon\n\nCreate all watch OS complication icon variations from a master image (≥ 1024x1024):\n\n    \u003e watchos-complication-icon [icon.png]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfmiller%2Fbin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfmiller%2Fbin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfmiller%2Fbin/lists"}