Skip to content

Instantly share code, notes, and snippets.

@stertingen
stertingen / steam-native-crash.log
Created January 16, 2017 09:18
Console output when launching steam
Repairing installation, linking /home/hermann/.steam/steam to /home/hermann/.local/share/Steam
Running Steam on arch 2016-10-20 64-bit
STEAM_RUNTIME is disabled by the user
Installing breakpad exception handler for appid(steam)/version(0)
*** Error in `/home/hermann/.local/share/Steam/ubuntu12_32/steam': free(): invalid pointer: 0xffb0afc0 ***
======= Backtrace: =========
/usr/lib32/libc.so.6(+0x6815a)[0xf727b15a]
/usr/lib32/libc.so.6(+0x6ed07)[0xf7281d07]
/usr/lib32/libc.so.6(+0x6f4d6)[0xf72824d6]
/usr/lib32/libX11.so.6(XFree+0x18)[0xf7609528]
@stertingen
stertingen / ldd-steam-crash.log
Created January 16, 2017 09:27
ldd on crashing steam
$ ldd .local/share/Steam/ubuntu12_32/steam
linux-gate.so.1 (0xf7726000)
libX11.so.6 => /usr/lib32/libX11.so.6 (0xf75a3000)
librt.so.1 => /usr/lib32/librt.so.1 (0xf759a000)
libm.so.6 => /usr/lib32/libm.so.6 (0xf7545000)
libdl.so.2 => /usr/lib32/libdl.so.2 (0xf7540000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf73bf000)
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf73a2000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf71e9000)
libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf71be000)
@stertingen
stertingen / depsh.bash
Created May 10, 2020 21:12
Generate topology order for ROS packages
#!/bin/bash
set -x
for target in ros ros_comm ros_core ros_base robot viz desktop perception simulators desktop_full; do
if ! [ -r $target/topology.txt ]; then
mkdir -p $target
pushd $target
mkdir -p src
rosinstall_generator $target --rosdistro melodic --deps --tar | vcs import src
colcon list -t -n > topology.txt
#!/usr/bin/env python3
import os
import multiprocessing
import subprocess
import catkin_pkg
import rosdistro
DISTRO = 'noetic'
@stertingen
stertingen / strprintf.cpp
Created October 5, 2021 16:15
std::sprintf to std::string
#include <cerrno>
#include <cstring>
#include <iostream>
#include <string>
#include <utility>
template <typename... Args>
std::string strprintf(Args&&... args) {
std::string s;
const std::size_t sso = s.capacity();