Skip to content

Instantly share code, notes, and snippets.

View QusaiFarraj's full-sized avatar
😎
working on something awesome

Qusai Farraj QusaiFarraj

😎
working on something awesome
View GitHub Profile
@QusaiFarraj
QusaiFarraj / imagick3.4.4-PHP7.4-forge.sh
Created September 29, 2020 19:49 — forked from danielstgt/imagick3.4.4-PHP7.4-forge.sh
Install ImageMagick / Imagick 3.4.4 on PHP 7.4 server (Laravel Forge)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.4.tgz
tar xvzf imagick-3.4.4.tgz
@QusaiFarraj
QusaiFarraj / Brew-php71-php72.txt
Last active November 10, 2019 21:38
Run PHP71 and PHP72 on MacOS with Homebrew
When you transition from PHP71 to PHP72, you will need check that your projects ar compataible with PHP72.
In order to do so, you need to have both PHP71 nad PHP72 installed on your machine.
To do so:
1- install your default php version, if you have not already. For me it's `brew install php71`
2- install php72 `brew isntall php72`
3- symlink php72 `ln -s /usr/local/Cellar/php@7.2/7.2.24/bin/php /usr/local/bin/php72`
And that's it.
@QusaiFarraj
QusaiFarraj / .htaccess
Created October 17, 2018 16:35 — forked from IngmarBoddington/.htaccess
All sorts of .htaccess fixes, redirects and security related settings
#Front Controller rewrite
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php [L,NC]
# Ensure we are using HTTPS
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]