Skip to content

Instantly share code, notes, and snippets.

View darinalleman's full-sized avatar

Darin Alleman darinalleman

View GitHub Profile
  1. Open Terminal and install UV: curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Update terminal to find UV: source $HOME/.local/bin/env
  3. Install fit-file-faker: uv tool install fit-file-faker
  4. Run setup: fit-file-faker -s
  5. Run application: fit-file-faker -m (will monitor TPV directory for new files until this terminal is closed)
  6. Optionally, upload all previous files to garmin connect by doing Upload All: fit-file-faker -ua

Source: https://github.com/jat255/Fit-File-Faker

@darinalleman
darinalleman / Code.gs
Last active May 10, 2024 16:58
Zillow Tiller Sheets Importer (With Balance History)
function writeZestimateToSheet() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var sheets = spreadsheet.getSheets();
var zillowSheet = sheets.find(sheet => sheet.getSheetName() == 'Zillow');
var balanceHistory = sheets.find(sheet => sheet.getSheetName() == 'Balance History');
if (zillowSheet && balanceHistory) {
var zillowIds = ['%%%%%%%%%'];
var row = [];
for (i = 0; i < zillowIds.length; i++) {
if (zillowIds[i] != undefined){
@darinalleman
darinalleman / Code.gs
Last active September 9, 2025 21:34
Google Sheets Zillow Import Script
function writeZestimateToSheet() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var sheets = spreadsheet.getSheets();
var zillowSheet = sheets.find(sheet => sheet.getSheetName() == 'Zillow');
if (zillowSheet) {
var html = UrlFetchApp.fetch('https://www.zillow.com/homes/%%%%%%%%%_zpid/').getContentText();
const divRegex = /(<div class="zestimate-value">)(\$)(\d{1,3})(,\d{3})*(<\/div>)/g;
const moneyRegex = /(\$)(\d{1,3})(,\d{3})*/g;
var div = html.match(divRegex);
function isDope(object) {
return object.tagName === 'BUTTON';
}
var arr = Array.from(document.getElementsByClassName('thumbs-up '));
var button = arr.find(isDope);
setInterval(function() {
button.click();
console.log('clicked!');
}, 20000);