Easily create new CLI aliases with `new-alias`

I love stuff like this: It’s a handy little alias to create aliases for commands you just ran … an β€œalias-generating alias”; my inner geek rejoices πŸ™‚ Here’s the code (add it to your .bash_profile): new-alias() { local last_command=$(echo `history |tail -n2 |head -n1` | sed ‘s/[0-9]* //’) echo alias $1=”‘””$last_command””‘” >> ~/.bash_profile . ~/.bash_profile […]

HTTPie – Command line HTTP client

HTTPie (pronounced aych-tee-tee-pie) is a command line HTTP client. Its goal is to make CLI interaction with web services as human-friendly as possible. It provides a simple http command that allows for sending arbitrary HTTP requests using a simple and natural syntax, and displays colorized output. HTTPie can be used for testing, debugging, and generally […]

ping.gg – The world’s most simple monitoring service.

~$# start monitoring your server with a single curl command. ~$curl ping.gg/[email protected]/ [ ok ] Ping alert created for host ‘’ and email ‘[email protected]’. Check your email to activate it. ~$# activate the first and the next ones are activated automatically. ~$curl ping.gg/[email protected]/example.org [ ok ] Ping alert created for host ‘example.org’ and email ‘[email protected]’. […]

ANSI Control Functions and ANSI Control Sequences (Colors, Erasing, etc.) for PHP CLI Apps

As a side project for Monolog Colored Line Formatter (which int itself also is a side project for Mixed Content Scan) I just published is ANSI PHP. bramus/ansi-php is a set of classes to working with ANSI Control Functions and ANSI Control Sequences (ANSI Escape Sequences) on text based terminals. ANSI Control Functions control an […]

Batch install dependencies in all subfolder-organised projects

As a lecturer ICT I have to correct the work our students make. Therefor I collect all solutions and put them in a subfolder-organised structure on disk: per student I create a subfolder and put their solution into that folder(*). $ tree -L 1 . β”œβ”€β”€ student1 β”œβ”€β”€ student2 β”œβ”€β”€ … └── studentN As – […]