- Bambulab printer (A1 mini, A1, P1P, P1S, X1, X1C, X1E).
- Home Assistant with experience how to use it.
- Google account (i.e. Gmail)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright 2024 Marc-Antoine Ruel | |
# Original at https://gist.github.com/maruel/ffbcd83f204561346bbe3cc51682e7af | |
# | |
# Merges mp4 from Tesla Sentry into 4 videos files: front.mp4, back.mp4, | |
# left_repeater.mp4, right_repeater.mp4. Overlay the timestamp on the video. | |
# | |
# Usage: | |
# - Install ffmpeg. | |
# - Copy all the files from your Tesla Sentry USB key in a directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: '123' | |
alias: 'Salle chauffage: Exhaust on' | |
description: '' | |
trigger: | |
- platform: numeric_state | |
entity_id: | |
- sensor.x1c_vitesse_du_ventilateur_de_refroidissement | |
above: 0 | |
- platform: numeric_state | |
entity_id: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abgib | |
abvondel | |
acho | |
aco | |
acoqu | |
ada | |
agcid | |
agcoch | |
aikligpyu | |
aip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abawmein | |
abmeipi | |
abtalv | |
abwobwafs | |
abwub | |
aciktinyi | |
aciorleu | |
acirc | |
ackuiva | |
acshathjax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/sha1" | |
"crypto/sha256" | |
"crypto/sha512" | |
"fmt" | |
"hash" | |
"testing" |
NewerOlder