Skip to content

Instantly share code, notes, and snippets.

View frett27's full-sized avatar

Patrice Freydiere frett27

View GitHub Profile

Le problème XY (XY Problem) peut survenir lorsqu'une personne demande de l'aide sur la résolution d'un problème à d'autres personnes.

C'est un blocage mental aboutissant généralement à de grosses pertes de temps et d'énergie que cela soit pour la personne demandant de l'aide que pour ceux qui en proposent.

Généralement le schéma est le suivant :

  • L'utilisateur veut faire X.
  • L'utilisateur ne sait pas comment faire X mais pense qu'il pourra obtenir une solution s'il commence par faire Y.
  • L'utilisateur ne sait aussi pas faire Y.
  • L'utilisateur demande de l'aide pour faire Y.
{
"ociVersion": "1.0.2-dev",
"root": {
"path": "rootfs",
"readonly": true
},
"mounts": [
{
"destination": "/proc",
"type": "proc",
mkdir -p tutorial/rootfs
cd tutorial
docker export $(docker create busybox) | tar -C rootfs -xvf -
../../youki/youki spec
edit args
@frett27
frett27 / README.md
Created January 7, 2023 12:03 — forked from ralfstx/README.md
Cross-compiling for ARM with musl

Cross-compiling for ARM with musl

I'm using the target arm-linux-musleabihf for ARM v6 (Raspberry Zero is v6) with musl and hard float.

Build a cross compiler

Following instructions from Rust (and C) Cross Compilation for the Raspberry Pi.

Create an output directory:

use std::thread;
use std::time;
use tokio::runtime::Handle;
use tokio::sync::mpsc::*;
#[derive(Debug, Clone)]
struct Message {
_i : i32
}
@frett27
frett27 / ros.nix
Last active January 4, 2022 17:19
ROS Nix
## use the environment
nix-shell -I nix-ros-overlay=https://github.com/lopsided98/nix-ros-overlay/archive/master.tar.gz '<nix-ros-overlay/examples/turtl
ebot3-gazebo.nix>'
nix-shell -I nix-ros-overlay=./nix-ros-overlay ros2.nix
@frett27
frett27 / winvm.md
Created August 15, 2021 09:09 — forked from rpavlik/winvm.md
Windows Dev VM in libvirt

One time

  • Build rhsrvany using a windows toolchain like i686-w64-mingw32, and put the resulting rhsrvany.exe and pnp_wait.exe in /usr/share/virt-tools
    • git clone https://github.com/rwmjones/rhsrvany.git
    • cd rhsrvany
    • autoreconf -i -f
    • ./configure --build=i686-w64-mingw32
    • make
  • sudo mkdir -p /usr/share/virt-tools
@frett27
frett27 / .vimrc
Last active November 28, 2020 23:34
Vim plugin & RC
let g:coc_node_path = '/usr/bin/node'
call plug#begin('~/.vim/plugged')
" Use release branch (recommend)
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Initialize plugin system
@frett27
frett27 / socket_task.c
Created October 20, 2020 19:58 — forked from Micrified/socket_task.c
A task that manages sockets
#include "socket_task.h"
/*
*******************************************************************************
* Symbolic Constants *
*******************************************************************************
*/
@frett27
frett27 / Makefile
Created September 13, 2020 18:14
Freenect and kinect 360 connection, and compile, modified code to make it work with opencv4 and freeenect
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 `pkg-config opencv4 --cflags` -I /usr/include/libusb-1.0
OBJS = freenectopencvmat.o
LIBS = `pkg-config opencv4 --libs` -lfreenect -lpthread
TARGET = kinectopencv
$(TARGET):$(OBJS)
$(CXX) -o $(TARGET) $(OBJS) $(LIBS)
all:$(TARGET)
clean:
rm -f $(OBJS) $(TARGET)