Skip to content

Instantly share code, notes, and snippets.

@pshlos46
pshlos46 / README.md
Created February 7, 2024 12:23 — forked from jonblack/README.md
Garmin HRV/sleep Plot

Garmin Connect only supports showing a maximum 4-week plot of HRV data. This script scrapes HRV and sleep data and plots it on a single graph, making it much easier to see the trend over time.

In order for the script to work, you need to provide the correct values for the Authorization and Cookie headers. To get these:

  • Log in to Garmin Connect and navigate to the HRV status report
  • Open the browser developer tools and select the network tab
  • In the HRV status report, click to a previous period. This will cause a network request to update the report
  • In the developer tools, click on the network request and look for the request header.

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@pshlos46
pshlos46 / curl.md
Created September 12, 2019 11:22 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@pshlos46
pshlos46 / linux_hplt4132.md
Last active November 4, 2023 09:30
HP lt4132 4G modem linux support (EliteBook G5)

[How-To] HP lt4132 - 4G LTE modem - Linux support

This guide has been tested in Xubuntu 18.04.01 but it will probably apply in most linux distro's. Contents are heavily based on work by @toreanderson here.

So HP Elitebook G5 has as an LTE modem the HP lt4132 which is actually re-brand of Huawei ME906s-158.

If you see the output from usb-devices you'll see that the issue lies that the modem is in configuration 2 (Cfg#= 2). The Linux kernel selects configuration 2 by default, but that does not work with ModemManager. Configuration 3 ( MBIM mode) is a much better choice.

Changing to configuration 3 is easy enough. Note that it is essential to first deconfigure the device by selecting configuration

@pshlos46
pshlos46 / webex-ubuntu.md
Last active October 15, 2018 14:04 — forked from mshkrebtan/webex-ubuntu.md
Run Cisco Webex on 64-bit Ubuntu 16.04

[WIP]Run Cisco Webex on 64-bit Ubuntu 16.04

With Audio and Screen Sharing Enabled

This guide is based on the below resources:

Short Description - Goal