Skip to content

Instantly share code, notes, and snippets.

View hauptmech's full-sized avatar

Hauptmech hauptmech

View GitHub Profile
@hauptmech
hauptmech / gist:11315155
Created April 26, 2014 08:51
include-what-you-use PKGBUILD for clang 3.4
# Maintainer: Carl Reinke <mindless2112 gmail com>
# Contributor: Hauptmech <hauptmech gmail com>
pkgname=include-what-you-use
pkgver=3.4
pkgrel=1
pkgdesc="A tool for use with clang to analyze #includes in C and C++ source files"
url="http://code.google.com/p/include-what-you-use/"
license=('LLVM Release License')
source=($pkgname-$pkgver.tar.gz::"http://include-what-you-use.com/downloads/include-what-you-use-3.4.src.tar.gz")
@hauptmech
hauptmech / PKGBUILD
Created October 17, 2011 10:36
crosstool-ng PKGBUILD for archlinux
# Contributor: jwwolf <jwwolf+arch@gmail.com>
pkgname=crosstool-ng
pkgver=1.12.4
pkgrel=1
pkgdesc="A versatile (cross-)toolchain generator"
arch=('i686' 'x86_64')
url="http://crosstool-ng.org/"
license=(GPL)
depends=('bash' 'cvs' 'make' 'gcc' 'gawk' 'sed' 'bison' 'flex' 'texinfo' 'automake' \
@hauptmech
hauptmech / Netus.patch
Created October 21, 2011 09:23
Archlinux PKGBUILD for linux-2.6.37.6 + xenomai-2.5.6 on NetusG20 ARM board
--- linux-2.6.37.6/arch/arm/mach-at91/board-foxg20.c 1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.38.8/arch/arm/mach-at91/board-foxg20.c 2011-06-03 03:35:11.000000000 +0200
@@ -0,0 +1,274 @@
+/*
+ * Copyright (C) 2005 SAN People
+ * Copyright (C) 2008 Atmel
+ * Copyright (C) 2010 Lee McLoughlin - lee@lmmrtech.com
+ * Copyright (C) 2010 Sergio Tanzilli - tanzilli@acmesystems.it
+ *
+ * This program is free software; you can redistribute it and/or modify
@hauptmech
hauptmech / PKGBUILD
Created January 4, 2012 11:53
Archlinux AUR cuda-sdk PKGBUILD
# Maintainer: Thomas Jost <schnouki@schnouki.net>
# Contributor: Carson Reynolds <carson@k2.t.u-tokyo.ac.jp>
# Contributor: hauptmech
#
# A x86_64 binary version of this package is available from my custom
# repository. If you wish to use it, just add the following lines to your
# /etc/pacman.conf:
# [schnouki]
# Server = http://repo.schnouki.net/archlinux/$arch
# Then run "pacman -Sy cuda-sdk" as root.
@hauptmech
hauptmech / PKGBUILD
Created January 4, 2012 13:36
Archlinux AUR suitesparse PKGBUILD
# Contributor: Marco Maso <demind@gmail.com>
pkgname=suitesparse
_pkgname=SuiteSparse
pkgver=3.6.1
pkgrel=2
pkgdesc="A suite of sparse matrix packages"
url="http://www.cise.ufl.edu/research/sparse/SuiteSparse/"
arch=('i686' 'x86_64')
conflicts=('umfpack')
@hauptmech
hauptmech / PKGBUILD
Created January 26, 2012 11:06
Archlinux AUR cuda-sdk 4.1 PKGBUILD
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=cuda-sdk
pkgver=4.1.21
pkgrel=1
_fedver=14
pkgdesc="NVIDIA's GPU programming toolkit"
arch=('i686' 'x86_64')
url="http://www.nvidia.com/object/cuda_home.html"
license=('custom')
@hauptmech
hauptmech / PKGBUILD
Created April 11, 2012 10:19
PKGBUILD for Yarp 2.3.15 on GCC 4.7
# Contributor: Victor Noël
pkgname=yarp
pkgver=2.3.15
pkgrel=5
pkgdesc="Yet Another Robot Platform"
url="http://eris.liralab.it/yarp/"
license=('GPL')
arch=('any')
makedepends=('cmake')
@hauptmech
hauptmech / example.cpp
Last active December 5, 2015 18:30
Rough single process multi-thread robot control
#include <boost/circular_buffer.hpp>
#include <thread>
#include <mutex>
struct sense_packet {
uint16_t pressure;
uint8_t bus_voltage;
};
boost::circular_buffer<sense_packet> sense_buff(2);
std::mutex sense_mutex;
@hauptmech
hauptmech / troff2asciidoc.py
Created December 17, 2012 22:17
Help convert troff manpage source files to asciidoc. Some hand editing of the file is needed afterwards
#!/usr/bin/python2
"""
A little helper to speed up converting troff files to adoc.
usage:
./troff2adoc.py manpage.man.in
typical post conversion tasks:
clean up bolded items outside the OPTIONS section.
clean up SYNOPSIS
@hauptmech
hauptmech / gist:8208179
Created January 1, 2014 13:50
PKGBUILD wxpython2.9-devel works as of 01 Jan 2014
# Maintainer: Ronnie Andrew <ronnieandrew92 at gmail dot com>
# Original submitter: solusipse
# Revision by Rita Bylsma at solid state chemistry department of Radboud University Nijmegen, The Netherlands.
#
# This package will be installed as a newer version of wxpython,
# meaning that any older version will be removed, but it is easy to
# get the older version back.
# If you would want to have both versions installed at the same time,
# read the notes below.
#