Skip to content

Instantly share code, notes, and snippets.

View gartnera's full-sized avatar

Alex Gartner gartnera

View GitHub Profile
@gartnera
gartnera / fullscreen-api-virtualizer.user.js
Created March 13, 2025 17:56
Virtualize the Fullscreen API to expand elements without using native fullscreen. This is useful when using a window manager that doesn't like it when windows try to go fullscreen.
// ==UserScript==
// @name Fullscreen API Virtualizer
// @namespace https://agartner.com
// @version 1.0
// @description Virtualize the Fullscreen API to expand elements without using native fullscreen
// @author You
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
@gartnera
gartnera / v28-mainnet.md
Created February 24, 2025 17:01
ZetaChain v28 upgrade report
Status Rank Share Name
❌ ❌ 1 7.52% Blockchain.com
🤷 ❌ 2 7.41% Coinbase
🤷 ❌ 3 7.39% Coinbase 2
❌ ❌ 4 6.95% RockX
✅ ❌ 5 6.23% OmniChain1
✅ ❌ 6 5.92% OmniChain2
✅ ❌ 7 5.92% MP1
✅ ❌ 8 5.75% Figment
Status Rank Share Name
❌ ❌ 1 8.73% Blockchain.com
🤷 ❌ 2 8.38% Coinbase
🤷 ❌ 3 8.37% Coinbase 2
🤷 ❌ 4 7.06% OmniChain1
🤷 ❌ 5 6.71% OmniChain2
🤷 ❌ 6 6.70% MP1
❌ ❌ 7 6.28% RockX
🤷 ❌ 8 5.78% bastion
// ==UserScript==
// @name remove annoying automated comment spam from github PRs
// @namespace agartner.com
// @match https://github.com/*/pull/*
// @grant none
// @version 1.0
// @description 12/12/2024, 1:34:32 PM
// ==/UserScript==
const annoyingComments = [

Keybase proof

I hereby claim:

  • I am gartnera on github.
  • I am agartner (https://keybase.io/agartner) on keybase.
  • I have a public key ASCsZgqg1_NaR5qPQSBPFdjRSNOQ4B36NkiGShuPxfO6EAo

To claim this, I am signing this object:

submit upgrade proposal

wait for passed

root@zetacore0:~# zetacored query gov proposals
pagination:
  next_key: null
  total: "0"
proposals:
@gartnera
gartnera / click_notification.scpt
Created April 21, 2024 20:52
applescript to activate/raise the first notifcation on macos sonoma
tell application "System Events"
-- this is a custom keyboard shortcut for command + control + left arrow (Mission Control -> Show Notification Center)
keystroke (ASCII character 28) using {control down, command down}
end tell
tell application "System Events"
set _first_notification to group 1 of UI element 1 of scroll area 1 of group 1 of window "Notification Center" of application process "NotificationCenter"
-- this activates the notification group
click _first_notification
-- this actually follows the notification
@gartnera
gartnera / clpeak
Last active December 17, 2022 06:36
7900XT Linux Benchmarks. AMD Ryzen 7 7700X CPU. 32GB RAM. Ubuntu 22.04 userspace.
root@rocm22:~/clpeak/build# ./clpeak -d 0
Platform: AMD Accelerated Parallel Processing
Device: gfx1100
Driver version : 3513.0 (HSA1.1,LC) (Linux x64)
Compute units : 42
Clock frequency : 3125 MHz
Global memory bandwidth (GBPS)
float : 615.87
// ==UserScript==
// @name Mute preroll ads on twitch
// @namespace http://agartner.com
// @version 0.3
// @author Alex Gartner
// @match https://www.twitch.tv/*
// ==/UserScript==
let interval;
let didMute = false;
/*
Make sure your csv has these headers:
description,dateAcquired,dateSold,salesPrice,cost
Convert csv to json.
Paste the following code into the console.
Run fillAll with the json as an argument.
*/