Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Fabrice Aneche akhenakh

🏠
Working from home
Block or report user

Report or block akhenakh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@akhenakh
akhenakh / .vimrc
Created Dec 17, 2018
curent plugins and config
View .vimrc
" install vim-plug
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
call plug#begin('~/.vim/plugged')
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
Plug 'zchee/deoplete-go', { 'do': 'make'}
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
@akhenakh
akhenakh / _INSTALL.md
Last active Nov 19, 2018
go-spew pretty printer for Golang
View _INSTALL.md
$ go get -u github.com/davecgh/go-spew/spew

In VS Code, go to Preferences > User Snippets > Go and add go.json sd snippet.

type sd to use the snippet

package main
@akhenakh
akhenakh / install-arch.sh
Created Nov 14, 2018
Install Arch Linux on OSX with xhyve
View install-arch.sh
#!/bin/bash
#
# Usage
# install-arch.sh ./archlinux-2018.11.01-x86_64.iso
# first you neeed to patch xhyve with this
# index 61aeebb..39a9c4b 100644
# --- a/src/firmware/kexec.c
# +++ b/src/firmware/kexec.c
# @@ -185,6 +185,7 @@ kexec_load_ramdisk(char *path) {
@akhenakh
akhenakh / MJPEGViewController.m
Created Nov 2, 2018
query a static image camera and animate it
View MJPEGViewController.m
//
// MJPEGViewController.m
// iMocs
//
// Created by akh on 2018-10-29.
// Copyright ? 2018 akh. All rights reserved.
//
#import "MJPEGViewController.h"
View MJPEGViewController.m
#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
View MJPEGViewController.m
//
// 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 Nov 19, 2018
Kubernetes minikube native on Linux
View localkube.sh
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 Jun 27, 2018
patched qtmultimedia to support non interlaced camera via gstreamer see https://blog.nobugware.com/post/2018/my_own_car_system_raspberry_pi_offline_mapping/
View PKGBUILD
# $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 Apr 1, 2018
Recover from convert
View recover.sh
#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 Jan 18, 2018
s2 geometry arch AUR pkg
View PKGBUILD
# 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')
You can’t perform that action at this time.