Skip to content

Instantly share code, notes, and snippets.

View nmaupu's full-sized avatar

Nicolas Maupu nmaupu

View GitHub Profile
@nmaupu
nmaupu / README.md
Created November 14, 2024 12:51
Manual xmonad compilation from source with 'stack'

Manual compilation

mkdir -p ~/.config/xmonad
# Create ~/.config/xmonad/xmonad.hs
cd ~/.config/xmonad
git clone https://github.com/xmonad/xmonad
git clone https://github.com/xmonad/xmonad-contrib
stack init
stack install
@nmaupu
nmaupu / README.md
Last active October 14, 2023 18:28
Neon AI - make it work under Raspberry Pi 4 with respeaker 4-mics hat

SD Card creation

  • Download the "recommended mark ii" image

  • Uncompress it

unxz /path/to/img
  • Burn it to your sdcard (replace of param with the correct device):
@nmaupu
nmaupu / gist:16f648cbfe8f119de1d80a90b94431f4
Last active October 9, 2020 20:17
trim wheel arduino test
// Using Spad.next serial capabilities
#include <CmdMessenger.h> // CmdMessenger
#include <stdio.h>
#define GUID "{65472db3-e462-4525-9a40-3eb584dd14c8}"
#define CMD_REQUEST 0
#define CMD_COMMAND 1
#define CMD_EVENT 2
#define CMD_DEBUG 3
#define CMD_SIM_COMMAND 4

Creality CR10 V2

Hardware

  • atmega 2560 (same as arduino mega)

Firmware

Marlin forked and configured from this repo (/!\ branch 2.0.x-CR10V2).

@nmaupu
nmaupu / gist:10d4d766e6b900def4201269e8406f92
Created June 27, 2020 10:46
Mac OS command line cheatsheet
# Allow any sources for app
sudo spctl --master-disable
/**
* Base on the following tutorial
* https://playground.arduino.cc/Code/ShiftRegSN74HC165N
*/
/**
* I/O pins
*/
#define PLOAD_PIN 4 // 4 (8 on tutorial) - PD4
#define CLOCK_ENABLE_PIN 5 // 5 (9 on tutorial) - PD5
### Keybase proof
I hereby claim: * I am nmaupu on github. * I am nmaupu (https://keybase.io/nmaupu) on keybase. * I have a public key ASDDQxphlJcWGXaoT3bArZLW2F1VwPaB0078AzS02KrZhQo
To claim this, I am signing this object:
```json
{ "body": { "key": { "eldest_kid": "0120c3431a619497161976a84f76c0ad92d6d85d55c0f681d34efc0334b4d8aad9850a", "host": "keybase.io", "kid": "0120c3431a619497161976a84f76c0ad92d6d85d55c0f681d34efc0334b4d8aad9850a", "uid": "d58aeeb0f537097d9cb0c52511e21619", "username": "nmaupu" }, "merkle_root": { "ctime": 1527949855, "hash": "7ba5a9a85adf6f5ee206e45117f00158e7f234d6b4cdf793ddec43045727e78c58a46eb49000b1d8ae83657c99417c8e4a4b33740917ab988621712fd99ee2ed", "hash_meta": "0e10413dfc8fc508a67a2239138f14f6757cfeba95a96f814dac54719a19efdb", "seqno": 2981349 }, "service": { "entropy": "lmgZ1tTtMNefRXQVvQZmFYLt", "name": "github", "username": "nmaupu" }, "type": "web_service_binding

Booting from USB under virtualbox

List all disks:

$ diskutil list
[...]
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
 0: FDisk_partition_scheme *8.0 GB disk2
@nmaupu
nmaupu / create-debian-usb-key.sh
Last active February 11, 2024 14:34
Create Debian USB key automatic installation (preseed)
#!/usr/bin/env bash
set -e -x -o pipefail
DIRNAME="$(dirname $0)"
DISK="$1"
: "${DEBIAN_RELEASE:=stretch}"
: "${DEBIAN_VERSION:=9.2.1}"
: "${DEBIAN_MIRROR:=http://ftp.debian.org}"
@nmaupu
nmaupu / bootstrap-work.sh
Last active November 8, 2017 14:34
Bootstrap work machine
# From master branch
wget -O - https://raw.githubusercontent.com/nmaupu/auto-home/master/scripts/provision-work.sh | bash
# From a specific branch (testing)
wget -O - https://raw.githubusercontent.com/nmaupu/auto-home/work/scripts/provision-work.sh | env BRANCH=work bash