Read-only phar archives

When you’re building a `.phar` archive and you receive this error:
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot write out phar archive, phar is read-only' in ..../bin/build:19
you need to set phar.readonly to Off in your php.ini file.

phar.readonly = Off

This is what the php docs say about it:

This option disables creation or modification of Phar archives using the phar stream or Phar object’s write support. This setting should always be enabled on production machines, as the phar extension’s convenient write support could allow straightforward creation of a php-based virus when coupled with other common security vulnerabilities.

Note:

This setting can only be unset in php.ini due to security reasons. If phar.readonly is disabled in php.ini, the user may enable phar.readonly in a script or disable it later. If phar.readonly is enabled in php.ini, a script may harmlessly “re-enable” the INI variable, but may not disable it.

SSH Keygen Infos

I havent’t wrote in a while. To keep it short: I’m still alive.
This is just a short note on ssh keygen and ssh-copy which I was not aware of.

Let’s assume you have your keys an need to change the passphrase:
cd ~/.ssh/
(keys can be ~/.ssh/id_rsa.pub or ~/.ssh/id_dsa.pub)

ssh-keygen -f id_dsa -p

And copy the key to remote host:

ssh-copy-id -i USER@REMOTE_HOST

That’s it ­čÖé now you can connect to the remote machine without hassle.

ssh USER@REMOTE_HOST

using figlet to pimp your scripts

I just read about the unix tool ‘figlet’. One can create some kind of ascii art text.
Let’t dive into it quickly:

cbo$ figlist | while read font; 
do figlet -f $font "$font";
echo $font;  
done

Figlet fonts in this directory:
                                          
#####    ##   #    # #    # ###### #####  
#    #  #  #  ##   # ##   # #      #    # 
#####  #    # # #  # # #  # #####  #    # 
#    # ###### #  # # #  # # #      #####  
#    # #    # #   ## #   ## #      #   #  
#####  #    # #    # #    # ###### #    # 
                                          
banner
 _     _       
| |   (_)      
| |__  _  __ _ 
| '_ \| |/ _` |
| |_) | | (_| |
|_.__/|_|\__, |
          __/ |
         |___/ 
big
                                            
_|        _|                      _|        
_|_|_|    _|    _|_|      _|_|_|  _|  _|    
_|    _|  _|  _|    _|  _|        _|_|      
_|    _|  _|  _|    _|  _|        _|  _|    
_|_|_|    _|    _|_|      _|_|_|  _|    _|  
                                            
                                            
block
  _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ 
( b | u | b | b | l | e )
 \_/ \_/ \_/ \_/ \_/ \_/ 
bubble
+-+-+-+-+-+-+-+
|d|i|g|i|t|a|l|
+-+-+-+-+-+-+-+
digital
                                        _   _            _ 
                                       | |_(_)_ ____   _(_)
                                       | __| | '__\ \ / / |
                                       | |_| | |   \ V /| |
                                        \__|_|_|    \_/ |_|
                                                           
ivrit
                                     
    _/                               
   _/    _/_/      _/_/_/  _/_/_/    
  _/  _/_/_/_/  _/    _/  _/    _/   
 _/  _/        _/    _/  _/    _/    
_/    _/_/_/    _/_/_/  _/    _/     
                                     
                                     
lean
           
._ _ o._ o 
| | ||| || 
           
mini
mnemonic
mnemonic
                          
               o          
 ,   __   ,_        _ _|_ 
/ \_/    /  |  |  |/ \_|  
 \/ \___/   |_/|_/|__/ |_/
                 /|       
                 \|       
script
      |               |                
  __| __ \   _` |  _` |  _ \\ \  \   / 
\__ \ | | | (   | (   | (   |\ \  \ /  
____/_| |_|\__,_|\__,_|\___/  \_/\_/   
                                       
shadow
         __            __ 
   _____/ /___ _____  / /_
  / ___/ / __ `/ __ \/ __/
 (__  ) / /_/ / / / / /_  
/____/_/\__,_/_/ /_/\__/  
                          
slant
               _ _ 
 ____ __  __ _| | |
(_-< '  \/ _` | | |
/__/_|_|_\__,_|_|_|
                   
small
                                  
 ,           ,   _   ,_  o    _|_ 
/ \_/|/|/|  / \_/   /  | | |/\_|  
 \/  | | |_/ \/ \__/   |/|/|_/ |_/
                          (|      
smscript
               |              |              
(_-<  ` \ (_-<   \   _` |  _` |  _ \\ \  \ / 
___/_|_|_|___/_| _|\__,_|\__,_|\___/ \_/\_/  
                                             
smshadow
                 __          __ 
  ___ __ _  ___ / /__ ____  / /_
 (_-

You can pipe any string into figlet

cbo$while [ 1 ];
do
        clear
        date +%r | figlet
        sleep 1
done

  ___ _____  ____   ___    ____  ___                    
 / _ \___ /_|___ \ / _ \ _| ___|/ _ \   _ __  _ __ ___  
| | | ||_ (_) __) | | | (_)___ \ (_) | | '_ \| '_ ` _ \ 
| |_| |__) | / __/| |_| |_ ___) \__, | | |_) | | | | | |
 \___/____(_)_____|\___/(_)____/  /_/  | .__/|_| |_| |_|
                                       |_|      

Does Google know Leipzig ?

Q: Does Google know Leipzig ?
A: Well yes it does, but it’s not that good.

A friend (thanks Micha), just gave me this Google Maps link where you can see the “V├Âlkerschlachtdenmkal”. By mischance the put it in the wrong place. For those of you that been to Leipzig see yourself:
Here’s a screenshot of hte ‘bug’
picazza
To see if Google took note of this fault check the Live Map below

Gr├Â├čere Kartenansicht