Skip to content

Instantly share code, notes, and snippets.

View capsulecorplab's full-sized avatar

Sean Marquez capsulecorplab

View GitHub Profile
@capsulecorplab
capsulecorplab / README.adoc
Last active October 17, 2023 00:44
install script for pyenv & pyenv-virtualenv

pyenv & pyenv-virtualenv install script

The pyenv_install.sh script is a bash script that installs pyenv - a python version manager, and pyenv-virtualenv - a virtual environment plugin for pyenv.

To run installer, clone this repo, change directory to cloned repo, and execute the script with bash:

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 / space_mission_firesat.yaml
Last active December 4, 2022 12:16
A template for serializing the Space Mission Analysis & Design (SMAD) process using the hypothetical 'FireSat' space mission.
# This yaml file is a (draft) template for serializing the Space Mission
# Analysis & Design (SMAD) process using the hypothetical 'FireSat' space
# mission from the SMAD handbook, by Wiley Larson & James Wertz (3rd edition).
#
# More info on yaml syntax and usage can be found here:
# https://learnxinyminutes.com/docs/yaml/
# yaml files can be validated on http://www.yamllint.com/
#####################
# Mission Statement #
@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 / 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 / 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 / gist:8a4f12d1f8d5dc3f0e8736b806bd77b8
Last active April 3, 2021 03:08
essentials for newly installed ubuntu
We couldn’t find that file to show.