Skip to content

Instantly share code, notes, and snippets.

Darshit Mendapara mendaparadarshit

View GitHub Profile
View Check if specific array key exists in multidimensional array - PHP
$array = array(
'21' => array(),
'24' => array(
'22' => array(),
'25' => array(
'26' => array()
mendaparadarshit / Install Composer using MAMP's
Created Aug 29, 2019 — 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
mendaparadarshit / client.cpp
Created Oct 12, 2019 — forked from Tryptich/client.cpp
Multiple streaming in c++ using opencv; OpenCV video streaming over TCP/IP
View client.cpp
* OpenCV video streaming over TCP/IP
* Client: Receives video from server and display it
* by Steve Tuenkam
#include "opencv2/opencv.hpp"
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
View MAMP PRO 4 Trial

MAMP PRO 4 Trial Reset

A simple script that resets latest MAMP PRO 4 trial validity, and keeps your data safe.

How to use

  • Copy the code into a file OR download the script and save it as
  • Open the Terminal app and write chmod +x then drag and drop the file on the Terminal. You should have something like chmod +x Press Enter to run it.
  • Now, run the file itself by dragging and dropping it on the Terminal (something like then pressing Enter.
  • Open MAMP PRO and check if you have 14 days left now.

Didn't work?

View Activate Office 2019 for macOS

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above


Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.


You can’t perform that action at this time.