Skip to content

Instantly share code, notes, and snippets.

View goth ham pun
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
View story 1
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.
View gist:e2398fba3e8519c411a93b1192ff24bf
# 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
View PKGBUILD
# 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
View Start.gcode
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
View gist:22e11c768e056940545304b820d13ba9
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;
@SippieCup
SippieCup / listener.sh
Last active August 4, 2021 22:01
Find and fills all available free space in root dir.
View listener.sh
#!/bin/bash
ROOT=$1
PORT=$2
DELETE=$3
free_space () {
FREE_SPACE=$(df $1 | awk '{print $4}' | tail -n 1)
#echo $FREE_SPACE
echo $(($FREE_SPACE/1048576))
@SippieCup
SippieCup / sender.sh
Last active November 7, 2021 15:07
Waits for plot, transfers through network.
View sender.sh
#!/bin/bash
PWD=$1
echo "Monitoring $PWD"
cd $PWD
DEST=$2
PORT=$3
DELETE=$4
View send.sh
#!/bin/bash
PWD=$1
echo "Monitoring $PWD"
cd $PWD
DEST=$2
PORT=$3
View listen.sh
#!/bin/bash
ROOT_DIR=$1
DRIVE_NUM=$2
PORT=$3
printf -v DNAME "%02d" $DRIVE_NUM
cd $ROOT_DIR/$DNAME
echo Listening in $ROOT_DIR/$DNAME