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
  • Raspbian
  • Terminal
  • Unity
  • Website Templates
  • WordPress

Author: Leonardo Signorelli

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

Upgrade Drupal core from 9.4.8 to 9.5.0 (Acquia Cloud IDE + Acquia Cloud Platform)

December 30, 2022 Leonardo Signorelli

I’m using my Acquia Cloud IDE instance, but you should be able to follow these steps on your local Drupal…

Continue Reading →

Posted in: Acquia, Acquia Cloud IDE, Drupal 8-9, Drush Filed under: Acquia Cloud, Acquia Cloud IDE, Acquia Cloud Platform, Drupal 9, Drupal Core, Drupal Core 9.5.0

Drupal: Limit which text formats are available for each text field

December 23, 2022 Leonardo Signorelli

If you are looking for a way to limit which text formats are available for each WYSIWYG text input on…

Continue Reading →

Posted in: Drupal 8-9, Drupal Modules, Drush Filed under: Allowed Formats, Drupal 10, drupal 8, Drupal 9, Drupal Module, Drupal modules, Drupal8, Text formats

Acquia Cloud Site Factory API and Acquia CLI

December 22, 2022 Leonardo Signorelli

Acquia Cloud Site Factory API documentation and useful tools to interact with your Drupal site using our Site Factory API…

Continue Reading →

Posted in: Acquia, Acquia API, Acquia Cloud Site Factory Filed under: Acquia, Acquia API, Acquia Cloud Site Factory, Acquia Site Factory, ACSF, API, curl

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 on Akamai using Linux

December 1, 2022 Leonardo Signorelli

Run the following “dig” command against the URL in question: dig <URL> +noall +answer Example:

Continue Reading →

Posted in: Terminal Filed under: linux, terminal

Install a new Drupal Application with Acquia Cloud IDE

November 23, 2022 Leonardo Signorelli

Open your Cloud IDEClick the “Reset Workspace” button or execute: /ide/reset-workspace.py Clone your Cloud Platform repo inside the project folder:To…

Continue Reading →

Posted in: Acquia, Acquia Cloud IDE, Drupal 8-9, Drush Filed under: Acquia, Acquia Cloud, Acquia Cloud IDE, Drupal, Drupal Installation, drush, Install Drupal

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

Acquia Cloud Platform: Upgrading a Drupal 9 site from PHP 7.4 to PHP 8.0 using Acquia Lando

September 19, 2022 Leonardo Signorelli

PHP 7.4 is coming to an end of life! So I need to upgrade to PHP 8.0 ASAP! From Acquia’s…

Continue Reading →

Posted in: Acquia, Drupal 8-9, Drush, Lando, MacOS Filed under: Acquia, Acquia Cloud, Acquia Lando, Drupal, drupal 8, Drupal 9, Drupal8, drush, lando, PHP 8.0, PHP 8.0 Upgrade, PHP Upgrade

Post navigation

Page 1 of 6
1 2 … 6 Next →
  • 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
  • Raspbian
  • Terminal
  • Unity
  • Website Templates
  • WordPress
Copyright © 2023 Code Snippets — Escapade WordPress theme by GoDaddy