Skip to content

Instantly share code, notes, and snippets.

View hybridindie's full-sized avatar

Johnny D hybridindie

  • It's Secret
  • NE, Ohio
  • 17:23 (UTC -04:00)
View GitHub Profile
@hybridindie
hybridindie / gist:2e78b318968841581e90166bb5f93330
Created December 26, 2022 14:43
klipper / Bondtech / Mosquito config
# Prusa i3 MKS+
[include mainsail.cfg]
[probe]
pin: PB4
x_offset: 24
y_offset: 5
speed: 30
samples: 3
samples_result: average
@hybridindie
hybridindie / gist:95254dffa282a9385f18f2d7e6bffb74
Created December 26, 2022 14:34
Prusa / Bondtech / Mosquito / Klipper / Superslicer
# generated by SuperSlicer 2.4 on 2022-12-26 at 14:28:20 UTC
[print:0.20mm SPEED - Home]
allow_empty_layers = 0
avoid_crossing_not_first_layer = 1
avoid_crossing_perimeters = 0
avoid_crossing_perimeters_max_detour = 0
bottom_fill_pattern = monotonic
bottom_solid_layers = 4
bottom_solid_min_thickness = 0.5
@hybridindie
hybridindie / printer-prusa-mk3s-2021.cfg
Created January 12, 2022 01:42 — forked from nikolak/printer-prusa-mk3s-2021.cfg
Klipper MK3S/+ Config including optional Bondtech Extruder, Bear Extruder, etc.
# This file contains pin mappings and reasonable defaults for Prusa i3 MK3S
# printers. It will work with MK3 (non-S) by selecting the alternative filament
# sensor. References to common community mods are included as well.
#
# Note: The Einsy boards sold by Prusa have defective firmware on the
# usb-to-serial chip that makes the boards unusable with Klipper through USB.
# While flashing Klipper firmware must be done over USB, the board can be used
# via serial with no additional modification.
#
# To use this config, the firmware should be compiled for the AVR atmega2560.
@hybridindie
hybridindie / .zshrc
Last active April 20, 2022 00:09
.zshrc MacOS
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# NPM_PACKAGES="${HOME}/.npm-packages"
# NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
# If you come from bash you might have to change your $PATH.
@hybridindie
hybridindie / semantic-ui.rake
Created June 7, 2018 12:09
Rails Custom Build Semantic-UI
require 'sass/css'
namespace :semantic_ui do
desc 'Updates, compiles, and installs Semantic UI'
task :install, [:react] => [:environment] do |task, args|
args.with_defaults(react: false)
set_autoinstall
install_or_update(args.react)
@hybridindie
hybridindie / .gitconfig
Last active April 13, 2017 13:26
.gitconfig
[user]
name = John Dilts
email = john@76golf.com
[core]
autocrlf = input
excludesfile = /Users/johnd/.gitignore
editor = atom --wait
[push]
default = simple
# Kaleidoscope for merge tool
@hybridindie
hybridindie / rdo_hammer.sh
Last active October 12, 2016 21:57 — forked from jimleitch01/gist:9379158563baf3649cb7
Big hammer - remove all OpenStack components
#!/bin/bash
#Big hammer - remove all OpenStack components
# Warning! Dangerous step! Destroys VMs
for x in $(virsh list --all | grep instance- | awk '{print $2}') ; do
virsh destroy $x ;
virsh undefine $x ;
done ;
# Warning! Dangerous step! Removes lots of packages, including many
# which may be unrelated to RDO.
PATH=/usr/local/bin:/usr/local/sbin:$PATH
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
@hybridindie
hybridindie / gist:7794746
Created December 4, 2013 20:17
Dirty Git Branch PS1
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
PS1='$(__git_ps1 "[\[\e[0;32m\]%s\[\e[0m\]\[\e[0;33m\]$(parse_git_dirty)\[\e[0m\]]")\u:\W \$ '
@hybridindie
hybridindie / provision.md
Created April 10, 2013 20:22
Puppet Description

Provisioning the Server with Puppet

Capistrano needs to be installed. Capistrano uploads the files to the server and sets up the requirements for puppet to run. Then executes it in a standalone mode. from the APP_ROOT/puppet folder run

$ cap puppet:bootstrap HOST=ip.add.res.s

And got make a sandwich cause it takes about 10 minutes to build the server. Take the time to Learn http://docs.puppetlabs.com/learning/ while you wait.

Updating an existing Server after a puppet change

$ cap puppet:update HOST=ip.add.res.s