A Pen by Jack Billstrom on CodePen.
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 code notifies Google Tag Manager when a wpForm is submitted | |
| document.addEventListener("DOMContentLoaded", function() { | |
| var elementsArray = document.querySelectorAll('[id^="wpforms-form-"]'); | |
| elementsArray.forEach(function(elem) { | |
| elem.addEventListener("submit", function(e) { | |
| window.dataLayer = window.dataLayer || []; | |
| window.dataLayer.push({ | |
| event: "wpFormSubmit", | |
| wpFormElement: event.target | |
| }); |
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/bash | |
| DATE=$(printf '%(%Y-%m-%d)T\n') | |
| CONTAINER_NAME="mssql" | |
| SA_PASSWORD="PASSWORD" | |
| DB_NAMES=("DB1" "DB1") | |
| HOME_DIR="/home/ubuntu" | |
| backup_database() { | |
| for DB_NAME in "${DB_NAMES[@]}"; do |
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
| using Microsoft.Extensions.DependencyInjection; | |
| using Umbraco.Cms.Core.Composing; | |
| using Umbraco.Cms.Core.DependencyInjection; | |
| using Vendr.Core.Generators; | |
| namespace My.Ecommerce.Web.Compositions; | |
| public class CustomComposer : IComposer | |
| { | |
| public void Compose(IUmbracoBuilder builder) |
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/bash | |
| # Author: Jack Billström (jackbillstrom) | |
| # Description: Backup and restore MS SQL databases running in docker containers with a "GUI" using gum.sh | |
| # Dependencies: gum.sh, docker, dialog | |
| # Usage: ./ms_backup_docker.sh | |
| # Version: 1.1.0 | |
| # Intro | |
| gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "🐋 $(gum style --foreground 212 'ms sql') manager" |
OlderNewer