Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
PWD=$1
echo "Monitoring $PWD"
cd $PWD
DEST=$2
PORT=$3
#!/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
@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
@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 / install-pt
Created April 12, 2021 19:18 — forked from brandondrew/install-pt
Easily install the Platinum Searcher (on Linux) (to your personal bin directory)
#!/usr/bin/env bash
OS_CODE="linux_amd64"
# TODO: check the OS and architecture and make this work across platforms
VERSION="v2.2.0"
# TODO: scrape the GitHub README for the latest version
TARGET=~/bin
# TODO: accept command line options, and prompt if nothing is specified
#!/bin/bash
if [ -f $(which xcode-select) ]; then
xcode-select --install
fi
if [ -f $(which brew) ]; then
echo "install homebrew first!"
echo '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
exit 1
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
script_dir=/var/root/scripts
pattern=AccessPopup
last_command="NoNe"
if ps ax | grep $0 | grep -v $$ | grep bash | grep -v grep; then
echo "The script is already running."
exit 1
fi
@SippieCup
SippieCup / CR-6SE_start.gcode
Created October 17, 2020 22:35
CR-6SE Start Gcode
G90 ; use absolute coordinates
M83 ; extruder relative mode
G28 ; home all
M420 S1 Z0.00 ; Mesh bed leveling
G1 Z10.0 F3000 ;Move Z Axis up
M104 S[first_layer_temperature] ; set extruder temp
M140 S[first_layer_bed_temperature] ; set bed temp
@SippieCup
SippieCup / E5P_start.gcode
Created October 5, 2020 17:04
Ender 5 Plus Starting G Code
G28 ; home extruder
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
;G29 ; Redo autoleveling - Uncomment every few prints
M420 S1 Z2; Use Mesh
M104 S[first_layer_temperature] ; set extruder temp
M109 S[first_layer_temperature] ; wait for extruder temp
G91 ;Relative positionning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
{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 Y220 ;Present print