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
| #!/usr/bin/env bash | |
| ## Description: Sync database and/or files between two remote environments | |
| ## Usage: sync:remote | |
| ## Example: "ddev sync:remote production staging db files" | |
| source "$(dirname "$0")/.helpers.sh" | |
| ddev_setup_error_handling | |
| BUCKET_PREFIX="mysite-assets" |
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
| #!/usr/bin/env bash | |
| # | |
| # Shared helper library for DDEV custom commands. | |
| # DDEV skips dot-prefixed files during command discovery. | |
| # | |
| # Usage: source "$(dirname "$0")/.helpers.sh" | |
| # | |
| # ─── Colors ─────────────────────────────────────────────────────────────────── | |
| # Using $'\e[' syntax — works on bash 3.2+ (macOS) and Linux |
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
| #!/usr/bin/env bash | |
| ## Description: Sync remote database and/or files with local environment | |
| ## Usage: sync | |
| ## Example: "ddev sync production db -files" | |
| source "$(dirname "$0")/.helpers.sh" | |
| ddev_setup_error_handling | |
| BUCKET_PREFIX="mysite-assets" # change this to whatever |
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
| <!DOCTYPE html> | |
| <html class="fonts-loaded" lang="en" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="robots" content="noindex,nofollow"> | |
| <!-- Load latest CSS from USChamber.com using manifest as guide --> | |
| <script> | |
| fetch('https://www.uschamber.com/dist/mix-manifest.json') |
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
| const days = document.querySelectorAll('.bigmarker-cg-myagenda-section-part'); | |
| let index = 0; | |
| for (let day of days) { | |
| index++; | |
| let sessions = day.querySelectorAll('.session-li'); | |
| let sessionDate = day.querySelector('.bigmarker-cg-myagenda-section-date').textContent; | |
| if (sessionDate.includes('Wednesday')) { | |
| sessionDate = '2024-06-26'; | |
| } |
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
| # This command is for AWS S3 asset-storage strategies. If you are using local files please use the `sync_remote_local` job. | |
| #!/bin/sh | |
| ## Custom `sync` command to sync two remote dbs and files | |
| ## Usage: fin sync_remote <source_environment> <destination_environment> <"db"> <"files"|"assets"> | |
| BLUE=\\x1B[34m | |
| YELLOW=\\x1B[33m | |
| GREEN=\\x1B[32m |
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
| # This command is for local-asset-storage strategies. If you are using AWS please use the `sync_remote_aws` job. | |
| #!/bin/sh | |
| ## Custom `sync` command to sync two remote dbs & files | |
| ## Usage: fin sync_remote <source_environment> <destination_environment> | |
| BLUE=\\x1B[34m | |
| YELLOW=\\x1B[33m | |
| GREEN=\\x1B[32m |
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
| #!/bin/sh | |
| BLUE=\\x1B[34m | |
| YELLOW=\\x1B[33m | |
| GREEN=\\x1B[32m | |
| RED=\\x1B[31m | |
| RESET=\\x1b[0m | |
| REMOTE_ENV=$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
| #!/bin/sh | |
| # This command is useful for when you are storing assets in S3. If storing locally, please use the `sync_local.sh` job. | |
| ## Custom `sync` command to sync your local db with a remote env. | |
| ## NOTE THAT THIS WILL REPLACE YOUR EXISTING DATABASE | |
| ## Usage: fin sync <environment> <"db"> <"files"|"assets"> | |
| BLUE=\\x1B[34m | |
| YELLOW=\\x1B[33m |
NewerOlder