Skip to content

Instantly share code, notes, and snippets.

@theanam
theanam / crux1_start.gcode
Last active January 9, 2026 22:58
Tronxy Crux 1 Start G-Code for cura
; Tronxy Crux1 Start Code
; Forked from the Tronxy XY 2 Pro Start code on cura
; Improvement: Start nozzle and bed heating together
; Imorovement: Fixed purge line (XY2 version was for a bigger bed and would draw out of build area)
; Bugfix: On glass bed Crux 1, the nozzle would bump on the retainer trying to draw the purge line. Fixed in this version.
; Cleanup: Removed all ABL related code since Crux 1 does not have ABL.
G21 ; Set units to millimeters
G90 ; Set all axis to Absolute
M82 ; Set extrusion to Absolute
M107 ; Disable all fans
@awni
awni / open_code_mlx.md
Last active January 9, 2026 22:56
OpenCode with MLX

The following guide will show you how to connect a local model served with MLX to OpenCode for local coding.

1. Install OpenCode

curl -fsSL https://opencode.ai/install | bash

2. Install mlx-lm

@stephenlf
stephenlf / strip-trailing-newlines.js
Last active January 9, 2026 22:56
Simple node script to remove trailing newlines and carriage returns from files. Addresses issues associated with prettier, Salesforce source tracking, and git diff.
#!/usr/bin/env node
/**
* This script removes trailing newlines and carriage returns from files.
*
* Read related issue
* https://github.com/prettier/prettier/issues/6360#issuecomment-3380097220
*
* By default, SFDX installs a prettier pre-commit git hook. Prettier always adds
* newlines to the end of files. Salesforce strips those newlines away. This leads
@Mr-Precise
Mr-Precise / vs_buildtools_dl_list.md
Created February 28, 2024 05:33
MSVC / VS / Buildtools download link collection list
@wong2
wong2 / claude-code-tools.md
Last active January 9, 2026 22:54
Tools and system prompt of Claude Code

Task

Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.

When to use the Agent tool:

  • If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended

When NOT to use the Agent tool:

  • If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
  • If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
  • If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
@QuartzWarrior
QuartzWarrior / Probot daily script.user.js
Last active January 9, 2026 22:54
A script to automatically claim probot daily.
// ==UserScript==
// @name Probot daily script
// @namespace https://quartzwarrior.xyz/
// @version 0.1
// @description A script to automatically claim probot daily.
// @author QuartzWarrior
// @match http*://quartzwarrior.xyz/*
// @match http*://probot.io/daily
// @icon http://probot.io/favicon.ico
// @grant unsafeWindow
@shateq
shateq / dwm-patcher.sh
Last active January 9, 2026 22:56
Suckless DWM patching utility to work with GNU Quilt, contains aliases for Xephyr testing and downloading the patches.
#!/usr/bin/env bash
PATCHFILE="patch.list"
# Sorts files by descending file sizes
sort_by_size() {
ls -S --ignore "series" ./patches > ./patches/series
}
cleanup() {
@Ferrmolina
Ferrmolina / head.jade
Last active January 9, 2026 22:50
Ejemplo de un head html con sintaxis JADE
- var site_name = "Nombre del sitio."
- var titulo = "Titulo del sitio."
- var theme_color = "#color"
- var descripcion = "Descripcion de hasta 155 caracteres."
//- Facebook Vars
- var url_site = "http://www.example.com"
//- Twitter Vars
- var username = "@username"
@AzimsTech
AzimsTech / 99-OpenWrt-Stuffs.md
Last active January 9, 2026 22:45
Installing and Using OpenWrt

![banner][banner-img]

📖 Table of Contents

  • 🛠 Setup & Configuration
    • [🌐 Configure using LuCI][luci-config]
    • [🖥️ Configure using CLI][cli-config]
  • [📜 Configure using uci-defaults script][uci-default]