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 / jaeger.yaml
Created February 21, 2019 18:47
Jaeger all in one for development for Kubernetes from https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml modified to use an ingress
#
# Copyright 2017-2019 The Jaeger Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
@akhenakh
akhenakh / .vimrc
Created December 17, 2018 13:20
curent plugins and config
" 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 November 19, 2018 14:29
go-spew pretty printer for Golang
$ 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 November 14, 2018 18:34
Install Arch Linux on OSX with xhyve
#!/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 November 2, 2018 11:36
query a static image camera and animate it
//
// MJPEGViewController.m
// iMocs
//
// Created by akh on 2018-10-29.
// Copyright ? 2018 akh. All rights reserved.
//
#import "MJPEGViewController.h"
@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 <[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 / 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