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
  • DDEV
  • Docker
  • Drupal 8-9
  • Drupal Modules
  • Drush
  • HTML
  • JavaScript
  • jQuery
  • Lando
  • MacOS
  • Music Tools
  • PHP
  • Raspberry Pi
  • Terminal
  • Unity
  • Website Templates
  • Windows 10/11
  • WordPress
  • WSL2

Author: Leonardo Signorelli

WordPress: Fix the error “Download Failed. Destination directory for file streaming does not exist or is not writable.”

May 6, 2022 Leonardo Signorelli

I recently changed the domain of this website from codesnippets.astralmemories.com to codesnippets.freewebtools.net, and when I wanted to update one of…

Continue Reading →

Posted in: WordPress Filed under: wordpress

Linux: Convert a text file with URLs to a HTML file with clickable links

July 25, 2021 Leonardo Signorelli

We have a file called URLs.txt with URLs: http://www.google.com http://www.reddit.com We want to create an HTML file with clickable URLs:…

Continue Reading →

Posted in: Bash, Terminal, Uncategorized Filed under: Bash, linux, perl, terminal, wget

Scrape a site with wget using a sitemap.xml

Leonardo Signorelli

The following wget command will create a file called urls.txt containing all the URLs found in a site’s sitemap.xml file.…

Continue Reading →

Posted in: Bash, Terminal, Uncategorized Filed under: Bash, linux, terminal, wget

Raspberry Pi: Create a Desktop Shortcut to a Folder

March 5, 2020 Leonardo Signorelli

SSH into your Raspberry Pi or open the Terminal directly in your raspberry pi. Go to the Desktop: Or: Create…

Continue Reading →

Posted in: Raspberry Pi, Terminal Filed under: Raspbian, terminal

Change the colors of your Mac OS Terminal

January 29, 2020 Leonardo Signorelli

Open a new terminal window. Open the Terminal Preferences. Go to the Profiles tab and select the Homebrew profile, then…

Continue Reading →

Posted in: Terminal Filed under: terminal

Changing the height and the source attributes of WordPress images using JavaScript

January 14, 2020 Leonardo Signorelli

I wanted to change the resolution of the generated thumbnails images located in my posts section page of my personal…

Continue Reading →

Posted in: JavaScript, WordPress Filed under: javascript, wordpress

BASH: Open a new terminal window and run a command

October 22, 2019 Leonardo Signorelli

Open a terminal shell and run: nano main.sh Copy the following code and save the script: #!/bin/bash echo “Going to…

Continue Reading →

Posted in: Bash Filed under: Bash

Custom Drush Commands

October 11, 2019 Leonardo Signorelli

Goal: Increase the image storage size for the “Single Page – Page Header Row” from 256kb to 512kb. Admin URL:…

Continue Reading →

Posted in: Drupal 8-9, Drush Filed under: drupal 8, drush

Add the Edge-to-edge option to the Single Page – Custom Row

June 24, 2019 Leonardo Signorelli

After login as an administrator to the required site, go to the following URL address: cms.staging.uccs.edu/nameofthesite/admin/structure/paragraphs_type/single_page_custom/fields uccs.edu/nameofthesite/admin/structure/paragraphs_type/single_page_custom/fields Then make sure…

Continue Reading →

Posted in: Drupal 8-9 Filed under: Drupal8

Read values from an external XML using PHP json_encode and JavaScript

June 11, 2019 Leonardo Signorelli

Example of how to read values from an external XML using PHP json_encode and JavaScript. Read in the values from…

Continue Reading →

Posted in: Drupal 8-9, HTML, JavaScript, PHP Filed under: Drupal8, html, javascript, PHP

Post navigation

Page 5 of 7
← Previous 1 … 4 5 6 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
  • DDEV
  • Docker
  • Drupal 8-9
  • Drupal Modules
  • Drush
  • HTML
  • JavaScript
  • jQuery
  • Lando
  • MacOS
  • Music Tools
  • PHP
  • Raspberry Pi
  • Terminal
  • Unity
  • Website Templates
  • Windows 10/11
  • WordPress
  • WSL2
Copyright © 2026 Code Snippets — Escapade WordPress theme by GoDaddy