Skip to content

Instantly share code, notes, and snippets.

@GallaisPoutine
GallaisPoutine / secret_santa.scad
Created December 11, 2023 16:38
Secret santa
include <BOSL2/std.scad>
$fn = $preview ? 32: 128;
thickness = 2;
width = 65;
height = 85;
clearance = 1;
bottom_height = 40;
cube_size = 50;
@GallaisPoutine
GallaisPoutine / handle.scad
Created November 7, 2023 15:33
Poignée pour cage à chat
include <BOSL2/std.scad>
include <BOSL2/screws.scad>
$fn = $preview ? 32: 128;
diff()
cyl(l=2, d=37, rounding1=1) {
position(TOP)
cyl(l=10, d1=37, d2=22, anchor=BOTTOM) {
@GallaisPoutine
GallaisPoutine / bouchon.scad
Last active October 28, 2023 11:14
Bouchon pour gourde
include <BOSL2/std.scad>
$fn = $preview ? 32: 128;
diff()
zcyl(d = 38.7, h = 3.1) {
position(TOP)
zcyl(d = 41.8, h = 1.5, anchor = BOTTOM)
{
position(TOP)
@GallaisPoutine
GallaisPoutine / box.scad
Last active January 21, 2024 15:14
BOSL2 version of a box
include <BOSL2/std.scad>
include <BOSL2/screws.scad>
OVERLAP=0.01;
clearance = 0.5;
small_clearance = 0.25;
wall_thickness = 1.8;
line_width = 0.4;
first_line_height = 0.3;
@GallaisPoutine
GallaisPoutine / .bashrc
Last active May 21, 2024 17:35
Bashrc for my embedded devices
# Bashrc for stm32mp devices
#
# In order for this bashrc to be effetive two things need to be checked
# 1) Bash is default shell -> chsh -s /bin/bash
# 2) .bashrc is sourced on login -> echo ". ~/.bashrc" >> /etc/profile
#
# See default_shell for automated check of this
# /!\ WARNING /!\ NOT TESTED
# default_shell() {
@GallaisPoutine
GallaisPoutine / .vimrc
Last active October 3, 2022 13:59
My vimrc
set nocompatible " be iMproved, required
filetype off " required
"-------------------------------------------------------------------------------------------------"
" PLUGINS
"-------------------------------------------------------------------------------------------------"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
@GallaisPoutine
GallaisPoutine / read_serial.c
Last active December 6, 2019 11:45
Read data from serial port, format the data gathered and store it into a .gac file
/** Compiled with symbols
* gcc -g read_serial.c -o read_serial -DDEBUG
*/
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>