Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View maruel's full-sized avatar
🐢
Deleting PiB of data.

M-A maruel

🐢
Deleting PiB of data.
View GitHub Profile
@maruel
maruel / README.md
Last active April 18, 2024 13:57
Steps to connect your spools' remaining filament in the AMS to a Google Sheet

AMS to GSheet

Prerequisites

  • Bambulab printer
  • Home Assistant with experience how to use it.
  • Google account (i.e. Gmail)

Steps

https://man7.org/linux/man-pages/man1/dd.1.html
dd bs=4M if=/dev/nvme2n1 of=/dev/nvme1n1 conv=noerror status=progress
BAD 4M blocks:
565+1 (1.8GiB)
580+2 (2.2GiB)
1639+3 (6.3GiB)
241689+4 (944GiB)
@maruel
maruel / filter.sh
Created June 20, 2022 18:38
Filter periph.io old repository into new repositories.
#!/bin/bash
# This script requires https://github.com/newren/git-filter-repo/ to be in PATH.
PATH=$HOME/src-oth/git-filter-repo:$PATH
set -eux
function makepkg {
PKG=$1
shift
@maruel
maruel / install_cuda_libcudnn.sh
Last active November 6, 2021 14:46
Script to install CUDA and libcudnn on Ubuntu 20.04
#/bin/bash
# Copyright 2021 Marc-Antoine Ruel. No rights reserved.
# Official version at https://gist.github.com/maruel/e99622298891cc856044e8c158a83fdd
#
# Used the following as reference:
# - https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_network
# - https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html
# - https://youtu.be/BXFGEGO8UY0
#
# I recommend looking at all 3 references before moving on.
@maruel
maruel / gist:9bdc6b9a2fc16321b608fecd5fdb1996
Created May 20, 2021 14:35
apg -m 3 -M l -n 1000 | sort
abgib
abvondel
acho
aco
acoqu
ada
agcid
agcoch
aikligpyu
aip
@maruel
maruel / gist:1dc9db50994f98b0f85280c6a7d88c9d
Created May 20, 2021 14:34
apg -m 5 -M l -n 1000 | sort
abawmein
abmeipi
abtalv
abwobwafs
abwub
aciktinyi
aciorleu
acirc
ackuiva
acshathjax
@maruel
maruel / checkout.sh
Last active December 22, 2020 16:45
Checking out chromium release branch from scratch on Ubuntu 20.04
#!/bin/bash
# Ref:
# https://chromium.googlesource.com/chromium/src/+/master/docs/#checking-out-and-building
#
# Note: the instructions say to use "fetch --nohooks chromium" but we'll do it
# manual here since we want to fetch the minimal amount of data and fetch a
# release branch instead of the tip of tree.
set -eux
package main
import (
"crypto/sha1"
"crypto/sha256"
"crypto/sha512"
"fmt"
"hash"
"testing"
@maruel
maruel / keybase.md
Created April 5, 2019 18:47
keybase.md

Keybase proof

I hereby claim:

  • I am maruel on github.
  • I am maruel (https://keybase.io/maruel) on keybase.
  • I have a public key whose fingerprint is 1073 4F99 C193 E7EA 1FEC 6956 354C 0048 D089 FD48

To claim this, I am signing this object:

@maruel
maruel / gist:2d47f0ad858ad196f69f60e21eab35d0
Created April 28, 2018 18:34
periph.io beaglebone green
$ go install ./periph-info ./headers-list && headers-list && periph-info
I2C: 4 pins
Pos Name Func
1 GROUND
2 V3_3
3 GPIO12 In/Low
4 GPIO13 In/Low
J1: 6 pins
Pos Name Func