Win11_taskbar_chg2_Win10_taskbar.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowClassicMode"=dword:00000001
// Thanks to this gist: [Sample HTML/JS to parse a Google Spreadsheet](https://gist.github.com/terrywbrady/a03b25fe42959b304b1e) | |
var htmlEndPoint = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vREXBtuL2uKofq9ufXsIlytbONUR0-q_tf1Ucm14JpeE5KAdry97CCwvivf3e5NkCAnZ1Xg4qYa0RCo/pubhtml'; | |
(function($){ | |
var parseHtmlTableToJson = function($table){ | |
var data = []; | |
var $headers = $("tr:first-child td", $table); | |
var headers = []; |
let botToken='1356037801:AAG8tzLp03DIhпр48jZ-MHC3NNGOF6QFjM4'//токен бота | |
let webAppUrl='https://script.google.com/macros/s/AKfycbxK945bZlFW_8rrtPt0XmkVyN7ra0ELuUZHyOeR9zvOPcDxUGxu/exec'//id таблицы | |
let telegramUrl = "https://api.telegram.org/bot" + botToken; | |
function setWebhook(){ | |
var url = telegramUrl + "/setWebhook?url=" + webAppUrl; | |
var response = UrlFetchApp.fetch(url); | |
Logger.log(response) | |
} | |
function deleteWebhook(){ |
/** | |
* Generic version to send impresions for all popups. | |
* I.e., no harcoded values. | |
*/ | |
jQuery(document).ready(function($){ | |
// Let's send popup impressions to GA4. | |
$("[id^='pum-']").on("pumAfterOpen", function (e) { | |
console.log(`[GA4] Popup impression for popup ${$(e.target).attr("id")}.`); | |
gtag("event", "popup_impression", { | |
popup_id: $(e.target).data("popmake").slug, |
<?php | |
/** | |
* W3C Fix and HTML minifier | |
* Nobody knows how this work, so don't touch it!!! | |
* | |
* https://wordpress.stackexchange.com/a/227896/129134 | |
* https://stackoverflow.com/a/41148695 | |
*/ |
Win11_taskbar_chg2_Win10_taskbar.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowClassicMode"=dword:00000001
/** We'll use WPForms as an example. */ | |
jQuery(document).ready(function($){ | |
// Trick from https://www.chrisains.com/seo/tracking-wpforms-submissions-with-google-analytics/ | |
let $wpConfirmationDiv = $('#wpforms-confirmation-357'); | |
if ($wpConfirmationDiv.length) { | |
console.log('[GA4] WPForms #357 was successfully submitted.'); | |
gtag("event", "generate_lead", { | |
'form_id': 'WPForm #357', // TO DO: Try to get form ID or name here. | |
}); | |
} |
### | |
# Powershell can't SFTP by itself, so it's necessary to install a client on Windows to use it as a bridge. | |
# In my case, I decided to install WinSCP (I think it's a good option): | |
# * https://stackoverflow.com/questions/38732025/upload-file-to-sftp-using-powershell/38735275#38735275 | |
# * https://winscp.net/eng/download.php | |
# Here are some links about how Get-ChildItem works so you can get and filter the files that you need: | |
# * https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-7.1 | |
# * https://www.pdq.com/blog/using-get-childitem-find-files/ | |
### |
(function() { | |
if (typeof gtag === 'undefined') { | |
console.log('[GA4] gtag is undefined.'); | |
return; | |
} | |
const formElts = document.querySelectorAll('form'); | |
let formName = '(not set)'; | |
// If no forms, bail. | |
if (formElts.length === 0) return; | |
[...formElts].map((f) => { |