Skip to content

Instantly share code, notes, and snippets.

View Sebazzz's full-sized avatar
🏃‍♂️
Busy busy busy...

Sebastiaan Dammann Sebazzz

🏃‍♂️
Busy busy busy...
View GitHub Profile
@Sebazzz
Sebazzz / smb.conf
Created December 29, 2023 15:03
Klipper - Samba configuration to allow editing the Klipper configuration right from your favourite text editor - https://damsteen.nl
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
#======================= Global Settings =======================
@Sebazzz
Sebazzz / Bambu-X1C-end-gcode.gcode
Created July 16, 2022 10:11
Start and end gcode for Bambu Labs X1C
; WIPE_END
G1 E-.012 F1800
M106 S0
M106 P2 S0
M981 S0 P20000 ; close spaghetti detector
; FEATURE: Custom
; filament end gcode
;M106 P3 S0
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
@Sebazzz
Sebazzz / end-gcode.gcode
Created May 27, 2021 06:06
PrusaSlicer CR-6 / CR-10 Smart end gcode
M104 S0 ; turn off temperature
M140 S0 ; turn off heatbed
M107 ; turn off fan
{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+10, max_print_height)} F600{endif} ; Move print head up
G1 X0 Y200 F3000 ; present print
M84 X Y E ; disable motors
M117 All Done
M300 S500
G1 X0 Y230 ;Present print
@Sebazzz
Sebazzz / Index.razor
Created April 8, 2021 10:25
RadioOptionGroup is always re-rendering children
@page "/"
@using Microsoft.AspNetCore.Components.Forms;
<h1>Hello, world!</h1>
<EditForm Model=@Options>
Radio buttons:
<InputRadioGroup @bind-Value="@RadioGroupVal">
@Sebazzz
Sebazzz / ACrealityCR6Issue.md
Last active November 21, 2024 12:00
Creality CR-6 issue list (including listing of motherboard issues)

Creality CR-6 issue list

This is an initiative to create an overview of the issues found with the Creality CR-6 SE.

As of this writing (2020-09-19) the large number of the motherboard issues have not been publicly acknowledged. Hopefully this overview forces Creality to acknowledge the issues with the Creality CR-6 SE leveling free 3d printer.

Update 2021-07-17 from Creality

According to Creality all issues should be resolved in the newer models:

Here are the improvements we did as below:

@Sebazzz
Sebazzz / Creality-CR-6-Unboxing-guide.md
Last active August 16, 2024 14:31
Creality CR-6 Unboxing & assembly guide

CR-6 post-unboxing checklist

With most of the CR-6 SE issues being due to bad wiring or loose/too tight screws I feel like it is time for a good post-unboxing checklist, to be walked through pre-assembly. Even though I do not have my unit shipped yet, I've seen enough issues and fixes that I can compile this post.

I initially posted this on the independent CR-6 community Facebook group but since not everyone wants to use Facebook (which I totally understand), I will repost it here. I mirrored most of the relevant content of Facebook to imgur.

If you have any feedback or anything that needs to be added, please let me know and I will amend this post!

Note: There are some known issues with this printer - please read the entire guide. (It is long, I know, but this is a necessary evil!)

Communities

@Sebazzz
Sebazzz / web.config
Created March 9, 2020 17:14
Gitea reverse proxy
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Force HTTPS" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="^OFF$" />
@Sebazzz
Sebazzz / README.md
Created April 14, 2019 07:54
ASP.NET Core 2.2.0 - Build locally and use locally build debug binaries in .NET Core

It is a bit complicated to build the binaries and use the locally because the shared framework makes it all very compiled.

Anyway, here goes:

  1. Check out the AspNetCore repository recursively (so that the sub modules are checked out as well).

  2. Apply the diff from this gist.

  3. Run the build: .\build.cmd /t:BuildSharedFx /p:SkipTests=true /p:DisableCodeSigning=true /p:DisableSignCheck=true

It appears an ArgumentOutOfRangeException happens. Stack trace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.FileChangeTracker.<StartFileChangeListeningAsync>b__17_0()
at System.Lazy`1.CreateValue()
at System.Lazy`1.get_Value()
at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.DocumentProvider.StandardTextDocument.GetInitialState()
at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.AbstractProject.<>c.<CreateProjectInfoForCurrentState>b__113_0(IVisualStudioHostDocument d)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
@Sebazzz
Sebazzz / browser-console.js
Created April 8, 2018 08:27
Sunday morning script: Bulk add all your followers to a list
ddtoggles = $('.ProfileCard-actions .dropdown > .dropdown-toggle').get()
function *bulkListAdd() {
let item = null;
while ((item = ddtoggles.pop())) {
let fullname = $(item).parents('.ProfileCard').find('.fullname').text();
console.log(fullname);
yield 1;