This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- stylua: ignore | |
local function setup_buffer_keymaps(bufnr) | |
-- Create buffer-local keymaps for 'h', 'j', 'k', 'l' | |
local opts = { noremap = true, silent = true, buffer = bufnr } | |
vim.keymap.set('n', 'h', '<cmd>echo "Pressed h"<CR>', opts) | |
vim.keymap.set('n', 'j', '<cmd>echo "Pressed j"<CR>', opts) | |
vim.keymap.set('n', 'k', '<cmd>echo "Pressed k"<CR>', opts) | |
vim.keymap.set('n', 'l', '<cmd>echo "Pressed l"<CR>', opts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ╭─────────────────────────────────────────────────────────╮ | |
-- │ FUNCTION DATA │ | |
-- ╰─────────────────────────────────────────────────────────╯ | |
local M = {} | |
-- Check if the terminal is kitty | |
function M.is_kitty() | |
local term = os.getenv("TERM") or "" | |
local kit = string.find(term, "kitty") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Template nginx config | |
# https://notes.rootiest.dev | |
# Define the server IP and ports here. | |
upstream notes { | |
# Name the upstream and zone after the service | |
zone notes 64k; | |
# Define the server IP and port | |
server 100.73.247.145:5230; | |
# Or path | |
# server /notes/index.html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------------------------------- # | |
# MINIMUM FAN SPEED OVERRIDE # | |
# -------------------------------------------------------------------------- # | |
# Override the default fan speed to set a minimum floor # | |
# and adjust the values to fit the new range. # | |
# Examples: (with min_fan_speed = 128) # | |
# M106 S255 ; set fan speed to 255 # | |
# M106 S25 ; set fan speed to 159 # | |
# M106 S0 ; set fan speed to 0 # | |
# M106 S50 ; set fan speed to 128 # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gcode_macro CG28] | |
variable_output: 116 ; Output method for status feedback | |
gcode: | |
{% set printcfg = printer['gcode_macro _printcfg'] %} ; get printcfg variables | |
{% if "x" in rawparams|string|lower %} ; if x is in rawparams | |
{% set X = True %} ; set x flag | |
{% endif %} | |
{% if "y" in rawparams|string|lower %} ; if y is in rawparams | |
{% set Y = True %} ; set y flag | |
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gcode_macro CG28] | |
gcode: | |
{% if printer.toolhead.homed_axes != "xyz" %} | |
G28 | |
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start G-Code: | |
# | |
# START_PRINT BED_TEMP_0={first_layer_bed_temperature[0]} BED_TEMP1={first_layer_bed_temperature[1]} EXTRUDER_TEMP_0={first_layer_temperature[0]} EXTRUDER_TEMP_1={first_layer_temperature[1]} INITIAL_EXTRUDER={initial_extruder} INITIAL_EXTRUDER_TEMP={first_layer_temperature[initial_extruder]} INITIAL_BED_TEMP={first_layer_bed_temperature[initial_extruder]} START_X_MIN={first_layer_print_min[0]} START_Y_MIN={first_layer_print_min[1]} START_X_MAX={first_layer_print_max[0]} START_Y_MAX={first_layer_print_max[1]} | |
# | |
# | |
[gcode_macro START_PRINT] | |
gcode: | |
{% set bed_temp_0 = params.BED_TEMP_0|default(60)|float %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set Material-specific Nevermore Speed | |
# | |
# Add this immediately after your start_print line of the start gcode in Prusa/SuperSlicer: | |
# SET_NEVERMORE MATERIAL='{filament_type[initial_extruder]}' | |
# | |
# Add this immediately after your start_print line of the start gcode in Cura: | |
# SET_NEVERMORE MATERIAL='{material_type}' | |
# | |
[gcode_macro SET_NEVERMORE] | |
gcode: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[idle_timeout] | |
timeout: 600 | |
gcode: | |
{% if printer.pause_resume.is_paused %} | |
# Store previous temperature | |
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=prev_temp VALUE={printer.extruder.target} | |
M117 Idle, turning off hotend | |
SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0 | |
{% else %} | |
TURN_OFF_HEATERS |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; LightBurn 1.3.01 | |
; Marlin device profile, absolute coords | |
; Bounds: X119.79 Y123.8 to X180.79 Y176.2 | |
G21 | |
G90 | |
; Image @ 100 mm/sec, 20% power | |
M8 | |
M106 S0 | |
G0 X146.093 Y123.799 F0 |
NewerOlder