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 / .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]