techboard.io

Unix Archive

  • bash

    Discover Bash Programming !!!


    If you have never programmed in Bash before , Time has come to start … Bash : Bourne Again SHell Bash is not only an excellent command line shell, but a scripting language in itself. Shell scripting allows you to fully use the shell’s abilities and to automate a lots of […]

  • OpenShift: from early development to production in clouds


    OpenShift is a Red Hat solution dedicated to PaaS. OpenShift is powered by Kubernetes and Docker, and is running on RHEL or CentOS (Fedora support has been discouraged due to the fact that some dependencies are updated too quickly in order for Red Hat to guarantee a full compatibility). OpenShift […]

  • Use docker behind an enterprise proxy


    Create docker machine with correct proxy settings The use of docker behind a corporate proxy may be a little difficult. Here are a few tips and tricks to do after a fresh install of docker-toolbox. First, you must remove the default image if you already have one docker-machine rm default Create a […]

  • #ShebangHero 004 – Timestamps, timestamps everywhere !


    Tired of typing date +%Y%m%d_%H%M%S for your timestamps ? Make a function !

    Add it in your .profile or .*rc, and you will have a quick way to use timestamps everywhere !

  • #ShebangHero 006 – Turn hexadecimal chunks in text


    If you’re a normal human, you probably don’t know the full ASCII table. If you need to decode a text from hexadecimal, xxd is your friend !

  • #ShebangHero 005 – Fancy banners for all !


    FIGlet is a powerful tool to generate banners with style ! Even if you have no drawing skill. To list available fonts, type showfigfonts . You can use them as welcome message, signature, or just for fun !

  • #ShebangHero 003 – Get ride of files starting with a dash


    A special option on most common commands is a double-dash -- . This option will tell to command to stop parsing further options. Any word after -- option will be used as an argument. This way, you can handle files starting with dash easily. It is also safer to use […]

  • #ShebangHero 007 – Strings will save the day !


    strings is a command that display printable characters from a binary file. It is very popular for forensic (and hacking as well) to reveal hidden strings like passwords or backdoor keys. It can also show hidden options or Easter eggs !

  • #ShebangHero 001 – Create files in a quick way


    Using seq and xargs is a common trick to create huge amount of files !

  • #ShebangHero 002 – Show invisible characters


    Some UNIX tools do not like CR-LF end of line characters made in Microsoft. Using cat with -vet options, you can see them as ^M . Regular end of line will be displayed as $. To fix a “corrupted” file, have a look to fromdos (formerly dos2unix ).