telnet mapscii.me
Impressive! Try zooming to your place with a
...
simple, read-only, terminal experience for tabletop RPGs. You can fork the project and change the code for your own configurations, like terminal name (or sector/station/node if sci-fi), image and messages
I started to contribute some features to this nice project: https://github.com/jacksonbenete/email_terminal/issues/9
bash -n
is a basic but useful builtin syntax linter.
If you do not use the pre-commit
Python command & hook manager (check it out, it's great!), you can define a git
pre-commit hook "manually" by putting the following in a file at .git/hooks/pre-commit
:
#!/bin/sh
# Redirect output to stderr:
exec 1>&2
echo "Executing bash native syntax linter on all modified .sh files:"
if ! git diff --cached --name-only --diff-filter=AM HEAD | grep '.sh$' | xargs -n 1 bash -n
then
echo "Error : syntax issues were detected"
exit 1
fi
In the last years, cmder became my default console when I needed a cmd.exe
-compatible Windows console.
Very often, I have a cmder
window with a set of tabs under my standard Windows user, and another that I launch as admi, to switch on/off some services, e.g …
Today, I did some tests on a server where an old version of our project was deployed. At some point, I needed to identify which version of the code was there, and I wrote a pretty shell function to figure this out.
Yeah, I know what your thinking : there must …
Die shell script, DIE !
In this post, I'll show how easy it ease to convert fragile shell scripts to Python scripts, using sh.py. I'll use as an example a simple script to check your HTML code from the command-line, using the W3C validator.
Now you ask me, why the …
In a nutshell:
SUN=$SAUCE_USERNAME; SAK=$SAUCE_ACCESSKEY
curl -u $SUN:$SAAK https://saucelabs.com/rest/v1/$SUN/jobs?format=csv \
| perl -wpe 's/\r$//' \
| xargs -I{} curl -u $SUN:$SAK -X DELETE "https://saucelabs.com/rest/v1/$SUN/jobs/{}"
I often find myself grep
-ing for information in system or application log files. And often, by combining pipes, I end up generating a flow of values that is sometimes difficult to interpret.
In this post I'll show you a quick-and-dirty but handy solution to get basic statistical quantities from …
Malgré leurs nombreux défauts [1], les scripts shell restent bien pratiques. Pourquoi ? Parce qu'ils fonctionnent exactement comme l'interpréteur de ligne de commande de votre terminal Linux. Ils sont donc la solution la plus simple et rapide pour automatiser des enchaînement de commandes [2].
Comme les scripts shell sont très sujets …