Skip to content

Instantly share code, notes, and snippets.

View eropple's full-sized avatar

Ed Ropple eropple

View GitHub Profile
$ BAMBUSTUDIO_PATH=~/Downloads/Bambu_Studio_linux_fedora_v01.08.00.57-20231109141031.AppImage ./run.bash
[2023-11-17 00:32:05.096348] [0x00007fade5a9cd80] [trace] Initializing StaticPrintConfigs
[2023-11-17 00:32:05.210013] [0x00007fade5a9cd80] [warning] cli mode, Current BambuStudio Version 01.08.00.57
[2023-11-17 00:32:05.210030] [0x00007fade5a9cd80] [info] Will start to read model file now, file count :12
[2023-11-17 00:32:05.210040] [0x00007fade5a9cd80] [info] allow_multicolor_oneplate 1, allow_rotations 1 skip_modified_gcodes 0 avoid_extrusion_cali_region 0 loaded_filament_ids size 0, clone_objects size 0
[2023-11-17 00:32:05.210047] [0x00007fade5a9cd80] [info] plate_to_slice=0, normative_check=1, use_first_fila_as_default=0
[2023-11-17 00:32:05.210055] [0x00007fade5a9cd80] [info] read model file:3DBenchy.stl
[2023-11-17 00:32:05.230063] [0x00007fade5a9cd80] [debug] TriangleMesh::repair() started
@eropple
eropple / filament_switch.gcode
Created November 13, 2023 03:29
bambu gcode preamble/post
M620 S[next_extruder]A
M204 S9000
{if toolchange_count > 1 && (z_hop_types[current_extruder] == 0 || z_hop_types[current_extruder] == 3)}
G17
G2 Z{z_after_toolchange + 0.4} I0.86 J0.86 P1 F10000 ; spiral lift a little from second lift
{endif}
G1 Z{max_layer_z + 3.0} F1200
G1 X70 F21000
G1 Y245
@eropple
eropple / pis_bed.cfg
Last active February 11, 2023 18:28
sv06-klipper-20230116
[mcu PIS_BED]
# Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0
[adxl345]
cs_pin: PIS_BED:gpio13
#spi_bus: spi1a
spi_software_sclk_pin: PIS_BED:gpio10
spi_software_mosi_pin: PIS_BED:gpio11
@eropple
eropple / cr10smart-2405V1.2-STM32F103.cfg
Last active January 14, 2023 03:53
cr-10 smart/cr-6/ender6/ender7 klipper configs (via Sonic Pad
# !CR-10 Smart
# printer_size: 300x300x400
# version: 3.2
# This file contains pin mappings for the Creality CR-10 Smart
# with a CRC-2405V1.2 board.
# To use this config, during "make menuconfig" select the STM32F103
# with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
# MAKE SURE TO SET PA0 on startup (in the firmware).
@eropple
eropple / render-completions.fish
Created December 12, 2022 20:17
Buggy Render completions
#!/usr/bin/env fish
# fish completion support for render
function __fish_render_using_command
set -l cmds __render __render_version __render_commands __render_config __render_config_schema __render_config_init __render_regions __render_repo __render_repo_from_template __render_blueprint __render_blueprint_launch __render_buildpack __render_buildpack_init __render_buildpack_remove __render_buildpack_add __render_services __render_services_show __render_services_list __render_services_tail __render_services_ssh __render_deploys __render_deploys_list __render_jobs __render_jobs_list __render_custom_domains __render_custom_domains_list __render_completions __render_completions_bash __render_completions_fish __render_completions_zsh
set -l words (commandline -opc)
set -l cmd "_"
for word in $words
switch $word
case '-*'
@eropple
eropple / Brewfile
Created July 30, 2022 18:22
starting-brewfile
tap "homebrew/cask"
brew "asdf"
brew "imagemagick"
brew "coreutils"
brew "findutils"
brew "gnu-sed"
brew "gnu-tar"
brew "ykman"
brew "gnupg"
@eropple
eropple / gpg-agent.zsh
Last active July 29, 2022 15:48 — forked from loa/README.md
Dual GPG Yubikey Setup
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
GPG_AGENT_SOCKET="$HOME/.gnupg/S.gpg-agent.ssh"
if [ ! -S $GPG_AGENT_SOCKET ]; then
gpg-agent --use-standard-socket --daemon >/dev/null 2>&1
export GPG_TTY=$(tty)
@eropple
eropple / EdgeDBAdapter.ts
Last active July 29, 2022 19:13
next-auth: EdgeDBAdapter (early take)
import { Account, DefaultAccount, DefaultUser } from 'next-auth';
import { Adapter, AdapterSession, AdapterUser, VerificationToken } from 'next-auth/adapters';
import { ProviderType } from 'next-auth/providers';
import { Client as EdgeDBClient } from 'edgedb';
import { edgeQuery, edgeTypes as t } from '../edgedb';
export class EdgeDBAdapterError extends Error {}
const USER_SHAPE = {
#! /usr/bin/env node
const http = require("http");
if (process.argv[0] === "node") {
process.argv.shift();
}
const localPort = process.argv[2] || "13000";
const url = "http://127.0.0.1:4040/api/tunnels";
---
openapi: 3.0.1
info:
title: Full Descriptor
version: 1.0.0
paths:
"/path-simple/{a}/{b}/{c}":
get:
operationId: getPath
summary: A path parameter test