Skip to content

Instantly share code, notes, and snippets.

@Niteshvgupta
Niteshvgupta / readme.md
Last active March 1, 2023 02:15
Install PHP7-compatible memcache on Mac OS X

1. Install PHP7 with brew

brew install php70

2. Install Memcache from source on PHP7 branch

git clone -b NON_BLOCKING_IO_php7 https://github.com/websupport-sk/pecl-memcache.git
cd pecl-memcache
phpize
./configure
make && make install
@Niteshvgupta
Niteshvgupta / progress.pl
Last active July 7, 2016 17:46
A perl script to calculate a final grade based on the output of the "progress" command from Halligan computers at Tufts
#!/usr/bin/env perl
use strict;
use warnings;
my $num_args = $#ARGV + 1;
if ($num_args != 1) {
print "\nUsage: perl progress.pl class\n";
exit;
@Niteshvgupta
Niteshvgupta / wp-lemp.sh
Last active February 19, 2016 16:56
wp-lemp
echo -n "Domain Name: "
read dmn
echo -n "Mysql Root Password: "
read -s mrp
echo -n "Database Name: "
read dbn
echo -n "Database User: "
read dbu
echo -n "Database Password: "
read -s dbp