descriptionCompute a cute little ansi colour flag based off a machine's hostname
ownerCyberLeo
last changeThu, 18 Jun 2015 01:38:45 +0000 (20:38 -0500)
readme

Flag

This program produces a cute little ansi colour 'flag' based off a hash of the current machine's hostname (or settable via ~/.flag or /etc/flag) which can help uniquely identify a machine, at a glance. Useful for placing into /etc/issue or your bash prompt, so that you don't send stupid commands to the wrong machine.

Screenshot illustrating flag in BASH prompt

COPYRIGHT

Copyright (c) 2000-2013, CyberLeo
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

    * Redistributions of the source code must retain the above copyright
      notice, this list of conditions, and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions, and the following disclaimer in the
      documentation and/or other materials provided with the distribution.
    * Neither the name of the organization nor the names of its contributors
      may be used to endorse or promote products derived from this software
      without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILTY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
shortlog
2015-06-18 CyberLeoAdd Python crc32 algo master
2014-01-05 CyberLeoMake checkbashsism (mostly) happy 1.0.5
2014-01-05 CyberLeoEliminate scary eval and sed invocation
2013-10-20 CyberLeoRework crc32 algorithm selection mechanism 1.0.4
2013-10-20 CyberLeoAvoid caching flag if no usable crc32 algo was found
2013-10-20 CyberLeoAdd README
2013-03-10 CyberLeoFreeBSD has a cksum binary that may be useful 1.0.3
2012-02-12 CyberLeoModify algorithm to toggle inverse command along with... 1.0.2
2012-02-12 CyberLeoWhitespace cleanup
2010-03-07 CyberLeoStub bash include for prompt flag 1.0.1
2009-02-21 CyberLeoAll diagnostics print to stderr, to prevent tainting... 1.0.0
2009-01-12 CyberLeoDefault flag render char is now the hex number for...
2009-01-06 CyberLeoAdded init.d script to update /etc/issue with a flag
2009-01-06 CyberLeoBackslash fixup
2009-01-06 CyberLeoFreeBSD fixup
2009-01-06 CyberLeoHelp blurb clarification
...
tags
3 years ago 1.0.5
4 years ago 1.0.4
4 years ago 1.0.3
5 years ago 1.0.2
7 years ago 1.0.1
8 years ago 1.0.0
heads
2 years ago master