Skip to content

Instantly share code, notes, and snippets.

View wassupluke's full-sized avatar
🪧
The only thing better than an open API is a well-documented API 🙏🏻

Luke Wass wassupluke

🪧
The only thing better than an open API is a well-documented API 🙏🏻
View GitHub Profile
@wassupluke
wassupluke / compare-translations.py
Created May 25, 2025 05:19
XML String Translation and File Comparison, powered by the googletrans api
"""Compares existing strings.xml file with another xml file.*
The script expects exactly two arguments, existing_file_path, and
new_file_path, respetively.
e.g., `python3 compare-translations.py strings-fr.xml more-strings-fr.xml`
Any strings already found to be translated in the existing file will be
removed from the new file, and the new file will be appended to the
existing file.
@wassupluke
wassupluke / coros_get_activity_list.py
Created September 9, 2024 16:22 — forked from quiver/coros_get_activity_list.py
Python Script to get data from COROS Training Hub
'''
Python PoC to interact with COROS Training Hub.
URL : https://training.coros.com/
This script retrieves COROS's activity list for 2022/12.
$ python3 coros_activity_list.py
date,name,sportType,totalTime,distance,calorie,trainingLoad
20221230,Foo Run,100,9538,14651.11,1266085,117
@wassupluke
wassupluke / help-prompt.sh
Created April 16, 2024 18:22
keyboard shortcut help text
# alacritty --class help-prompt -T help-prompt -e help-prompt.sh
!/bin/bash
echo "Here are your keybinds, my princess:
As a note, keys like Shift, Alt, Ctrl, and the Windows key are considered \"modifiers\".
It is common practice in tiling window managers like you have here to designate a
modifier key (aka a Super key) as the main one for activating keybindings. Let's set
the Windows key as your modifier and refer to it as \"mod\" from here on out.
mod+Enter: Terminal
@wassupluke
wassupluke / openwrt-AGH-custom-regex-filters.txt
Created January 14, 2024 23:13
custom adguardhome regex filters
||badexample.com^$important
||yt3.ggpht.com^$important
||ad-delivery.net^$important
||syndicatedsearch.goog^$important
||subscriptionsfirstparty-pa.clients6.google.com^$important
||taskassist-pa.clients6.google.com^$important
||moltron-pa.clients6.google.com^$important
||realtimesupport.clients6.google.com^$important
||www.googleadservices.com^$important
/rr[0-9].*sn-j.*googlevideo.com/
@wassupluke
wassupluke / .bash_aliases
Last active October 2, 2025 04:16
My .bashrc configuration file
#
# ~/.bash_alises
#
alias c='clear'
alias r='fc -s'
alias rr='fc -s -2'
alias h=history
alias cd..='cd ..'
alias ls='ls --color=always'