Skip to content

Instantly share code, notes, and snippets.

View capsulecorplab's full-sized avatar

Sean Marquez capsulecorplab

View GitHub Profile
persons:
- id: ORCID:1234
full_name: Superman
has_organizational_relationships:
- related_to: ROR:1
relationship_type: MEMBER_OF
- id: ORCID:3000
full_name: Jor El
has_familial_relationships:
- related_to: ORCID:1234
id: NCBITaxon:40674
name: mammals
has_subtypes:
NCBITaxon:9443:
name: primates
has_subtypes:
NCBITaxon:9606:
name: humans
NCBITaxon:9682:
name: cats
@capsulecorplab
capsulecorplab / how_to_setup_GHCR_for_kasm_workspace_images.md
Last active July 31, 2022 18:08
How to setup GHCR for kasm workspace images
@capsulecorplab
capsulecorplab / clockdrive_nema17_cg4_drv8825.ino
Last active July 23, 2022 22:13
Arduino sketch for running clockdrive with DRV8825 on Nema17 stepper motor on CG-4 mount
// 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
capsulecorplab / temp_sensor.py
Last active July 17, 2022 00:58
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
capsulecorplab / .gitconfig
Last active December 1, 2022 21:14
.gitconfig for git aliases
[alias]
a = add
ap = add -p
b = branch -v
bd = branch -d -v
bD = branch -D -v
cl = clone
clr = clone --recurse-submodules
@capsulecorplab
capsulecorplab / LICENSE
Last active June 1, 2021 23:06
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
capsulecorplab / Ender3-v2-PETG.curaprofile
Last active February 9, 2021 04:06
Cura installer for Linux (64 bit)
@capsulecorplab
capsulecorplab / install-arduino.sh
Last active January 2, 2021 13:28
bash script for installing arduino on 64bit Linux
#!/usr/bin/env bash
# artifacts
arduinosource=arduino-1.8.13
# arduino
if ! command -v arduino &>/dev/null; then
if [ ! -r ~/$arduinosource ]; then
curl -L "https://downloads.arduino.cc/arduino-1.8.13-linux64.tar.xz" -o ~/$arduinosource.tar.xz
tar -xvf ~/$arduinosource.tar.xz -C ~/
@capsulecorplab
capsulecorplab / .gitignore
Last active April 1, 2021 20:30
plantuml template for specifying stakeholder needs & user stories
# Asciidoctor
.asciidoctor/