Skip to content

Instantly share code, notes, and snippets.

View sharique's full-sized avatar
🏢

Sharique Ahmed Farooqui sharique

🏢
View GitHub Profile
@sharique
sharique / Drush.bat
Created July 13, 2017 08:38
Windows batch file for drush
@echo off
SET SCRIPT_HOME=%~dp0
SET PHP_PATH=%SCRIPT_HOME%php
rem SET PATH=%SCRIPT_HOME%tools\bin;%PHP_PATH%;%PATH%
@php.exe "%SCRIPT_HOME%drush.phar" --php="php.exe" %*
@sharique
sharique / Drush 7 setup
Created November 10, 2014 17:45
Drush 7 setup shell script - run this script as normal user. don't run this as root as this install drush in user's home folder.
#!/bin/sh
cd
mkdir bin
cd bin
echo "In directory"
pwd
php -r "readfile('https://getcomposer.org/installer');" | php
echo "Renaming composer.phar to composer."
mv composer.phar composer
echo "Renaming done."