Skip to content

Instantly share code, notes, and snippets.

View adammhaile's full-sized avatar

Adam Haile adammhaile

View GitHub Profile
@adammhaile
adammhaile / octoprint.log
Created December 1, 2017 23:15
OctoPrint WebCam Failing
2017-11-30 03:49:05,907 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2017-11-30 03:49:05,907 - octoprint.server - INFO - OctoPrint 1.3.5 (master branch)
2017-11-30 03:49:05,911 - octoprint.plugin.core - INFO - 16 plugin(s) registered with the system:
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.5-py2.7.egg/octoprint/plugins/announcements
| BLTouch Plugin (0.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_BLTouch
| Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.5-py2.7.egg/octoprint/plugins/corewizard
| CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.5-py2.7.egg/octoprint/plugins/cura
| Custom Control Editor (0.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_customControl
| Cyborg Theme (0.1.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_cyborgtheme
| Discovery (b
@adammhaile
adammhaile / dual.gcode
Created November 8, 2017 00:17
dual extrusion Z wrong
; G-Code generated by Simplify3D(R) Version 4.0.0
; Nov 7, 2017 at 5:51:16 PM
; Settings Summary
; processName,Color1
; applyToModels,Calibration_Target_A_v1-1
; profileName,T-Rex 2+ Dual (modified)
; profileVersion,2017-11-07 17:05:51
; baseProfile,Formbot T-Rex 2 (modified)
; printMaterial,PLA
; printQuality,High
from bibliopixel.drivers.driver_base import DriverBase
import time
import struct
import os
from PIL import Image
import numpy
from skvideo.io import FFmpegWriter
import scipy.misc
#! /bin/bash
# Clone needed repos
pushd /home/pi
git clone https://github.com/adammhaile/AnimatedGifs.git
git clone https://github.com/adammhaile/DisplayGraphics.git
git clone https://github.com/ManiacalLabs/HT1632_Serial.git
git clone https://github.com/adammhaile/BiblioPixelProjects.git
git clone https://github.com/ManiacalLabs/BiblioPixelAnimations.git
pushd ./BiblioPixelAnimations
{
"animation": {
"typename": "BiblioPixelAnimations.strip.Rainbows.RainbowCycle"
},
"run": {
"fps": 30
},
"driver": {
"num": 240,
"typename": "pi_ws281x",
@adammhaile
adammhaile / remote_demo.json
Created July 9, 2017 01:01
BP Remote Demo
{
"driver": {
"typename": "simpixel",
"num": 256
},
"layout": {
"typename": "matrix",
"width": 16,
"height": 16
#include <SmartMatrix3.h>
#include <EEPROM.h>
#define FIRMWARE_VER 2
namespace CMDTYPE
{
enum CMDTYPE
{
SETUP_DATA = 1,
{
"driver": {
"typename": "bibliopixel.drivers.serial.Serial",
"ledtype": "GENERIC",
"num": 1024,
"hardwareID": "16C0:0483"
},
"layout": {
"typename": "matrix",
import os, shutil
from . import config, files
GIT_NOT_FOUND = """Unable to find the `git` command!
In order to use the git functionality, you must have the `git` binary installed.
Please follow the instructions here to install:
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
"""
# build kvm image
docker build https://github.com/BBVA/kvm.git -t bbva/kvm:latest
# generate cloud-init init.iso
genisoimage -output /tmp/init.iso -volid cidata -joliet -rock ./user-data ./meta-data
# download latest atomic qcow image
curl https://ci.centos.org/artifacts/fedora-atomic/rawhide/images/latest-atomic.qcow2 --output /tmp/latest-atomic.qcow2
# run the KVM container with atomic qcow