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 / MJPEGViewController.m
Created November 1, 2018 00:52
MJPEG player on iOS
#import "MJPEGViewController.h"
@interface MJPEGViewController ()
- (IBAction)reloadTouched:(id)sender;
@property (weak, nonatomic) IBOutlet UIView *connectedView;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property( strong, nonatomic) NSMutableData *buffer;
@property(strong, nonatomic) NSURLConnection *conn;
@end
@akhenakh
akhenakh / MJPEGViewController.m
Created October 30, 2018 01:42
MJPEG View Controller
//
// MJPEGViewController.m
// iMocs
//
// Created by akh on 2018-10-29.
// Copyright ? 2018 akh. All rights reserved.
//
#import "MJPEGViewController.h"
@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
@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 <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=qt5-multimedia
_qtver=5.11.1
pkgver=${_qtver/-/}
pkgrel=1
arch=('x86_64' 'armv7h')
url='http://qt-project.org/'
@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 January 18, 2018 16:44
s2 geometry arch AUR pkg
# Maintainer: Fabrice aneche <akh@nobugware.com>
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 / PKGBUILD
Created January 18, 2018 12:41
opentrack with aruco for X-Plane
# Maintainer: Maxime Morel <maxime@mmorel.eu>
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
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")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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{}
}