Laravel Community Tools by Tighten

Staff Picks

Our favorite recipes, hand-picked by the team. 5 recipes selected.

Change all SSL sites on this server to use HSTS

Pick

HSTS is a setting you can enable on your SSL-enabled domains to ensure browsers will never connect to the non-secured version of your web site. https://https.cio.gov/hsts/ If you run this scr...

# Set the text we want to insert into each record
INSERT='\    # Enable HSTS (added manually)\n    add_header Strict-Transport-Security "max-age=31536000" always;\n'

# For every site in sites-available without the phrase "HSTS" in it...
4 years ago
mattstauffer

Install & enable Imagick on PHP8.4

Pick

Install imagick & imagick from pecl & connection the extension

#!/bin/bash

if [ "$EUID" -ne 0 ]
  then echo "Please run as root"
9 months ago
bramimhof

Install Libreoffice

Pick

Sets up Libreoffice in the VM to make soffice command available. It can be used for various office file conversions.

# Ensure the package list is up-to-date
echo "Updating package list..."
sudo apt-get update -y

9 months ago
siddharth

Artisan Helper

Pick

Adding `art` for artisan to the bash profile for easy access. It will work in envoyer style deploys looking for artisan in `./current` and `./default/current` directories.

#!/bin/bash

# Make using artisan a little easier 
#
7 years ago
rjksn

Install VIPS library command line tools

Pick

VIPS is a high speed library for image processing, happily handling images of any size on any amount of RAM available. For example resizing of 20,000x5,000 image to 1,200 x312 pixel dimension take...

sudo apt-get install libvips
sudo apt-get install libvips-tools
11 years ago
msurguy