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 interacting with HTTP servers.
~$# start monitoring your server with a single curl command.
[ ok ] Ping alert created for host '18.104.22.168' and email 'email@example.com'. Check your email to activate it.
~$# activate the first and the next ones are activated automatically.
[ ok ] Ping alert created for host 'example.org' and email 'firstname.lastname@example.org'.
~$# you can skip the IP if you run it from the server, watch out for proxies, etc.
[ ok ] Ping alert created for host '22.214.171.124' (your IP) and email 'email@example.com'.
No website or admin panel or whatever. Just some simple HTTP requests. I love the simplicity in this.
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 action such as line spacing, paging, or data flow.
ANSI Control Sequences allow one to clear the screen, move the cursor, set text colors, etc.
When it comes to ANSI Escape Sequences bramus/ansi-php supports SGR (Select Graphic Rendition) and ED (Erase Display)
SGR affords one to manipulate text styling (bold, underline, blink, colors, etc.).
ED allows one to erase the display.
Other Control Sequences – such as moving the cursor – are not (yet) supported.
It differs from other “PHP ANSI Color” attempts by not being limited to SGR only – it can easily be extended to support other ANSI Escape Sequences – and by supporting all SGR parameters.
The library ships with an Ansi helper class to easily use it.
// Create Ansi Instance
$a = new Ansi();
// Output some styled text on screen, along with a Line Feed and a Bell
echo $a->color(array(SGR::COLOR_FG_RED, SGR::COLOR_BG_WHITE))
->text('My text will be white on a red background and I will be blinking.')
->text('I will be normally styled. Oh, a bell is coming up ...')
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(*).