Category Uncategorized

Change OS name from Ubuntu to something

You can change the name UBUNTU to any name by modifying the file lsb-release and issue, You can find that files under etc directory vignesh@vignesh-server:~$ sudo nano /etc/lsb-release DISTRIB_ID=Vignesh DISTRIB_RELEASE=0.1 DISTRIB_CODENAME=Test DISTRIB_DESCRIPTION=”Vignesh Testing” vignesh@vignesh-server:~$sudo nano /etc/issue Vignesh Testing n l…

Base64 for images a look

Using Base64 encoded images in website Encode the image to base64 in php <?php $image = file_get_contents(“”); $base64 = base64_encode($image); echo $base64; // This will echo the encoded base64 image ?> Load images in website using php: <?php $image =…

Text watermark in webpages

Adjust your rotate and font size values as per your requirement <style type=”text/css”> #asvignesh-watermark { color: #d0d0d0; width: 100%; font-size: 198pt; -webkit-transform: rotate(-47deg); -moz-transform: rotate(-47deg); height: 100%; margin: 0; z-index: -1; left:-100px; top:-200px; position: absolute; } </style> <div id=”asvignesh-watermark”> <p>Vignesh A…