This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Update ubuntu | |
| # | |
| # Note: Use at your own risk. Always make a full backup before you start. | |
| # | |
| apt-get update | |
| apt-get upgrade | |
| #----------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Reset a user's password | |
| # | |
| # Get phpMyAdmin access and run the following command. | |
| # Replace 'pass' with your password | |
| # Replace 'user' with the username of the account | |
| # | |
| update txp_users set pass=password(lower('pass')) where name='user'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # SCSS Comments: | |
| // This comment won't be included in the CSS. | |
| /* But this comment will, except in compressed mode. */ | |
| /* It can also contain interpolation: | |
| * 1 + 1 = #{1 + 1} */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Error: "Loading chunk node_modules_next_dist_client_dev_noop_js failed" | |
| # Solution: delete the .next folder at the root of your project | |
| # | |
| #----------------------------------------------------- | |
| # Building a sitemap.xml and robots.txt | |
| - Create a new component under pages/sitemap.xml.tsx and pages/robots.txt.tsx | |
| - Setup a script: https://mmazzarolo.com/blog/2021-04-27-nextjs-robots-txt/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Create Strapi project | |
| # | |
| # As a repo setup: /backend + /frontend - separate folders | |
| # | |
| # Install Strapi | |
| npx create-strapi-app backend --quickstart | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Lets Encrypt with Cloudflare | |
| # | |
| # To import Lets Encrypt certificates to Cloudflare. | |
| # See: https://community.letsencrypt.org/t/integrating-letsencrypt-with-cloudflare-on-manually-possible/77046/2 | |
| # | |
| #----------------------------------------------------- | |
| # cPanel AutoSSL + CloudFlare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Easily start a PHP project | |
| # Install PHP CLI using HomeBrew | |
| brew install php | |
| # Start server from current directory | |
| php -S localhost:8000 | |
| #----------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Setup Node on fish: | |
| See: https://github.com/jorgebucaran/nvm.fish | |
| #----------------------------------------------------- | |
| # Setup Node on fish: | |
| # | |
| # Make sure you are not running npm as sudo | |
| # Fix permissions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Updating Drupal Core | |
| # | |
| # Note: Use at your own risk. Always make a full backup before you start. | |
| # | |
| - put the site in maintenance mode | |
| rm includes/ -rf | |
| rm misc/ -rf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #----------------------------------------------------- | |
| # Abort an AJAX request: | |
| var xhr = false; | |
| function fetchEvents() { | |
| // Abort any existing AJAX request | |
| if (xhr) xhr.abort(); |