This file contains hidden or 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
Here's an actually correct way to set your Z offset: | |
Home the toolhead so the inductive probe will be just above the | |
plate. (You want the next step to heat it up so your measurements | |
will include its thermal expansion.), | |
Heat the bed to the middle of the bed temperature range for the | |
filament you want to print with. 60C is a good start for PLA if | |
your filament manufacturer doesn't specify., |
This file contains hidden or 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
# ============================================================================ | |
# KLIPPER HEAT SOAK MACRO | |
# ============================================================================ | |
# | |
# A comprehensive heat soak macro for Klipper 3D printers that heats the bed | |
# to a target temperature and maintains it for a specified duration to warm | |
# the printer chamber/enclosure for materials like ABS, ASA, PC, etc. | |
# | |
# Features: | |
# - Configurable bed temperature and soak duration |
This file contains hidden or 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
#!/bin/bash | |
# Detect user's default shell from the SHELL environment variable | |
default_shell=$(basename "$SHELL") | |
# Path to the correct shell config file based on user's default shell | |
shell_config="" | |
if [[ "$default_shell" == "zsh" ]]; then | |
shell_config="$HOME/.zshrc" | |
elif [[ "$default_shell" == "bash" ]]; then |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Adapted from https://medium.com/@sean.handley/how-to-set-up-docker-for-mac-with-native-nfs-145151458adc | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
OS=$(uname -s) |
This file contains hidden or 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
@router.get("/jwt/token") | |
async def generate_jwt() -> dict[str, bytes] | Literal[False]: | |
"""Returns JWT Token dev work. | |
Returns: | |
Token string or False. | |
""" | |
private_key = load_pem_private_key( |
This file contains hidden or 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
#!/bin/sh | |
# Generate example env file from current env file. | |
sed 's/=.*/=/' .env > .env.example | |
git add .env.example |
This file contains hidden or 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
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import re | |
filename = 'fsp_competitive_cross_reference.cut_n_paste.inc' | |
# Read in the file | |
with open(filename, 'r') as file: | |
filedata = file.read() |
This file contains hidden or 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
server { | |
server_name example.com; | |
root /var/www/drupal8; ## <-- Your only path reference. | |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location = /robots.txt { |
This file contains hidden or 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
#!/usr/bin/env bash | |
# If the file has already been modified don't try and modify it again | |
if grep -Fq "slack-night-mode" /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js; then | |
/usr/bin/osascript <<EOA | |
tell app "System Events" | |
display notification "Dark Mode enabled previously.\rYou have made your choice to forsake the Light Mode." with title "Slack Dark Mode" | |
end tell | |
EOA | |
exit 0; |
NewerOlder