Skip to content

Instantly share code, notes, and snippets.

@SippieCup
SippieCup / palettes.scss
Last active March 20, 2024 20:38
Defining multipl palettes, themed & success/warn/danger
@use '@angular/material' as mat;
$md-palette: (
50 : #e3e6ea,
100 : #b9c0cb,
200 : #8a96a9,
300 : #5b6b86,
400 : #374c6c,
500 : #142c52,
@SippieCup
SippieCup / fakelag.cpp
Last active March 19, 2024 14:29
Fake Lag
// This is not the complete code, but this is all you need to do within a createmove hook to implement your realization.
void CreateMoveHook(Create, Move, Arguements, Here)
{
static int ticksToChoke = 12;
static int chokedTicks = 0;
if(SanityCheck() && chokedTicks < ticksToChoke)
{
// Start 'Lagging'
@SippieCup
SippieCup / printer.cfg
Last active November 10, 2023 22:58
E5P + Mercury One.1 CoreXY + Sensorless Homing + SKR2 + TFT35 + StealthBurner + Voron Tap + CAN Bus Toolhead + Voron Revo
# This file contains common pin mappings for the BigTreeTech SKR 2.
# To use this config, the firmware should be compiled for the
# STM32F407 with a "32KiB bootloader".
# In newer versions of this board shipped in late 2021 the STM32F429
# is used, if this is the case compile for this with a "32KiB bootloader"
# You will need to check the chip on your board to identify which you have.
#
# The "make flash" command does not work on the SKR 2. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
INT. BATMAN'S PALACE - DAY
Batman is sitting in his throne room, looking out the window. Suddenly, he hears a noise and looks over to see a small, black object flying towards him. He realizes it's a bat and tries to shoo it away, but it keeps coming towards him.
Suddenly, the bat changes course and starts flying around the room in a weird pattern. Batman gets up and tries to follow it, but it's too fast. Suddenly, it stops and hangs upside down from the chandelier.
Batman: What the hell do you want?
The bat just hangs there, eerily silent.
@SippieCup
SippieCup / story 1
Last active September 13, 2022 15:39
AI Powered batman
The scene is set at the batcave. Batman is preparing to go out on patrol.
Alfred: Master Bruce, are you sure you don't want me to go with you?
Batman: No, Alfred. I have to do this alone.
Alfred: But sir, with all the recent attacks on you, I don't think it's wise for you to go out alone.
# Maintainer: Salamandar <felix@piedallu.me>
pkgname=prusa-slicer-git
pkgver=2.6.0.alpha0.r149.g60cd7d456
pkgrel=1
pkgdesc='G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)'
arch=('i686' 'x86_64' 'armv6' 'armv6h' 'armv7h')
url='https://github.com/prusa3d/PrusaSlicer'
license=('AGPL3')
makedepends=(
@SippieCup
SippieCup / PKGBUILD
Last active July 23, 2022 23:21
prusa-slicer-git fix PKG build
# Maintainer: Salamandar <felix@piedallu.me>
pkgname=prusa-slicer-git
pkgver=2.6.0.alpha0.r149.g60cd7d456
pkgrel=1
pkgdesc='G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)'
arch=('i686' 'x86_64' 'armv6' 'armv6h' 'armv7h')
url='https://github.com/prusa3d/PrusaSlicer'
license=('AGPL3')
makedepends=(
@SippieCup
SippieCup / Start.gcode
Created July 18, 2022 15:57
start/end gcodes for e5p with UBL
G90 ; use absolute coordinates
M83 ; extruder relative mode
M104 S120 ; set temporary nozzle temp to prevent oozing during homing and auto bed leveling
M140 S[first_layer_bed_temperature] ; set final bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp to stabilize
G28 ; home all axis
; UBL bed leveling
;G29 P1
;G29 P3
@SippieCup
SippieCup / sender.sh
Last active November 7, 2021 15:07
Waits for plot, transfers through network.
#!/bin/bash
PWD=$1
echo "Monitoring $PWD"
cd $PWD
DEST=$2
PORT=$3
DELETE=$4
proxy_http_version 1.1;
proxy_cache_bypass $http_upgrade;
# Proxy headers
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;