Skip to content

Instantly share code, notes, and snippets.

View spawnrider's full-sized avatar

Yohann Ciurlik spawnrider

View GitHub Profile
@spawnrider
spawnrider / garmin-connect_courses_gpx_exporter
Last active September 3, 2022 15:52
Export all GPX from Garmin Connect using Chrome Console
jQuery.getJSON(
'https://connect.garmin.com/modern/proxy/web-gateway/course/owner/?_=1662219617626',
function(act_list)
{
var t=0;
console.log(act_list);
act_list.coursesForUser.forEach(
function(course) {
setTimeout(function() {
console.dir(course['courseId']);
@spawnrider
spawnrider / snippet.js
Created May 9, 2023 13:34
List of all libraries / modules loaded in memory and filter on a specific lib name
const libs = Object.keys(require('module')._cache);
const filteredItems = libs.filter(item => {
  return item.includes('aLibName');
});
console.log(filteredItems);
@spawnrider
spawnrider / CNTLM
Created May 30, 2023 14:27
Configure CNTLM on Ubuntu
1) Download cntlm deb package from http://sourceforge.net/projects/cntlm/files/cntlm/
2) Login as root
3) Run command:
$ dpkg -i cntlm*.deb
4a) Obtain password hash for the configuration file in step 4b (do not put plaintext password in configuration)
$ cntlm -H -d <domain> -u <username>
@spawnrider
spawnrider / biome.json
Created November 7, 2024 09:37
Biome configuration file for Web projects
{
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "crlf",
"lineWidth": 120,
"attributePosition": "auto"
},
@spawnrider
spawnrider / tiers-list.d2
Created January 21, 2025 21:42
A simple framework tiers-list using a D2 Declarative Diagram grid layout (https://d2lang.com/tour/grid-diagrams)
classes: {
NONE: {style.opacity: 0}
# EMPTY: {style.fill: "#162a41"; style.stroke: "#162a41"; style.stroke-width: 0; width: 100; height: 100}
EMPTY: {style.fill: "#f6f6f6"; style.stroke: "#162a41"; style.stroke-width: 0; width: 100; height: 100}
ITEM: {style.fill: "white"; style.stroke: "#162a41"; style.stroke-width: 2; width: 100; height: 100}
RED: {style.fill: "#d14d28"; style.stroke-width: 0}
ORANGE: {style.fill: "#ed9301"; style.stroke-width: 0}
YELLOW: {style.fill: "#f5df65"; style.stroke-width: 0}
GREEN: {style.fill: "#2b9464"; style.stroke-width: 0}
@spawnrider
spawnrider / slides.md
Last active April 4, 2025 15:09
Sample Slidev onecraft implementation

You can also start simply with 'default'

theme: onecraft

title: Welcome to Slidev info: |

Slidev Starter Template

Presentation slides for developers.

Learn more at Sli.dev