Skip to content

Instantly share code, notes, and snippets.

@loop
loop / whatsnew
Created July 25, 2017 18:35
whatsnew
#!/bin/sh
# up - script to keep your Mac up-to-date (both OS and Homebrew updates) via the command line
# run thus to to install: cd /usr/local/bin && curl -s -O https://gist.githubusercontent.com/mayel/e681a6175bf17366a16e03006d7feac2/raw/bb4ddb0c4842f5633fa1f29df61c433760c4affe/up && chmod 755 /usr/local/bin/up
# and then run it anytime by simply entering the command: up
# By https://github.com/mayel based on a script by https://github.com/imwally
# homebrew
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (6000)
Loop
@loop
loop / gist:c19d6c18a08844aa087e35a80bb0c3f2
Created April 16, 2026 19:59
add this as a chrome bookmarklet
javascript:const txtElmt = document.createElement('div'); txtElmt.textContent = "Tracker here"; txtElmt.style.position = 'fixed'; txtElmt.style.bottom = '20px'; txtElmt.style.left = '20px'; txtElmt.style.backgroundColor = 'rgba(0, 0, 0, 0.7)'; txtElmt.style.color = 'white'; txtElmt.style.padding = '10px 15px'; txtElmt.style.borderRadius = '5px'; txtElmt.style.fontFamily = 'Arial, sans-serif'; txtElmt.style.zIndex = '1000'; document.body.appendChild(txtElmt); btns=Array.from(document.querySelectorAll("button[title='Add to Card'], button[title='add to list card'], [data-testid='merchantOfferAddButton']")).reverse(); c=()=>{ txtElmt.textContent = btns.length; b = btns.pop(); if (!b) return alert('added all!'); b.scrollIntoView({behavior:'smooth', block:'center'});b.click(); console.log("clicked:"+b.getAttribute("aria-label")); setTimeout(c, 1500 * Math.random() + 800)};c();