3 ms·
Break out a shell, I live in the shell? Servers don't have a GUI and I do about 90% of administration from the command line on the Desktops/Laptops (the only t
by noir_lord 13y ago
Break out a shell, I live in the shell?
Servers don't have a GUI and I do about 90% of administration from the command line on the Desktops/Laptops (the only time I use a GUI for configuration is to configure the GUI..meta).
Linux isn't Windows or Mac, The command line is expected to be used for administration (and this approach has lots of benefits, script-ability, reproducibility, the ability to send the same command to 50 identical servers to name a few).
The unix (linux/freeBSD) command line is one of it's stand-out features (others been stability, cost and ease of deployment.
I've yet to find a GUI that allows me to manipulate files and data in a general way that matches the linux command line, take this for example.
#!/bin/bash
php artisan routes | grep -i $1 |sort -k 4 | cut -d '|' -f 3 | sed 's/ GET //' | while read ln;
do
filename=${ln//[\/]/_}.png;
echo $filename;
cutycapt --url=http://metaflow.co.uk"$ln" --out=/home/dev/screenshots/$filename --min-width=1280 --min-height=1280;
done
(not this script is a hack job, bash-aficionados can wince now)
That dumps out a list of all the routes in my currently developed webapp then loops over them converting the url to a sensible filename (/add/customer becomes _add_customer.png etc) then it uses a command line utility to visit that URL and grap an image of the page at 1280x1280 (using the webkit engine) and saves them in a folder in my home folder.
With a single command I can dump 50 mock screens to png and name them with the URL and I can do this every time I change them automatically.
This is what my home desktop looks like on a typical day http://i.imgur.com/vLMVAI8.png http://i.imgur.com/vLMVAI8.png