How to configure the keyboard on Debian in order
for capslock to function like on Windows, using a
french Apple Keyboard (French (Macintosh)
).
Solution found here, adapted for my old french Macbook Air.
Configuration file to create:
#!/usr/bin/env bash | |
export LC_ALL=C | |
CLEAR="\e[0;m" | |
RED="\e[1;31m" | |
GREEN="\e[1;32m" | |
YELLOW="\e[1;33m" | |
UP="\e[1A" # Move cursor one line up | |
CL="\r$(printf %$(tput cols)s)\r" # Clear line |
How to configure the keyboard on Debian in order
for capslock to function like on Windows, using a
french Apple Keyboard (French (Macintosh)
).
Solution found here, adapted for my old french Macbook Air.
Configuration file to create:
Links:
From: https://www.shellhacks.com/git-verbose-mode-debug-fatal-errors/
Debug Git command:
GIT_TRACE=true \
GIT_CURL_VERBOSE=true \
GIT_SSH_COMMAND="ssh -vvv" \
write_message() { | |
local message | |
message=" ${*} " | |
__write() { | |
local reset col_bg col_fg | |
reset="$(tput sgr0)" | |
col_bg="$(tput setab 4)" | |
col_fg="$(tput setaf 0)" | |
[[ "${2-}" == "--no-background" ]] && unset col_bg | |
tput sc |
#!/usr/bin/env bash | |
# Short script to mute/unmute mic; to associate to a keyboard shortcut | |
icon="audio-input-microphone-symbolic" | |
state=$(amixer set Capture toggle | awk 'match($0, /Front Left.*\[(.*)\]/, a) {print a[1]}') | |
# On Debian/Ubuntu/...: apt-get install libnotify-bin | |
which notify-send &>/dev/null && notify-send --hint=int:transient:1 -i $icon "Mic switched: $state" | |
echo -e "\nMic switched: $state\n" |
GW=$(</proc/net/route awk 'NR==2 {print $3}' | sed -E 's/(..)/\1 /g' | if read a b c d; then printf '%d.%d.%d.%d' 0x$d 0x$c 0x$b 0x$a; fi) |
test: mpitest | |
mpirun -np 2 ./mpitest | |
mpitest: mpitest.c | |
mpicc mpitest.c -o mpitest | |
clean: | |
rm mpitest |