Compare commits
44 Commits
master
..
52e029602c
| Author | SHA1 | Date | |
|---|---|---|---|
| 52e029602c | |||
| d187a2870d | |||
| f6d786cf37 | |||
| f07885a997 | |||
| 7146741005 | |||
| 641175e365 | |||
| f024379c64 | |||
| f4a48d7f8a | |||
| 1e9efe1d56 | |||
| a68dcaf784 | |||
| 8fa9a66ef3 | |||
| f3141f85c0 | |||
| 6614722246 | |||
| 73473b3c05 | |||
| 759792da66 | |||
| fdcc2bd369 | |||
| 17a3a6a147 | |||
| 77ad52f31d | |||
| fb4feef7aa | |||
| 3012e354cd | |||
| 38ae30a5cd | |||
| d31e0651cb | |||
| 01bf1a804d | |||
| 4c1700b2c4 | |||
| 4f2093042a | |||
| fc7dc0c9e2 | |||
| 18fb933a84 | |||
| b107998b5b | |||
| 71876b6afb | |||
| 95f4bfb6db | |||
| ebed5ccb2f | |||
| bbd04fd66a | |||
| 7a5c3a66e2 | |||
| bf2ea53cf9 | |||
| df69aface3 | |||
| 8df85821b4 | |||
| 1faa2204dc | |||
| d724ee2a58 | |||
| d96c2c4f99 | |||
| 60a35066df | |||
| 0481018500 | |||
| 9c74c4aab5 | |||
| 678c1c7998 | |||
| 548aa1f990 |
+30
-6
@@ -243,18 +243,33 @@ function git_perso {
|
|||||||
# ║ ╦│ │ ╠═╣│││├┤ │││ ││
|
# ║ ╦│ │ ╠═╣│││├┤ │││ ││
|
||||||
# ╚═╝┴ ┴ ╩ ╩┴ ┴└─┘┘└┘─┴┘
|
# ╚═╝┴ ┴ ╩ ╩┴ ┴└─┘┘└┘─┴┘
|
||||||
|
|
||||||
alias amend_pro="GIT_EDITOR=true git rebase --rebase-merges --exec 'git commit --amend --author=\"Robin-Charles GUIHENEUF <rguiheneuf@netatmo.com>\"' $1"
|
alias amend_pro="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles GUIHENEUF <rguiheneuf@netatmo.com>\"' $1"
|
||||||
alias amend_perso="GIT_EDITOR=true git rebase --rebase-merges --exec 'git commit --amend --author=\"Robin-Charles Guihéneuf <robin-charles@hotmail.fr>\"' $1"
|
alias amend_perso="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles Guihéneuf <robin-charles@hotmail.fr>\"' $1"
|
||||||
|
|
||||||
# ╦═╗┌─┐┌─┐┌─┐┌─┐┬┌┬┐┌─┐┬─┐┬┌─┐┌─┐
|
# ╦═╗┌─┐┌─┐┌─┐┌─┐┬┌┬┐┌─┐┬─┐┬┌─┐┌─┐
|
||||||
# ╠╦╝├┤ ├─┘│ │└─┐│ │ │ │├┬┘│├┤ └─┐
|
# ╠╦╝├┤ ├─┘│ │└─┐│ │ │ │├┬┘│├┤ └─┐
|
||||||
# ╩╚═└─┘┴ └─┘└─┘┴ ┴ └─┘┴└─┴└─┘└─┘
|
# ╩╚═└─┘┴ └─┘└─┘┴ ┴ └─┘┴└─┴└─┘└─┘
|
||||||
|
|
||||||
alias mulot='cd $HOME/mulot'
|
alias bc='cd $HOME/Netatmo/embedded/firmware-bitcloud'
|
||||||
alias moki='cd $HOME/mulot/moki'
|
alias fw='cd $HOME/Netatmo/embedded/firmware'
|
||||||
|
alias nmr='cd $HOME/Netatmo/embedded/nmr'
|
||||||
|
alias py='cd $HOME/Netatmo/core/python-emb-tools'
|
||||||
|
alias mag='cd $HOME/Netatmo/embedded/magellan'
|
||||||
|
alias nsp='cd $HOME/Netatmo/embedded/nsp'
|
||||||
|
alias nas='cd $HOME/Netatmo/embedded/nas'
|
||||||
|
alias npc='cd $HOME/Netatmo/embedded/npc'
|
||||||
|
alias mulot='cd $HOME/mulot/firmware'
|
||||||
|
|
||||||
# In editor
|
# In editor
|
||||||
alias c_moki='c $HOME/mulot/moki.code-workspace'
|
alias c_bc='c $HOME/Netatmo/firmware-bitcloud.code-workspace'
|
||||||
|
alias c_fw='c $HOME/Netatmo/firmware.code-workspace'
|
||||||
|
alias c_nmr='c $HOME/Netatmo/nmr.code-workspace'
|
||||||
|
alias c_py='c $HOME/Netatmo/python-emb-tools.code-workspace'
|
||||||
|
alias c_mag='c $HOME/Netatmo/magellan.code-workspace'
|
||||||
|
alias c_nsp='c $HOME/Netatmo/nsp.code-workspace'
|
||||||
|
alias c_nas='c $HOME/Netatmo/nas.code-workspace'
|
||||||
|
alias c_npc='c $HOME/Netatmo/npc.code-workspace'
|
||||||
|
alias c_mulot='c $HOME/mulot/mulot.code-workspace'
|
||||||
|
|
||||||
# SSH keygen
|
# SSH keygen
|
||||||
function ssh_keygen {
|
function ssh_keygen {
|
||||||
@@ -270,7 +285,7 @@ function ssh_keygen {
|
|||||||
|
|
||||||
# Flash sniffer nRF52
|
# Flash sniffer nRF52
|
||||||
function nrf52 {
|
function nrf52 {
|
||||||
arm-none-eabi-objcopy -O ihex build/bin/$1 $1.hex
|
arm-none-eabi-objcopy -O ihex output/nrf52840/bin/$1 $1.hex
|
||||||
nrfutil pkg generate --hw-version 52 --sd-req=0x00 --application $1.hex --application-version 1 $1.zip
|
nrfutil pkg generate --hw-version 52 --sd-req=0x00 --application $1.hex --application-version 1 $1.zip
|
||||||
|
|
||||||
if [ -z "$2" ]
|
if [ -z "$2" ]
|
||||||
@@ -317,9 +332,18 @@ fi
|
|||||||
# ║╣ ┌┴┬┘├─┘│ │├┬┘ │
|
# ║╣ ┌┴┬┘├─┘│ │├┬┘ │
|
||||||
# ╚═╝┴ └─┴ └─┘┴└─ ┴
|
# ╚═╝┴ └─┴ └─┘┴└─ ┴
|
||||||
|
|
||||||
|
export PATH=$PATH:~/Netatmo/core/embedded-tools/Linux/flasher
|
||||||
|
export PATH=$PATH:~/Netatmo/core/generic-embedded/stm32_sbm
|
||||||
|
export PATH=$PATH:~/Netatmo/core/generic-embedded/stm32_dfu
|
||||||
|
export PATH=$PATH:~/Netatmo/embedded/firmware-bitcloud/toolchain/arm-none-eabi/bin
|
||||||
|
export PATH=$PATH:~/Netatmo/embedded/nmr/scripts/flash
|
||||||
|
|
||||||
# Autofixup
|
# Autofixup
|
||||||
export PATH=$PATH:$HOME/.git-autofixup
|
export PATH=$PATH:$HOME/.git-autofixup
|
||||||
|
|
||||||
|
# Netatmo
|
||||||
|
export NETATMO_WORK_DIR=$HOME/Netatmo
|
||||||
|
|
||||||
# Cargo binaries (navi)
|
# Cargo binaries (navi)
|
||||||
export PATH=$PATH:$HOME/.cargo/bin
|
export PATH=$PATH:$HOME/.cargo/bin
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,12 @@ cargo install navi
|
|||||||
mkdir -p $HOME/.local/share/navi/cheats
|
mkdir -p $HOME/.local/share/navi/cheats
|
||||||
ln -sfn $HOME/.dotfiles/navi/ $HOME/.local/share/navi/cheats/vulporuza
|
ln -sfn $HOME/.dotfiles/navi/ $HOME/.local/share/navi/cheats/vulporuza
|
||||||
|
|
||||||
|
# Update pip
|
||||||
|
pip3 install --upgrade pip
|
||||||
|
|
||||||
|
# Install undervolt
|
||||||
|
sudo pip3 install undervolt
|
||||||
|
|
||||||
# Update npm
|
# Update npm
|
||||||
sudo npm install -g npm
|
sudo npm install -g npm
|
||||||
|
|
||||||
|
|||||||
+11
-4
@@ -7,11 +7,18 @@ fi
|
|||||||
# CLI Tools
|
# CLI Tools
|
||||||
$HOME/.dotfiles/auto-config-cli.sh
|
$HOME/.dotfiles/auto-config-cli.sh
|
||||||
|
|
||||||
sudo apt install terminator fonts-firacode
|
# Codium
|
||||||
|
if [ ! -f "/etc/apt/sources.list.d/vscodium.list" ]
|
||||||
|
then
|
||||||
|
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.gpg
|
||||||
|
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.gpg] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs/ vscodium main' | sudo tee /etc/apt/sources.list.d/vscodium.list
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p $HOME/.config/Code/User/
|
sudo apt install terminator codium fonts-firacode
|
||||||
ln -sf $HOME/.dotfiles/codium/keybindings.json $HOME/.config/Code/User/keybindings.json
|
|
||||||
ln -sf $HOME/.dotfiles/codium/settings.json $HOME/.config/Code/User/settings.json
|
mkdir -p $HOME/.config/VSCodium/User/
|
||||||
|
ln -sf $HOME/.dotfiles/codium/keybindings.json $HOME/.config/VSCodium/User/keybindings.json
|
||||||
|
ln -sf $HOME/.dotfiles/codium/settings.json $HOME/.config/VSCodium/User/settings.json
|
||||||
|
|
||||||
mkdir -p $HOME/.config/terminator/
|
mkdir -p $HOME/.config/terminator/
|
||||||
ln -sf $HOME/.dotfiles/terminator/config $HOME/.config/terminator/config
|
ln -sf $HOME/.dotfiles/terminator/config $HOME/.config/terminator/config
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
},
|
},
|
||||||
"C_Cpp.formatting": "Disabled",
|
"C_Cpp.formatting": "Disabled",
|
||||||
"C_Cpp.updateChannel": "Default",
|
"C_Cpp.updateChannel": "Default",
|
||||||
"powermode.enabled": false,
|
"powermode.enabled": true,
|
||||||
"powermode.enableExplosions": true,
|
"powermode.enableExplosions": true,
|
||||||
"powermode.maxExplosions": 1,
|
"powermode.maxExplosions": 1,
|
||||||
"editor.rulers": [
|
"editor.rulers": [
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
% docker-compose
|
% docker-compose
|
||||||
|
|
||||||
# Up a compose YAML
|
# Up a compose YAML
|
||||||
sudo docker compose -f <file> up
|
sudo docker-compose -f <file> up
|
||||||
|
|
||||||
# Up and daemonze a compose YAML
|
# Up and daemonze a compose YAML
|
||||||
sudo docker compose -f <file> up -d
|
sudo docker-compose -f <file> up -d
|
||||||
|
|
||||||
# Up and daemonze a compose YAML (force)
|
# Up and daemonze a compose YAML (force)
|
||||||
sudo docker compose -f <file> up -d --force-recreate
|
sudo docker-compose -f <file> up -d --force-recreate
|
||||||
|
|
||||||
# Down a compose YAML
|
# Up and daemonze a compose YAML
|
||||||
sudo docker compose -f <file> down
|
sudo docker-compose -f <file> down
|
||||||
|
|
||||||
# Print the last lines of compose YAML logs
|
# Print the last lines of compose YAML logs
|
||||||
sudo docker compose -f <file> logs --tail 100
|
sudo docker-compose -f <file> logs --tail 100
|
||||||
|
|
||||||
# Print the last lines of compose YAML logs and following its logs
|
# Print the last lines of compose YAML logs and following its logs
|
||||||
sudo docker compose -f <file> logs --tail 100 -f
|
sudo docker-compose -f <file> logs --tail 100 -f
|
||||||
|
|
||||||
$ file: ls *.yaml | awk '{print $1}'
|
$ file: ls *.yaml | awk '{print $1}'
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
% gpg
|
|
||||||
|
|
||||||
# GPG version
|
|
||||||
gpg --version
|
|
||||||
|
|
||||||
# GPG generate key
|
|
||||||
gpg --gen-key
|
|
||||||
|
|
||||||
# List keys
|
|
||||||
gpg --list-keys
|
|
||||||
|
|
||||||
# Export public key
|
|
||||||
gpg --output <filename> --export <gpg_public_keys>
|
|
||||||
|
|
||||||
# Export public key as ASCII
|
|
||||||
gpg --output <filename> --export --armor <gpg_public_keys>
|
|
||||||
|
|
||||||
# Import public key
|
|
||||||
gpg --import <gpg_files>
|
|
||||||
|
|
||||||
# Encrypt document
|
|
||||||
gpg --output <filename> --encrypt --recipient <gpg_public_keys> <files>
|
|
||||||
|
|
||||||
# Decrypt document
|
|
||||||
gpg --output <filename> --decrypt <files>
|
|
||||||
|
|
||||||
# Make a signature
|
|
||||||
gpg --output <signature_file> --sign <files>
|
|
||||||
|
|
||||||
# Verify signature
|
|
||||||
gpg --verify <files>
|
|
||||||
|
|
||||||
# Clearsign documents
|
|
||||||
gpg --clearsign <filename>
|
|
||||||
|
|
||||||
# Detach signature
|
|
||||||
gpg --output <filename_sig> --detach-sig <filename>
|
|
||||||
|
|
||||||
$ files: ls * | awk '{print $1}'
|
|
||||||
$ gpg_files: ls *.gpg | awk '{print $1}'
|
|
||||||
$ gpg_public_keys: gpg --list-keys | grep uid | sed 's/.*<\(.*\)>.*/\1/' | awk '{print $1}'
|
|
||||||
|
|
||||||
@@ -1,14 +1,18 @@
|
|||||||
[global_config]
|
[global_config]
|
||||||
window_state = maximise
|
window_state = maximise
|
||||||
scroll_tabbar = True
|
scroll_tabbar = True
|
||||||
|
title_inactive_bg_color = "#000000"
|
||||||
inactive_color_offset = 1.0
|
inactive_color_offset = 1.0
|
||||||
enabled_plugins = TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
|
enabled_plugins = TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
|
||||||
suppress_multiple_term_dialog = True
|
suppress_multiple_term_dialog = True
|
||||||
|
title_use_system_font = False
|
||||||
|
title_font = Fira Code weight=453 11
|
||||||
[keybindings]
|
[keybindings]
|
||||||
[profiles]
|
[profiles]
|
||||||
[[default]]
|
[[default]]
|
||||||
background_darkness = 0.7
|
background_darkness = 0.7
|
||||||
background_type = transparent
|
background_type = transparent
|
||||||
|
cursor_color = "#908c8c"
|
||||||
font = Fira Code weight=453 11
|
font = Fira Code weight=453 11
|
||||||
foreground_color = "#ffffff"
|
foreground_color = "#ffffff"
|
||||||
scrollback_infinite = True
|
scrollback_infinite = True
|
||||||
|
|||||||
Reference in New Issue
Block a user