Skip to content
Code Snippets
Useful code to copy and paste
  • ALL
  • Acquia
  • Acquia API
  • Acquia Cloud IDE
  • Acquia Cloud Site Factory
  • Bash
  • Bootstrap
  • C#
  • CSS
  • curl
  • Drupal 8-9
  • Drupal Modules
  • Drush
  • HTML
  • JavaScript
  • jQuery
  • Lando
  • MacOS
  • PHP
  • Raspberry Pi
  • Terminal
  • Unity
  • Website Templates
  • WordPress

Category: Terminal

ACSF Drush Alias Generator

Streamline Your ACSF Workflow with the ACSF Drush Alias Generator

March 29, 2025 Leonardo Signorelli

Managing multiple Drupal sites on Acquia Cloud Site Factory (ACSF) can be challenging, especially when running Drush commands across different…

Continue Reading →

Posted in: Acquia, Acquia Cloud Site Factory, Bash, Drupal 10, Drupal 8-9, Drush, Terminal Filed under: Acquia, Acquia Cloud Site Factory, ACSF, Bash, Drupal, Drupal 10, drupal 8, Drupal 9, drush, Shell Script
Set Up a PHP + MySQL + phpMyAdmin Environment Using DDEV

How to Set Up a Local PHP + MySQL + phpMyAdmin Environment Using DDEV

February 11, 2025 Leonardo Signorelli

If you’re looking for a quick and easy way to set up a PHP development environment with MySQL and phpMyAdmin,…

Continue Reading →

Posted in: Apache, DDEV, PHP, Terminal Filed under: DDEV, development environment, local environment, PHP, phpMyAdmin

Block an IP address with .htaccess

May 8, 2023 Leonardo Signorelli

In case you have identified an unusually high number of requests from a particular IP address with nefarious intentions, we…

Continue Reading →

Posted in: Apache, Drupal 8-9, Terminal, WordPress Filed under: .htaccess, Block IP address, Drupal, terminal, wordpress

Mount an Apple USB SuperDrive (A1379) in Ubuntu 20.04.6 LTS with ease

April 30, 2023 Leonardo Signorelli

Maybe it sounds strange to use a USB CD-DVD Drive nowadays. However, I have a collection of music CDs that…

Continue Reading →

Posted in: Terminal Filed under: Apple USB SuperDrive, linux, terminal, Ubuntu

How to Set the Timezone in Raspberry Pi

April 23, 2023 Leonardo Signorelli

Open terminal and run the command “sudo raspi-config” and press enter. A new menu will appear. Select “Localisation Options“. Select…

Continue Reading →

Posted in: Raspberry Pi, Terminal Filed under: Rasbian OS, Raspberry Pi, terminal

Mac: A simple one-liner with ffmpeg to convert image sequence to MP4.

March 18, 2023 Leonardo Signorelli

The easiest way to install ffmpeg on a Mac is to use HomeBrew. If you don’t have homebrew installed on…

Continue Reading →

Posted in: MacOS, Terminal Filed under: convert image sequence to MP4, ffmpeg, image sequence to MP4, MacOS, MacOS X, mp4, one-liner, terminal

Linux command that prints directories and sub-directories as a tree structure

January 27, 2023 Leonardo Signorelli

To show a graphical representation of the current sub-directories without files use the following linux command: Example: To display both…

Continue Reading →

Posted in: Terminal Filed under: terminal

Copy an ISO to a USB Drive from a Mac using dd

December 10, 2022 Leonardo Signorelli

Attach the target USB drive to your Mac if you haven’t done so yet, then launch the Terminal. Type the…

Continue Reading →

Posted in: MacOS, Terminal Filed under: bootable USB, Format USB, MacOS, MacOS X, terminal

How to check if a site is behind Akamai using dig

December 1, 2022 Leonardo Signorelli

Run the following “dig” command against the URL in question: Example:

Continue Reading →

Posted in: Terminal Filed under: linux, terminal

How To enable HSTS for your site

September 22, 2022 Leonardo Signorelli

Configure your .htaccess File You should edit your .htaccess file to add the proper headers to static assets. Here is…

Continue Reading →

Posted in: curl, Terminal Filed under: curl, HSTS, terminal

Post navigation

Page 1 of 2
1 2 Next →

If you find my articles useful and would like to show your appreciation, consider buying me a cup of coffee ☕️. Your support is greatly appreciated and helps me continue creating valuable content. Thank you!

Donate
  • ALL
  • Acquia
  • Acquia API
  • Acquia Cloud IDE
  • Acquia Cloud Site Factory
  • Bash
  • Bootstrap
  • C#
  • CSS
  • curl
  • Drupal 8-9
  • Drupal Modules
  • Drush
  • HTML
  • JavaScript
  • jQuery
  • Lando
  • MacOS
  • PHP
  • Raspberry Pi
  • Terminal
  • Unity
  • Website Templates
  • WordPress
Copyright © 2025 Code Snippets — Escapade WordPress theme by GoDaddy