Skip to content

Instantly share code, notes, and snippets.

View jofftiquez's full-sized avatar
🔥
Building https://mycure.md

Joff Tiquez jofftiquez

🔥
Building https://mycure.md
View GitHub Profile
<#
MyCureX login network check: run on a clinic PC, from the clinic network.
powershell -ExecutionPolicy Bypass -File .\login-network-check.ps1
Tests the exact path the browser uses to sign in:
1. DNS for the app and API hostnames
2. Latency/stability: 20x GET of the app and the API /health
3. CORS preflight for /auth/sign-in/email (what broke in past gateway misconfigs)
4. One real sign-in round trip with a non-existent test account
       ..   ..                                   [0
    ..'..                                .....  [38;2;96;96
# Amazon Q pre block. Keep at the top of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh"
# Ascii Art on startup
if (( COLUMNS > 100 )); then
cat ~/.startup_art_large.txt
else
cat ~/.startup_art_small.txt
fi
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
@jofftiquez
jofftiquez / strava-kudos-script.js
Last active May 16, 2026 23:01
Automatic kudos script for Strava web
// Strava Kudos Clicker Automation Script
// Purpose: Automatically clicks "Give Kudos" buttons on your Strava feed
// Features:
// - Handles dynamic loading of buttons.
// - Smoothly scrolls to each button before clicking.
// - Timeouts between clicks and retries to avoid overloading the page.
// - Maximum retry limit to prevent infinite loops.
// How to Use in Browser's Developer Console:
// 0. Head over to https://www.strava.com/dashboard (Make sure you're logged in)
@jofftiquez
jofftiquez / normal-header.html
Created January 19, 2023 06:12
Sample of printing without repeating stick header, and no repeating footer.
<table>
<!-- Header section -->
<thead>
<tr>
<td>
<div style="height: 100px; background: rgb(76, 164, 246);">
<h1>Header</h1>
</div>
</td>
</tr>
@jofftiquez
jofftiquez / repeating-sticky-header.html
Created January 19, 2023 06:11
Sample of printing with repeating stick header, and repeating footer.
<table>
<!-- Header section -->
<thead style="display: table-header-group;">
<tr>
<td>
<div style="height: 100px; background: rgb(76, 164, 246);">
<h1>Header</h1>
</div>
</td>
</tr>
@jofftiquez
jofftiquez / Printing.md
Last active December 19, 2025 16:51
Printing skeleton for printing documents with repeating header and footer

Printing Guide

Printing documents in HTML can be tricky at times specially when the content is large and if it requires a repeating headers and footers.

Print Skeleton

<table>
  <!-- Header section -->
 
@jofftiquez
jofftiquez / social-buttons.html
Created January 9, 2023 09:23
Social Media Buttons
<div>
<style>
.social-btn-content {
background: #0099cc;
width: 40px;
height: 40px;
text-decoration: none;
border-radius: 100%;
}
</style>