Skip to content

Instantly share code, notes, and snippets.

@clee
clee / voron_sensorless.md
Last active February 18, 2025 03:10
how to sensorless XY on Vorons

Setting Up and Calibrating Sensorless XY Homing

When using the TMC2130 / TMC2209 / TMC2660 / TMC5160 drivers, the StallGuard feature makes it possible to set up sensorless homing on the X and Y axes for CoreXY machines. The Klipper project has a page with documentation and recommendations on getting it working.

Following are some more detailed instructions and suggestions to supplement the Klipper documentation specifically for Vorons.

Hardware Setup

@reedacartwright
reedacartwright / nether_roof_readme.md
Last active May 4, 2025 22:18
Instructions for Building on Nether Roof in Minecraft Bedrock Edition

How to Build on the Nether Roof in Minecraft: Bedrock Edition

Bedrock Edition has a hardcoded nether height of 128 blocks. This means that even if you are able to glitch up on to the nether roof you cannot place blocks there. However, if you have access to bedrock_server.exe or Minecraft.Windows.exe you can hexedit these files to the increase the hardcoded nether height.

Video Tutorial

@Anubhav1603
Anubhav1603 / examples.md
Last active April 19, 2025 13:39
Code examples of discord.py rewrite

discord.py code examples

Preface

Introduction

I am making this gist to show some examples of stuff you can do with discord.py, and also because the amount of up-to-date examples online is rather limited.

This will not be a guide for learning how to use the basics of the wrapper, but merely showing some code to get a better understanding of some of the things discord.py can do. I will therefore assume that anybody looking at this will understand the basics of both python and the wrapper in question.

I will also assume that asyncio, discord.ext commands and discord are installed and imported, and that the commands.Bot instance is stored in the variable bot.

@A248
A248 / QuickPerms.sk
Created April 22, 2020 23:49
A simple Skript script to make permissions faster using LuckPerms
Command /user [<text>] [<text>] [<text>]:
Executable by: console
Trigger:
if arg 2 != "add":
if arg 2 != "remove":
send "&6Arim>> &cUsage: /user &e<player> <add|remove> <group>&c."
stop
execute console command "/lp user %arg 1% parent %arg 2% %arg 3%"
Command /group [<text>] [<text>] [<text>] [<text>]:
@llimllib
llimllib / mssql_to_csv.bash
Last active January 8, 2025 02:22
This is a script to convert every table in a Microsoft SQL Server database backup (.bak file) to a .csv file
#!/usr/bin/env bash
# import an MS SQL .bak backup file to an MS SQL database, then export all
# tables to csv. run this script as `import.sh <filename>`. It expects to be
# run in the same directory as the backup file.
# this is only tested on my mac (OS X Catalina). I tried to stick to posix, but
# It will probably require some tweaking for you. I hope it gives a general
# sense of what you need to do at the very least.
@abelcallejo
abelcallejo / README.md
Last active June 10, 2025 11:29
Creating bootable Linux USB using Mac

Creating bootable Linux USB using Mac

mac

CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.

1. Prepare the .iso file

Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file

2. Convert the .iso file into a .img.dmg

@kurtkaiser
kurtkaiser / Code.gs
Created March 17, 2019 20:21
Google Apps Script Email System with Full UI - Allows for multiple people to be alerted on a form submissions. The program has a full user interface, menu and a sidebar that save the options a user selects.
// UI Sheets Email Notifications
// Kurt Kaiser
// kurtkaiser.us
// All Rights Reserved, 2019
// Declare global variables
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
var lastRow = sheet.getLastRow();
var lastColumn = sheet.getLastColumn();
@bradtraversy
bradtraversy / docker_wordpress.md
Last active June 11, 2025 06:27
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@circa10a
circa10a / test.service
Last active March 10, 2022 15:48
A Simple Systemd Service
#/etc/systemd/system/test.service
[Unit]
Description=Test Systemd Service
[Service]
ExecStartPre=/usr/bin/echo -e "\033[0;33m Pre start \033[0m"
ExecStart=/usr/bin/sleep 10
ExecStartPost=/usr/bin/echo -e "\033[0;33m Post start \033[0m"
@geocachecs
geocachecs / chess.cpp
Created October 22, 2015 21:53
2 Player Chess Game C++
#include "chess.h"
Square::Square()
{
piece = EMPTY;
color = NONE;
}
void Square::setSpace(Square* space)