Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import sys
import collections
import random
words_by_first = collections.defaultdict(list)
with open('/usr/share/dict/words') as words:
@trainman419
trainman419 / playbook.yml
Created September 1, 2017 02:59
Ansible apt marking bug.
---
- hosts: localhost
tasks:
- block:
- name: "install_parent"
apt:
name: "{{ item }}"
install_recommends: no
state: present
with_items:
@trainman419
trainman419 / imx6q-uddo.dts
Created October 11, 2014 02:34
UDOO-Quad LVDS DTS DTB
/*
* Copyright 2013 Freescale Semiconductor, Inc.
*
* Author: Fabio Estevam <fabio.estevam@freescale.com>
* Author: Austin Hendrix <namniart@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
@trainman419
trainman419 / catkin.md
Last active August 29, 2015 14:07
catkin build tools performance comparison

Comparing the traditional catkin_make to catkin_make_isolated and catkin build

These aren't incredibly scientific; they're just designed to give me an idea of how the various existing build tools compare with one another. They're tested on the fairly large project I work on at my day job.

Tool catkin_make catkin_make_isolated catkin_tools
Build from scratch 8m2s 12m33s 8m47s
Rebuild, no changes 2s 19s 27s
Touch a cmakelists 52s 41s 59s
Touch a header 2m7s 2m38s 3m6s
@trainman419
trainman419 / notes.md
Last active August 29, 2015 14:04
build time notes

ROS ARM buildfarm timing notes

  • rospy trusty armhf #2
    • 16 seconds startup (pre pbuilder)
    • 57 seconds initial apt-get update
    • 9:27 to install dependencies
      • package dependencies, plus devscripts, fakeroot
      • common catkin dependencies: python-catkin-pkg, python-nose, python, python-empy
      • these are all candidates for inclusion in the extra packages list
  • 12 seconds timestamp and generate changelog
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@trainman419
trainman419 / gist:d8cf0c0f17dc05a8f940
Created May 16, 2014 21:17
Don't store the result of std::min in a const &
#include <stdio.h>
#include <algorithm>
class B {
public:
int b_;
B(int b) : b_(b) {}
~B() { b_ = 23; }
### Keybase proof
I hereby claim:
* I am trainman419 on github.
* I am namniart (https://keybase.io/namniart) on keybase.
* I have a public key whose fingerprint is FB06 4594 56F8 8207 B6FD F475 D13C E12B 856C 9723
To claim this, I am signing this object:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- git:
local-name: actionlib
uri: https://github.com/ros-gbp/actionlib-release.git
version: release/hydro/actionlib/1.10.3-0
- git:
local-name: actionlib_msgs
uri: https://github.com/ros-gbp/common_msgs-release.git
version: release/hydro/actionlib_msgs/1.10.2-0
- git:
local-name: actionlib_tutorials