Skip to content

Instantly share code, notes, and snippets.

View neilghosh's full-sized avatar
🇮🇳

Neil Ghosh neilghosh

🇮🇳
View GitHub Profile
@neilghosh
neilghosh / gist:780a9286582ea5b6d910
Last active November 16, 2015 11:41
Fix PHP 5.3 Apache in OS X El Capitan

I was fooling arroung PHP to get openssl and currupted the installation

later started to get following error while attempting to start apache

sudo apachectl restart
httpd: Syntax error on line 32 of /usr/local/etc/apache2/2.2/httpd.conf: Cannot load /usr/local/opt/php53/libexec/apache2/libphp5.so into server: dlopen(/usr/local/opt/php53/libexec/apache2/libphp5.so, 10): Symbol not found: _ap_unixd_config\n  Referenced from: /usr/local/opt/php53/libexec/apache2/libphp5.so\n  Expected in: /usr/local/Cellar/httpd22/2.2.29/bin/httpd\n in /usr/local/opt/php53/libexec/apache2/libphp5.so

reinstalling php53 gave me zlib not found error brew reinstall php53 --homebrew-apxs

@neilghosh
neilghosh / gphotos_download.py
Created February 14, 2015 11:09
Script to find and download the oversized photos in Google Plus
#!/usr/bin/python
import gdata.photos.service
import os.path
import sys, os
#Script to find and download the oversized photos in Google Plus
programName = 'PicScanner'
username = "<Your Email>"
password = "<Your password>"
package computerdatabase
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
import io.gatling.jsonpath._
class Test1 extends Simulation {
val httpConf = http