I scratched my own itch (again) and built a command line tool for “CanIUse …”.
Tag Archives: cli
Introducing
m-cli – Swiss Army Knife for macOS
m-cli is a macOS command line tool that lets you interact with utilities and applications entirely in Terminal. Gives you a bunch of shorthand CLI commands that you can use, such as m finder showdesktop YES, m battery status, m dns flush, etc. These replace a bunch of custom aliases you might have set up …
Laravel Zero – Micro-framework for console applications
Laravel Zero is a lightweight and modular micro-framework for developing fast and powerful console applications. Built on top of the Laravel components. Think of it as a stripped down Laravel, without the public folder. Recently used it to create a Command that runs in Docker Container upon boot and then exits. Instead of using Laravel’s …
Continue reading “Laravel Zero – Micro-framework for console applications”
jless
— A command-line JSON viewer
Glow — Render Markdown on the CLI
Glow is a terminal based markdown reader designed from the ground up to bring out the beauty — and power — of the CLI. Installation per Homebrew brew install glow Once installed, you can open files in several ways: # Read from file glow README.md # Read from stdin glow – # Fetch README from …
htmlq – Command-line HTML Processor
Similar to how jq allows you to extract content from JSON files on the CLI, htmlq allows you extract content from HTML files. Like jq, but for HTML. Uses CSS selectors to extract bits of content from HTML files. You can pass in a local HTML file, but also pipe it to cURL requests. For …
Execute ES Modules on the CLI
Jonathan Neal shared this little snippet on Twitter: Execute JavaScript modules like: bash ./command.js 1. Add the funky header.2. Optional: Omit the extension to not write `.js`.3. Optional: `chmod +x command` to not write `bash `.https://t.co/rhlPg2XPRJ pic.twitter.com/nbAvTFtt0w — Jonathan Neal (@jon_neal) July 25, 2021 Here’s the code: “:” //#;exec /usr/bin/env node –input-type=module – “$@” < …
Automatically Generate Regular Expressions from User Input with grex
grex is a library as well as a command-line utility that is meant to simplify the often complicated and tedious task of creating regular expressions. It does so by automatically generating a single regular expression from user-provided test cases. The resulting expression is guaranteed to match the test cases which it was generated from. As …
Continue reading “Automatically Generate Regular Expressions from User Input with grex
“
Mirror Displays — A Mac app and command-line tool for fiddling with display mirroring
MirrorDisplays a simple application that toggles between mirrored and extended desktop modes. It’s the easiest way to turn on, or turn off display mirroring. Also comes with a (separately installable) CLI tool which makes this pretty interesting The command line tool is good for giving shell-scripts the power to control display mirroring and opens up …
Send mail with Exim from the CLI
I needed to test whether mail relaying worked with Exim or not. To do so I used this command: exim -v recipient@example.com After this type in your mail contents as shown below and hit CTRL+D afterwards to send it: From:sender@example.com Subject: Hello From the CLI This is a test from the CLI It’s also possible …