Skip to content

Instantly share code, notes, and snippets.

View leohackin's full-sized avatar
🏠
Working from home

Léo Hackin leohackin

🏠
Working from home
View GitHub Profile
@leohackin
leohackin / gist:621757b8b2928094e114eab48aeea86b
Last active June 3, 2025 02:34
Shopify Customer Event to get Checkout Errors and send to GA4 using gtag
const script = document.createElement('script');
script.setAttribute('src', 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX');
script.setAttribute('async', '');
document.head.appendChild(script);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXX');
@leohackin
leohackin / end.pomo
Created April 5, 2011 17:27
AppleScript para fechar apps de redes sociais e colocar o Adium como AWAY
-- Created by Léo Hackin (leohackin at gmail.com), April 2011
--
-- # This file is free software. You are free to use this file in any way you like
-- # However, if you change it you should note in this file that you did and who
-- # you are, you also need to change the version string if you do. That way
-- # I will not get support questions for software that is not entirely mine.
--
-- end.pomo v.0.1a for Pomodoro 0.31 ou maior
--
-- AppleScript para fechar apps de redes sociais e colocar o Adium como AWAY
@leohackin
leohackin / start.pomo
Created April 5, 2011 17:25
AppleScript para abrir apps de redes sociais e colocar o Adium como AVAILABLE
-- Created by Léo Hackin (leohackin at gmail.com), April 2011
--
-- # This file is free software. You are free to use this file in any way you like
-- # However, if you change it you should note in this file that you did and who
-- # you are, you also need to change the version string if you do. That way
-- # I will not get support questions for software that is not entirely mine.
--
-- start.pomo v.0.1a for Pomodoro 0.31 ou maior
--
-- AppleScript para abrir apps de redes sociais e colocar o Adium como AVAILABLE
@leohackin
leohackin / rastrear_encomenda_correios_for_mac
Last active September 24, 2015 21:27
Script para rastreamento contínuo de encomenda nos Correios via linha de comando for Mac.
#!/bin/bash
# Created by Léo Hackin (leohackin at gmail.com), Jan 2011
# This file is free software. You are free to use this file in any way you like
# However, if you change it you should note in this file that you did and who
# you are, you also need to change the version string if you do. That way
# I will not get support questions for software that is not entirely mine.
# rastreia_encomenda_correios v.0.1a for mac