Skip to content

Instantly share code, notes, and snippets.

View smvorwerk's full-sized avatar

Stephen Vorwerk smvorwerk

  • Wilimington, NC
  • 05:17 (UTC -04:00)
View GitHub Profile

Introduction

The Openscan project https://openscan.eu is a really cool 3D printing and scanning project. It systematically takes a series of photos that can be stitched together into a 3D model using photogrammetry. Thomas Megel the creator of OpenScan has a really cool cloud-based service that can take the raw photos and turn them an STL model for you. You can read more about it here: https://github.com/OpenScanEu/OpenScan/blob/master/temp/README.md

Another way to take advantage of photogrammetry is using AliceVision's Meshroom. Prusa Research did a nice explainer/tutorial in this blog post: https://blog.prusaprinters.org/photogrammetry-2-3d-scanning-simpler-better-than-ever_29393/

The main "catch" with Meshroom is that it requires CUDA and hence an NVIDIA graphics card. It didn't have an NVIDIA card (and didn't want to figure out how to run in the cloud) but I did have a Jetson Nano 2GB https://www.nvidia.com/en-us/autonomous-machines/embedded-systems/jetson-nano/education-projects/

The documentati

@smvorwerk
smvorwerk / jetson-bootstrap.sh
Created November 12, 2022 21:00 — forked from everdrone/jetson-bootstrap.sh
Bootstrap script for a new NVIDIA Jetson Nano
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
if [[ $UID != 0 ]]; then
echo "Please run this script with sudo:"
echo "sudo $0 $*"
exit 1
I found a way to install the ubuntu-netbook-remix-i386.img file into VirtualBox. Here are the steps.
1. Run the command to create a bootable VDI image (without quotes):
“VBoxManage convertfromraw ubuntu-netbook-remix-i386.img ubuntu-netbook-remix-i386-live.vdi”
2. Run the command to create a new empty VDI image where to install the image with 8GB space:
“VBoxManage createhd -filename ubuntu-netbook-remix-i386.vdi -size 8000″
Note: you can use -register option at the end of this command or register this VDI file from the VirtualBox later.
3. Create a new VM using the ubuntu-netbook-remix-i386-live.vdi (use the existing vdi option)
4. Attach the ubuntu-netbook-remix-i386.vdi as a Primary Slave
5. Start the VM (boot)
6. Install
@smvorwerk
smvorwerk / gitpr
Created March 22, 2022 12:45 — forked from ognus/gitpr
Bash script for auto pushing current git branch and creating a Github PR with JIRA link in description
#!/bin/bash
#
# Usage: gitpr "My PR title"
#
# If branch name follows this convention: anything_JIRAPROJECT-TASKID then link to JIRA
# task is added in PR's description.
#
# This script requires https://hub.github.com/ to be installed.
#
@smvorwerk
smvorwerk / Laravel-Container.md
Created February 23, 2022 13:00
Laravel's Dependency Injection Container in Depth

Laravel's Dependency Injection Container in Depth

Translations: Korean (by Yongwoo Lee)

Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.

Introduction to Dependency Injection

I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).