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

Tag: terminal

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

Find files larger than 5mb in Linux

September 12, 2022 Leonardo Signorelli

To find files larger than 5 MB, we need to pass the -size option with value +5M in the find…

Continue Reading →

Posted in: Terminal Filed under: awk, awk command, find command, terminal

Git Best Practices on Acquia Cloud Platform

September 8, 2022 Leonardo Signorelli

Find your Git URL On your Acquia Cloud Platform Application page, go to any of the environments admin pages (dev,…

Continue Reading →

Posted in: Acquia, Terminal Filed under: Acquia, Acquia Cloud, git, git commands, 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