Skip to content

Instantly share code, notes, and snippets.


Sean Marquez capsulecorplab

View GitHub Profile
capsulecorplab /
Last active Jul 31, 2022
How to setup GHCR for kasm workspace images
capsulecorplab / clockdrive_nema17_cg4_drv8825.ino
Last active Jul 23, 2022
Arduino sketch for running clockdrive with DRV8825 on Nema17 stepper motor on CG-4 mount
View clockdrive_nema17_cg4_drv8825.ino
// Define pin connections & motor's steps per revolution
const int dirPin = 2;
const int stepPin = 3;
const int stepsPerRevolution = 200;
void setup()
// Declare pins as Outputs
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
capsulecorplab /
Last active Jul 17, 2022
micropython class for reading temperature using DS18B20
import machine, onewire, ds18x20, time
class DS18B20:
def __init__(self, ds_pin: int = 4):
self.ds_pin = machine.Pin(ds_pin, machine.Pin.IN)
self.ds_sensor = ds18x20.DS18X20(onewire.OneWire(self.ds_pin))
def read_temperature(self, verbose: bool = False) -> float:
if verbose == True:
capsulecorplab / .gitconfig
Last active Dec 1, 2022
.gitconfig for git aliases
View .gitconfig
a = add
ap = add -p
b = branch -v
bd = branch -d -v
bD = branch -D -v
cl = clone
clr = clone --recurse-submodules
capsulecorplab / LICENSE
Last active Jun 1, 2021
BlackBelt Cura profiles
MIT License
Copyright (c) 2021 @capsulecorplab
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
capsulecorplab /
Last active Jan 2, 2021
bash script for installing arduino on 64bit Linux
#!/usr/bin/env bash
# artifacts
# arduino
if ! command -v arduino &>/dev/null; then
if [ ! -r ~/$arduinosource ]; then
curl -L "" -o ~/$arduinosource.tar.xz
tar -xvf ~/$arduinosource.tar.xz -C ~/
capsulecorplab / .gitignore
Last active Apr 1, 2021
plantuml template for specifying stakeholder needs & user stories
View .gitignore
# Asciidoctor
capsulecorplab /
Last active Nov 27, 2020
bash script for installing kpcli on Ubuntu/Debian
#!/usr/bin/env bash
if ! command -v kpcli &> /dev/null; then
wget ''
sudo apt install -y ./kpcli-3.6-1.deb
rm kpcli-3.6-1.deb
capsulecorplab /
Last active Nov 24, 2020
bash script for installing keybase on 64bit Ubuntu
#!/usr/bin/env bash
curl --remote-name
sudo apt install ./keybase_amd64.deb
rm keybase_amd64.deb