Skip to content

Instantly share code, notes, and snippets.


kamleshwebtech kamleshwebtech

View GitHub Profile
View Add DS_Store into .gitignore for the sub

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called


In your the root directory of your app and simply write

kamleshwebtech / Controller.php
Created May 5, 2021 — forked from earth774/Controller.php
create upload image in lumen
View Controller.php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Laravel\Lumen\Routing\Controller as BaseController;
class Controller extends BaseController
public function uploadImage(Request $request)
kamleshwebtech / db-connect-test.php
Created May 4, 2021 — forked from chales/db-connect-test.php
Script for a quick PHP MySQL DB connection test.
View db-connect-test.php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
kamleshwebtech / Install Composer using MAMP's
Created Apr 24, 2021 — forked from irazasyed/Install Composer using MAMP's
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management
View Install Composer using MAMP's

Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management

Instructions to Change PHP Installation

First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php
View public-stun-list.txt
kamleshwebtech / gist:f109eaf101ac2546ab340b9932308c1b
Created Jun 27, 2019 — forked from adamstac/gist:7462202
Install and configure Sendmail on Ubuntu
View gist:f109eaf101ac2546ab340b9932308c1b

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart