Skip to content

Instantly share code, notes, and snippets.

View gist:9a0d122f45d05c6ffec60a2efaeb2789
#!/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 Sep 1, 2017
Ansible apt marking bug.
View playbook.yml
---
- hosts: localhost
tasks:
- block:
- name: "install_parent"
apt:
name: "{{ item }}"
install_recommends: no
state: present
with_items:
@trainman419
trainman419 / imx6q-uddo.dts
Created Oct 11, 2014
UDOO-Quad LVDS DTS DTB
View imx6q-uddo.dts
/*
* 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 Aug 29, 2015
catkin build tools performance comparison
View catkin.md

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 Aug 29, 2015
build time notes
View notes.md

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
View moffet_4.geojson
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
Don't store the result of std::min in a const &
View gist:d8cf0c0f17dc05a8f940
#include <stdio.h>
#include <algorithm>
class B {
public:
int b_;
B(int b) : b_(b) {}
~B() { b_ = 23; }
View gist:9981385
### 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:
View out-and-back.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View hydro-desktop-wet.rosinstall
- 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