Skip to content

Instantly share code, notes, and snippets.

View clizaola's full-sized avatar

Carlos Lizaola clizaola

View GitHub Profile
@clizaola
clizaola / format.sh
Created August 27, 2024 15:54 — forked from garethrees/format.sh
Format USB drive from the command line macOS
diskutil list
diskutil unmountDisk /dev/disk2
diskutil eraseDisk FAT32 SANDISK /dev/disk2
@clizaola
clizaola / gist:a83112070f5292b223b86a38e3c8f182
Created September 6, 2019 22:59
PHP-FPM Optimizations 4G Server
#!/usr/bin/env bash
# Config File Path
declare -r configFile=/etc/php/7.2/fpm/pool.d/www.conf
# Generating Config Backup Path with timestamp
currentTime=$(date "+%Y%m%d%H%M%S")
declare -r configFileBackup=$configFile.$currentTime
if [ ! -f "$configFile" ]
#!/bin/bash
checkIfNodeInstalled()
{
retval=""
if which node > /dev/null
then
retval="true"
else
retval="false"
@clizaola
clizaola / imagick-3.4.3-PHP7.1-forge.sh
Last active February 6, 2017 16:53 — forked from pascalbaljet/imagick-3.4.0-PHP7-forge.sh
Install Imagick 3.4.0 on PHP 7.0 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.3.tgz
tar xvzf imagick-3.4.3.tgz