Skip to content

Instantly share code, notes, and snippets.

View SippieCup's full-sized avatar

Andrew Sidhu SippieCup

View GitHub Profile
@SippieCup
SippieCup / install_multithreaded_chiapos.sh
Last active June 7, 2021 00:07
Safe way to install the multithreaded chiapos libary and rebuild chia-blockchain binaries
#!/bin/bash
# Note:
# I have not actually tested this installing into the
# chia-blockchain `install.sh` venv as I did not use it
# when I installed chia. I have only tested it in a
# test venv. YMMV!
if [ $# -eq 0 ]
then
@SippieCup
SippieCup / gitlab-ci.yaml
Created June 5, 2021 00:49
Autodevops dual deployment overlay
include:
- template: Auto-DevOps.gitlab-ci.yml
.auto-deploy:
image: registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v2.7.0
variables:
AUTO_DEVOPS_FORCE_DEPLOY_V2: 1
dependencies: []
.local: &local_template
#!/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
#!/bin/bash
PWD=$1
echo "Monitoring $PWD"
cd $PWD
DEST=$2
PORT=$3
@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
@SippieCup
SippieCup / listener.sh
Last active August 4, 2021 22:01
Find and fills all available free space in root dir.
#!/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))
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 / 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 / PKGBUILD
Last active July 23, 2022 23:21
prusa-slicer-git fix PKG build
# Maintainer: Salamandar <[email protected]>
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=(
# Maintainer: Salamandar <[email protected]>
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=(