Skip to content

Instantly share code, notes, and snippets.

View milanchheda's full-sized avatar
🎯
Focusing

Milan Chheda milanchheda

🎯
Focusing
View GitHub Profile
@milanchheda
milanchheda / readme.md
Last active August 13, 2018 03:22
How to setup Forticlient SSL VPN client on ubuntu 14.04
@milanchheda
milanchheda / smart_resize_image.php
Last active September 11, 2016 12:23
Came across this fantastic piece of PHP code that resizes the image maintaining the quality and proportional.
<?php
/**
* easy image resize function
* @param $file - file name to resize
* @param $string - The image data, as a string
* @param $width - new image width
* @param $height - new image height
* @param $proportional - keep image proportional, default is no
* @param $output - name of the new file (include path if needed)
* @param $delete_original - if true the original image will be deleted
@milanchheda
milanchheda / apache_solr_4_0_on_ubuntu_12_04.md
Last active September 3, 2018 13:42
Installation of Apache solr 4.0 on Ubuntu 12.04 using Vagrant

Installation of Apache solr 4.0 on Ubuntu 12.04:

vagrant init hashicorp/precise64; vagrant up --provider virtualbox
vagrant up
vagrant ssh

Install Tomcat 6:

apt-get update