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
| function __wp_complete | |
| set -l old_ifs $IFS | |
| set -l cur (commandline -ct) | |
| set IFS \n | |
| set -l opts (wp cli completions --line=(commandline) --point=(commandline -C)) | |
| if string match -q --regex "\<file\>\s*" $opts | |
| return (commandline -f) |
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
| jQuery(document).ready(function($) { | |
| $(document).on('submit_success', function(evt) { | |
| dataLayer = window.dataLayer || [] | |
| var elements = evt.target.elements | |
| var serialized = jQuery(elements).serializeArray() | |
| console.log(serialized) | |
| var obj = {} | |
| serialized.forEach((i) => { | |
| var key = i.name; |
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
| sudo do-release-upgrade | |
| curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
| echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
| curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | |
| sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring | |
| curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null | |
| gpg --dry-run --quiet --import --import-options import-show /usr/share/keyrings/nginx-archive-keyring.gpg | |
| echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list | |
| echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" | sudo tee /etc/apt/preferences.d/99nginx | |
| sudo apt update |
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
| <script data-cfasync="false" type="text/javascript" src="https://tracker.gaconnector.com/gaconnector.js"></script> | |
| <script> | |
| function setGaconnectorHiddenFields() { | |
| const gaFields = gaconnector.getCookieValues() | |
| const field_names = Object.keys(gaFields) || [] | |
| const form_name = document.forms["ga_connector"] | |
| const number_of_fields = field_names.length; | |
| //**************************************************************** |
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 file was initially generated by Windows Terminal 0.11.1121.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", |
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
| # bash completion for the `wp` command | |
| _wp_complete() { | |
| local OLD_IFS="$IFS" | |
| local cur=${COMP_WORDS[COMP_CWORD]} | |
| IFS=$'\n'; # want to preserve spaces at the end | |
| local opts="$(wp cli completions --line="$COMP_LINE" --point="$COMP_POINT")" | |
| if [[ "$opts" =~ \<file\>\s* ]] |
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
| jQuery( document ).ready(function( $ ){ | |
| $( document ).on('submit_success', function(){ | |
| gtag("event", "Successful Contact Form Submission", { | |
| event_category: "Form", | |
| event_label: "sendSuccess", | |
| value: 20 | |
| }); | |
| }); | |
| }); |
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
| //Pete's tracker | |
| function petesTracker(action,category,label) { | |
| window.uetq = window.uetq || []; | |
| window.gtag = window.gtag || []; | |
| window.fbq = window.fbq || []; | |
| window._paq = window._paq || []; | |
| if (typeof gtag != "undefined") { | |
| gtag('event', action, {event_category: category, event_label: label}); |
NewerOlder