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

Author: Leonardo Signorelli

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

New Code Snippets terminal style: How I customized the Escapade WP theme

April 27, 2023 Leonardo Signorelli

For my Code Snippets website, I use the Escapade WordPress theme as the starting point, but I jazz it up…

Continue Reading →

Posted in: CSS, JavaScript, jQuery, WordPress Filed under: CSS, javascript, jQuery, theme, wordpress, WP theme, wp theme customization

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

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

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 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

Post navigation

Page 2 of 7
← Previous 1 2 3 … 7 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