Skip to content

Instantly share code, notes, and snippets.

@1337-server
1337-server / My-fitness-pal-homepage-dark-mode.js
Created November 2, 2025 06:32
Dark mode userscript for MyFitnessPal that adds gradient card styling and consistent layout to all dashboard and goal sections without breaking grids.
// ==UserScript==
// @name MyFitnessPal Dark Mode + Full Card Styling
// @namespace https://github.com/1337-server
// @version 1.5
// @description Dark mode with gradient dashboard and extended card styling for all sections on MyFitnessPal
// @author 1337-server
// @match https://www.myfitnesspal.com/
// @icon https://www.myfitnesspal.com/favicon.ico
// @grant GM_addStyle
// ==/UserScript==
@1337-server
1337-server / MyFitnessPal-Diary-Widget.js
Created November 2, 2025 04:08
MyFitnessPal Diary Smart Widget (v3.0.0) - Fancy, compact diary with animated macro bars per meal, anomaly highlighting, badges, and dark mode. Injected after the dashboard. Uses __NEXT_DATA__ diary array + exercise energy value.
// ==UserScript==
// @name MyFitnessPal Diary Smart Widget (v3.0.0)
// @namespace mfp-dashboard
// @version 3.0.0
// @description Fancy, compact diary with animated macro bars per meal, anomaly highlighting, badges, and dark mode. Injected after the dashboard. Uses __NEXT_DATA__ diary array + exercise energy value.
// @author 1337-server
// @match https://www.myfitnesspal.com/*
// @run-at document-end
// @grant none
// ==/UserScript==
@1337-server
1337-server / My-fitness-pal-premuim-unlocker.js
Last active November 2, 2025 03:34
My fitness pal "premuim" unlocker - unlock macros/Low Carb/Heart Healthy sections
// ==UserScript==
// @name MyFitnessPal Dashboard Deblur + Blue Unlocked Badge + Box Fix
// @namespace mfp-dashboard
// @version 1.9.0
// @description Removes blur, removes "Go Premium" links, adds blue "Unlocked" badges, and dynamically fixes box layout inside macro widgets (min-height & display fix). Keeps MFP layout intact.
// @author 1337-server
// @match https://www.myfitnesspal.com/
// @match https://www.myfitnesspal.com/?*
// @run-at document-idle
// @grant none
@1337-server
1337-server / Export-MFP-data.js
Last active November 4, 2025 04:16
Exports your full MyFitnessPal diary via the official API — monthly JSONs with automatic daily breakdown, all packed into a single ZIP.
// ==UserScript==
// @name MyFitnessPal Full Export → ZIP (API Monthly + Weight)
// @namespace http://github.com/1337-server
// @version 2.7
// @description Fetch monthly diary via API, store month JSONs, extract per-day JSONs (gap-filled), and fetch 1-year weight report (normalized dates) into weight.json
// @author 1337-server
// @license MIT
// @match https://www.myfitnesspal.com/*
// @grant GM_addStyle
// @downloadURL https://update.greasyfork.org/scripts/554485/MyFitnessPal%20Full%20Export%20%E2%86%92%20ZIP%20%28API%20Monthly%20%2B%20Weight%29.user.js
@1337-server
1337-server / install_amdgpu__vce_mesa_opencl.sh
Created February 17, 2023 08:32 — forked from nebadon2025/install_amdgpu__vce_mesa_opencl.sh
Install amdgpu-pro packages on Debian (openCL, mesa, VCE) only.
#!/bin/bash
# -------------------------------------------------------------------------------------------------------------------------#
# 1st: Download the amdgpu-drivers from here: https://www.amd.com/de/support/kb/release-notes/rn-amdgpu-unified-navi-linux #
# -------------------------------------------------------------------------------------------------------------------------#
#=============================#
### CONFIG ###
# ADJUST VERSIONS ACCORDINGLY!
PACKAGE="amdgpu-pro"
@1337-server
1337-server / gist:20707bf937c03552408f2df7b3315a40
Last active May 21, 2021 02:30
lirc codes for 5050 letion remote
# Unbranded Chinese RGB LED Remote (NEC protocol) LIRC configuration file
# source is one of these
# https://gist.github.com/bgulla/ec28e7f9f8653bc6b8dd53dc003a9b07
# http://woodsgood.ca/projects/2015/02/13/rgb-led-strip-controllers-ir-codes/
begin remote
name RGBLED
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
@1337-server
1337-server / gist:979d4cc76866af22876c66727d2a0ab4
Last active May 15, 2021 14:04 — forked from bgulla/gist:ec28e7f9f8653bc6b8dd53dc003a9b07
LIRC config file for RGB LED light strips.
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Tue Nov 29 03:27:29 2016
#
# contributed by bgulla
# Product url: https://www.amazon.co.uk/gp/product/B07YLXR9T6
# brand: Letion
# model no. of remote control: 5050 LED