Skip to content

Instantly share code, notes, and snippets.

@maruel
maruel / README.md
Last active June 7, 2025 20:55
Steps to connect your spools' remaining filament in the AMS to a Google Sheet

AMS to GSheet

Prerequisites

  • Bambulab printer (A1 mini, A1, P1P, P1S, X1, X1C, X1E).
  • Home Assistant with experience how to use it.
  • Google account (i.e. Gmail)

Steps

@matsuu
matsuu / settings.json
Last active April 14, 2025 05:15
PaperColor Theme for Windows Terminal based on https://github.com/marhs/material-terminator
{
"name": "PaperColor Light",
"cursorColor": "#25C3DC",
"foreground": "#3c3c3b",
"background": "#eeeeee",
"black": "#2c2c2c",
"red": "#d7005f",
"green": "#718c00",
"yellow":"#ff8f01",
"blue": "#005f87",
@ggs67
ggs67 / roundedcube.scad
Last active February 8, 2025 18:08 — forked from groovenectar/roundedcube.scad
roundedcube.scad - Fork me and make me better!
// More information on original version: https://danielupshaw.com/openscad-rounded-corners/
//
// Changed by GGS67 to remove some limitations:
//
// 1. Allow radius>length for rounded corners in one axis only (problem reported on original page in 2015)
// 2. Remove limitation where for apply_to=(x|y|z)max or (x|y|z)min the dimension of the corresponding perpendicular
// axis had to be at least 3 times the radius because of fixed cylinder height. Now cylinder height is always computed not
// to interferr with opposite corner
@jdhitsolutions
jdhitsolutions / Show-WeatherSummary.ps1
Created February 18, 2021 14:38
A PowerShell function that displays weather information using the wttr.in REST API.
#requires -version 5.1
<#
this must be run in a Windows Terminal or console session that supports the
emoji icons or use -Force if you know you are.
see https://github.com/chubin/wttr.in for API information
This command writes to the host not the PowerShell pipeline.
#>
# to be executed on the device itself
# note that ~/xochitl-data is a symlink to avoid long path
quickNotesLayersToWiki(){ cd xochitl-data; curl -d "?n=PIMVRdata.ReMarkableQuicknotes&text=$(grep name UUID/*json | sed 's/.*: "\(.*\)"/%0a* \1/' | tr '\n' ' ')&action=edit&post=1&author=reMarkable2Ttest&authpw=edit_pw_to_change" https://fabien.benetou.fr/PIMVRdata/ReMarkableQuicknotes; cd -; }
# note that you must replace UUID and edit_pw by the UUID of your quicknote document (you can use hashFromTitle() for that) and your PmWiki password respectively.
qrCodeLink () { qrencode http://`ip a | grep wlan0$ | sed "s/.* \(.*\)\/.*/\1/"`:3000/data/$1.pdf -o qr_ip.xpm -t XPM && convert qr_ip.xpm qr_ip.pdf && addPdfWithMetadata qr_ip.pdf; }
hashFromTitle () { cd ~/.local/share/remarkable/xochitl/ && grep -l -i $1 *metadata | sed 's/.metadata//'; }
addPdfWithMetadata(){
cp $1 ~/xochitl-data && echo "{'parent':'','type':'DocumentType','visibleName':'$1'}" | sed s/\'/\"/g > ~/xochitl-data/`echo $1 | sed "s/.pdf//"`.met
@kushagharahi
kushagharahi / .Slickdeals URL Cleaner.md
Last active January 22, 2025 18:49
Slickdeals URL Cleaner UserScript

Tired of having to go through referral/affiliate links before you can view a deal on Slickdeals? This script strips the urls on Slickdeals of referrers. If it can't strip the urls, it marks them as "Referral Link?" in hot pink.

Install this UserScript in GreaseMonkey or similar UserScript manager.

before and after script

Note: You must click View Forum Thread (requires login) ![image](https://user-images.githubusercontent.com/3326002/211234558-3e83f0b9-486f-4ab5-ae

@jensens
jensens / pyproject.toml
Created November 29, 2018 10:34
Plone style Black and Isort cfg
[tool.black]
line-length = 79
# skip-string-normalization = true
@nzec
nzec / README.MD
Last active July 23, 2025 17:02
DeezLoader Offical Page

Thanks to /u/zpoo32 for reporting several issues in this list!

Deemix

  • deemix: just the cli and the library
  • deemix-pyweb: the app with a GUI
  • deemix-server: just the server part of deemix-pyweb
@EricDuminil
EricDuminil / trie.py
Last active June 30, 2025 20:38 — forked from atiking/regexp-trie.py
Found original code, author and license
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Original Perl module: Regexp::Trie
# Original Copyright (C) 2006 by Dan Kogai
#
# This Python translation is a derivative work based on Regexp::Trie
# Copyright (c) 2010 by rex
# Copyright (c) 2017 by fcicq, atiking and EricDuminil
#include <Windows.h>
#include "../../API/RainmeterAPI.h"
struct ACCENTPOLICY {
int nAccentState;
int nFlags;
int nColor;
int nAnimationId;
};
struct WINCOMPATTRDATA {