Skip to content

Instantly share code, notes, and snippets.

View sapk's full-sized avatar
🕵️‍♂️
One bug at a time

Antoine GIRARD sapk

🕵️‍♂️
One bug at a time
View GitHub Profile
@sapk
sapk / debug-on-manjaro.md
Last active November 15, 2022 07:48
debug usb-c hub hdmi on pinebook pro with majaro arm

Few dump similar to https://bbs.archlinux.org/viewtopic.php?id=243953

[sapk@pbp ~]$ lsusb -t
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
tar -I pigz -cvpf backup.tar.gz --exclude=/backup.tar.gz --exclude=/lib --exclude=/lib64 --exclude=/usr --exclude=/var/cache --one-file-system /
FROM gitea/gitea
RUN apk --no-cache add git qt5-qtbase qt5-qtmultimedia libstdc++ build-base bison cmake libx11-dev mesa-dev libxmu-dev libxi-dev glew-dev freeglut-dev glib-dev glib glu glu-dev gettext gettext-dev gettext-libs
WORKDIR /
RUN git clone --depth=5 git://github.com/openscad/openscad.git
WORKDIR /openscad
$fn=20;
diam=35; //Size of handle
tol=0.05;
ep=0.6+tol; //
/*
scale([1,1,0.85]) intersection() {
translate([-(diam+ep)/2,-(diam+ep)/2,0]) cube(diam+ep*2);
difference() {
sphere(d = diam+ep*2);
@sapk
sapk / signal.c
Last active March 10, 2019 22:47
// Based on NeoPixel Ring simple sketch (c) 2013 Shae Erisson
// released under the GPLv3 license
#include <Adafruit_NeoPixel.h>
// Which pin on the Digispark is connected to the DigiLED?
#define PIN 3
// How many DigiLEDs are attached to the Digispark?
#define NUMPIXELS 2
//go run fetch-dn.go > dn.log
package main
import (
"fmt"
"log"
"math/rand"
"strings"
"time"
version: '2'
services:
some_container:
image: ubuntu
command: sleep infinity
networks:
- web
whoami:
image: emilevauge/whoami
@sapk
sapk / .d3v4-selectable-force-directed-graph
Created July 12, 2017 10:06 — forked from pkerpedjiev/.d3v4-selectable-force-directed-graph
D3v4 Selectable, Draggable, Zoomable Force Directed Graph
.
@sapk
sapk / SelectableForceDirectedGraph
Created July 12, 2017 09:03 — forked from pkerpedjiev/ SelectableForceDirectedGraph
D3 Selectable Force-Directed Graph
.
package main
import (
"log"
"os"
"time"
"github.com/reiver/go-oi"
"github.com/reiver/go-telnet"
)