Skip to content

Instantly share code, notes, and snippets.

View Sibicle's full-sized avatar
🤨

Jason Nedell Sibicle

🤨
View GitHub Profile
@Sibicle
Sibicle / Battery.php
Created November 21, 2016 23:58
Hazmat Classifier
<?php
namespace SparkLib\HazmatClassifier;
use \Exception;
use \SparkLib\HazmatClassifier\LiIonBattery,
\SparkLib\HazmatClassifier\LiMetalBattery;
abstract class Battery {
// Battery chemistries
const LI_ION = 1;
# Smoothieboard configuration file, see http://smoothieware.org/configuring-smoothie
# NOTE Lines must not exceed 132 characters, and '#' characters mean what follows is ignored
## Robot module configurations : general handling of movement G-codes and slicing into moves
# Basic motion configuration
default_feed_rate 4000 # Default speed (mm/minute) for G1/G2/G3 moves
default_seek_rate 4000 # Default speed (mm/minute) for G0 moves
mm_per_arc_segment 0.0 # Fixed length for line segments that divide arcs, 0 to disable
#mm_per_line_segment 5 # Cut lines into segments this size
mm_max_arc_error 0.01 # The maximum error for line segments that divide arcs 0 to disable
@Sibicle
Sibicle / cloudbox_debug_log
Last active August 5, 2019 00:37
CloudBox Debug Log
[box@rapidseedbox cloudbox]$ sudo ansible-playbook cloudbox.yml -vv --tags cloudbox | tee ~/out.txt
ansible-playbook 2.5.14
config file = /home/box/cloudbox/ansible.cfg
configured module search path = [u'/home/box/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0]
Using /home/box/cloudbox/ansible.cfg as config file
statically imported: /home/box/cloudbox/roles/sanity_check/tasks/sanity_check_system.yml
statically imported: /home/box/cloudbox/roles/sanity_check/tasks/sanity_check_tags.yml
@Sibicle
Sibicle / log.txt
Created August 11, 2019 22:55
Cloudbox, Ansible cannot install kernel header, even though valid package exists
ansible-playbook 2.5.14
config file = /home/box/cloudbox/ansible.cfg
configured module search path = [u'/home/box/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0]
Using /home/box/cloudbox/ansible.cfg as config file
setting up inventory plugins
Set default localhost to localhost
Parsed /home/box/cloudbox/inventories/local inventory source with ini plugin
root@rapidseedbox:~/cloudbox# sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-4.15.0-1043-aws' for regex 'linux-headers-4.15.0'
Note, selecting 'linux-headers-4.15.0-1037-aws' for regex 'linux-headers-4.15.0'
Note, selecting 'linux-headers-4.15.0-32-generic' for regex 'linux-headers-4.15.0'
Note, selecting 'linux-headers-4.15.0-55-lowlatency' for regex 'linux-headers-4.15.0'
Note, selecting 'linux-headers-4.15.0-1010-kvm' for regex 'linux-headers-4.15.0'
Note, selecting 'linux-headers-4.15.0-1041-aws' for regex 'linux-headers-4.15.0'
@Sibicle
Sibicle / w.c
Created January 23, 2021 07:11
weissmann gains?
vec3_t new_point = { .x = x, .y = y, .z = z };
cube_points[0] = new_point;
// vs
cube_points[0] = { .x = x, .y = y, .z = z };