Skip to content

Instantly share code, notes, and snippets.

View allenh1's full-sized avatar

Hunter L. Allen allenh1

  • Apex.AI
  • Media, PA
View GitHub Profile
@allenh1
allenh1 / failing.yml
Last active January 23, 2018 22:06
Curently Failing Gentoo Packages
indigo:
- adi_driver
- fanuc
- fanuc_driver
- trac_ik
- trac_ik_kinematics_plugin
- trac_ik_python
kinetic:
- adi_driver
- aruco_detect
@allenh1
allenh1 / moveit_core build
Created January 23, 2018 02:21
Build output for moveit_core on Gentoo for ROS Lunar, version 0.9.11
a3fc8e78d481 / # emerge ros-lunar/moveit_core
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) ros-lunar/moveit_core-0.9.11::ros-overlay
* moveit_core-lunar-release-0.9.11.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
@allenh1
allenh1 / deb build
Created February 8, 2018 05:39
Building a Deb File
allenh1@hunter-Lemur:~/work/superflore$ sudo python3 ./setup.py --command-packages=stdeb.command bdist_deb
running bdist_deb
running sdist_dsc
running egg_info
writing superflore.egg-info/PKG-INFO
writing dependency_links to superflore.egg-info/dependency_links.txt
writing entry points to superflore.egg-info/entry_points.txt
writing requirements to superflore.egg-info/requires.txt
writing top-level names to superflore.egg-info/top_level.txt
reading manifest file 'superflore.egg-info/SOURCES.txt'
@allenh1
allenh1 / gist:48e80007fc07efafccd9561bdaded8c9
Created February 17, 2018 00:30
ros_workspace emerge log
>>> Emerging (2 of 2) ros-ardent/ros_workspace-0.4.0::ros-overlay
* ros_workspace-ardent-release-0.4.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking ros_workspace-ardent-release-0.4.0.tar.gz to /var/tmp/portage/ros-ardent/ros_workspace-0.4.0/work
>>> Source unpacked in /var/tmp/portage/ros-ardent/ros_workspace-0.4.0/work
>>> Preparing source in /var/tmp/portage/ros-ardent/ros_workspace-0.4.0/work/ros_workspace-0.4.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/ros-ardent/ros_workspace-0.4.0/work/ros_workspace-0.4.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/ros-ardent/ros_workspace-0.4.0/work/ros_workspace-0.4.0_build"
cmake -C /var/tmp/portage/ros-ardent/ros_workspace-0.4.0/work/ros_workspace-0.4.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCATKIN_ENABLE_TESTING=0 -DCATKIN_BUILD_BINARY_PACKAGE=1 -DCMAKE_PREFIX_PATH=/opt/ros/ardent -DCMAKE_INSTALL_PREFIX=/opt/ros/ardent -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_M
$ python3 ./setup.py --command-packages=stdeb.command bdist_deb
running bdist_deb
running sdist_dsc
running egg_info
writing entry points to superflore.egg-info/entry_points.txt
writing top-level names to superflore.egg-info/top_level.txt
writing superflore.egg-info/PKG-INFO
writing requirements to superflore.egg-info/requires.txt
writing dependency_links to superflore.egg-info/dependency_links.txt
reading manifest file 'superflore.egg-info/SOURCES.txt'
@allenh1
allenh1 / rivz_stack_smashing
Created February 28, 2018 03:16
Detected Stack Smashing in RViz
$ valgrind ./rviz
==7156== Memcheck, a memory error detector
==7156== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7156== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==7156== Command: ./rviz
==7156==
[ INFO] [1519787717.744579925]: rviz version 1.12.15
[ INFO] [1519787717.758823504]: compiled against Qt version 5.9.4
[ INFO] [1519787717.760321540]: compiled against OGRE version 1.9.0 (Ghadamon)
==7156== Syscall param epoll_ctl(event) points to uninitialised byte(s)
@allenh1
allenh1 / regen-log.txt
Created April 19, 2018 03:45
regenerate package w/superflore
$ superflore-gen-ebuilds --only ar_track_alvar --ros-distro indigo
>>>> Working in temporary directory /tmp/tmpyvm_71hi
>>>> Creating new branch gentoo-bot-GFYYqGgSCZ...
>>>>
>>>> Regenerating package 'ar_track_alvar'...
>>>> Successfully generated installer for package 'ar_track_alvar'.
>>>> Pulling docker image 'allenh1/ros_gentoo_base:latest'...
>>>> Running docker image...
>>>> Generating manifests...
>>>> Working in temporary directory /tmp/tmplupkjf2k
@allenh1
allenh1 / check_installed.r
Created May 15, 2018 22:07
How to check if something is installed in R
check.installed <- function(pkgname) {
is.element(pkgname, installed.packages()[ , 1])
}
## Verify that mosaic is installed!
if (!check.installed("mosaic")) {
install.packages("mosaic");
}
library(mosaic)
@allenh1
allenh1 / fix_line_endings.cpp
Last active August 21, 2018 15:43
Fix line endings for C++ files
// Copyright 2018 Hunter L. Allen
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@allenh1
allenh1 / mini_dump_example.cpp
Created August 8, 2018 17:58
An example of how to create a Mini Dump on Windows
#include <functional>
#include <iostream>
#include <windows.h>
#include <dbghelp.h>
template<typename Callback>
struct ScopeExit
{
explicit ScopeExit(Callback p_func)