Skip to content

Instantly share code, notes, and snippets.

[gcode_macro HEATSOAK_TEST]
gcode:
#HEATSOAK_TEST INTERVAL=1 MAX_TIME=60 BED_TARGET_TEMP=65 EXTRUDER_TARGET_TEMP=210
{% set interval = params.INTERVAL|int %}
{% set max_time = params.MAX_TIME|int %}
{% set num_repeats = (max_time // interval)|int %}
{% set bed_target_temp = params.BED_TARGET_TEMP|default(65)|int %}
{% set extruder_target_temp = params.EXTRUDER_TARGET_TEMP|default(210)|int %}
{% if printer.toolhead.homed_axes|lower != "xyz" %}
#!/bin/sh
set -e
# Dall-e mini/mega Easy Install Script by manatails
# Install prerequisites
sudo apt update && sudo apt install -y apt-transport-https ca-certificates curl software-properties-common git
# Install Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@manatails
manatails / hidereplayUI.js
Last active April 11, 2024 16:49
Mahjong Soul Replay UI Toggle
// ==UserScript==
// @name hidereplayUI
// @namespace https://manatails.net/
// @version 0.1
// @description Mahjong Soul Replay UI Toggle
// @author manatails
// @include https://mahjongsoul.game.yo-star.com/*
// @include https://game.mahjongsoul.com/*
// @include https://majsoul.union-game.com/0/*
// @icon https://game.mahjongsoul.com/favicon.ico
@manatails
manatails / ap136.c
Created November 28, 2018 00:11
AP136
static void __init ap136_common_setup(void)
{
u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
ath79_register_m25p80(NULL);
ath79_register_leds_gpio(-1, ARRAY_SIZE(ap136_leds_gpio),
ap136_leds_gpio);
ath79_register_gpio_keys_polled(-1, AP136_KEYS_POLL_INTERVAL,
ARRAY_SIZE(ap136_gpio_keys),