Skip to content

Instantly share code, notes, and snippets.

View akhenakh's full-sized avatar
🏠
Working from home

Fabrice Aneche akhenakh

🏠
Working from home
View GitHub Profile
@akhenakh
akhenakh / gist:929f07d697ce60ba75871b5ae0b3bb35
Last active July 4, 2017 20:52
filter OSM road network
"highway" = 'primary' OR "highway" = 'primary_link' OR
"highway" = 'trunk' OR "highway" = 'trunk_link' OR
"highway" = 'motorway' OR "highway" = 'motorway_link' OR
"highway" = 'secondary' OR "highway" = 'secondary_link' OR
"highway" = 'tertiary' OR "highway" = 'tertiary_link' OR
"highway" = 'residential' OR "highway" = 'unclassified'
https://wiki.openstreetmap.org/wiki/Routing#Routing_considerations
@akhenakh
akhenakh / PKGBUILD
Created September 14, 2017 20:28
Arch aruco needed for opentracker
pkgname=aruco-git
pkgver=2.0.19.5675
pkgrel=1
pkgdesc="Augmented reality library based on OpenCV"
arch=('i686' 'x86_64')
url="https://www.uco.es/investiga/grupos/ava/node/26"
license=('BSD')
depends=(opencv)
makedepends=(cmake)
source=("git+https://github.com/opentrack/aruco.git#commit=567503cf3a1feed334b6eaf95dbcbcdc39952feb")
@akhenakh
akhenakh / set.go
Created November 3, 2017 18:15
Simple set for Go, could be any type
var exists = struct{}{}
type int64Set struct {
m map[int64]struct{}
}
type stringSet struct {
m map[string]struct{}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@akhenakh
akhenakh / PKGBUILD
Last active January 18, 2018 12:42
aruco opentrack arch
pkgname=opentrack-aruco-git
pkgver=r44.2adf990
pkgrel=1
pkgdesc="Augmented reality library based on OpenCV"
arch=('i686' 'x86_64')
url="https://www.uco.es/investiga/grupos/ava/node/26"
license=('BSD')
depends=(opencv)
makedepends=(cmake)
source=("git+https://github.com/opentrack/aruco.git#commit=2adf990b93742593a06df699ed32c20a9796b434")
@akhenakh
akhenakh / PKGBUILD
Created January 18, 2018 12:41
opentrack with aruco for X-Plane
# Maintainer: Maxime Morel <[email protected]>
pkgname=opentrack-git
pkgver=r4730
pkgrel=1
pkgdesc="An application dedicated to tracking user's head movements and relaying the information to games and flight simulation software"
arch=('i686' 'x86_64')
url="https://github.com/opentrack/opentrack/"
license=('GPL3')
depends=('qt5-base' 'opencv')
@akhenakh
akhenakh / PKGBUILD
Created January 18, 2018 16:44
s2 geometry arch AUR pkg
# Maintainer: Fabrice aneche <[email protected]>
pkgname=s2geometry-git
pkgver=r136
pkgrel=1
pkgdesc="Computational geometry and spatial indexing on the sphere"
arch=('i686' 'x86_64')
url="https://s2geometry.io/"
license=('APACHE2')
depends=('openssl-1.0' 'gflags' 'google-glog' 'python')
@akhenakh
akhenakh / recover.sh
Last active April 1, 2018 02:31
Recover from convert
#find ./ -name '*.jpg' -exec bash -c '[ ! -f "/home/akh/GIS/tex/${0//jpg/}dds" ]' {} \; -exec bash -c 'convert "$0" /home/akh/GIS/tex/"${0%.jpg}.dds"' {} \; -ls
find ./ -name '*.jpg' -exec bash -c '[ ! -f "/home/akh/GIS/tex/${0//jpg/}dds" ]' {} \; -print | xargs parallel convert {} /home/akh/GIS/tex/{.}.dds
@akhenakh
akhenakh / PKGBUILD
Created June 27, 2018 05:43
patched qtmultimedia to support non interlaced camera via gstreamer see https://blog.nobugware.com/post/2018/my_own_car_system_raspberry_pi_offline_mapping/
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
# Maintainer: Felix Yan <[email protected]>
# Contributor: Andrea Scarpino <[email protected]>
pkgname=qt5-multimedia
_qtver=5.11.1
pkgver=${_qtver/-/}
pkgrel=1
arch=('x86_64' 'armv7h')
url='http://qt-project.org/'
@akhenakh
akhenakh / localkube.sh
Last active November 19, 2018 16:26
Kubernetes minikube native on Linux
cd $HOME
# clean up previous installations
docker system prune -af
sudo rm -rf /data/minikube .minikube .kube /root/.minikube /root/.kube /var/lib/kubelet /var/lib/kubeadm.yaml /etc/kubernetes /var/lib/minikube
export CHANGE_MINIKUBE_NONE_USER=true
sudo -E minikube start --vm-driver=none
minikube dashboard