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:
| perl -le 'print "─"x80' | |
| printf "%80s" " " | tr ' ' '-'; echo | |
| printf "─%.0s" $(seq 1 80); echo |
| ( | |
| echo -e "Name\tPID\tSwap\n----\t---\t----" | |
| for file in /proc/*/status; do | |
| awk '/^(VmSwap|Name|Pid):/{printf $2 " " $3}END{ print ""}' $file 2>/dev/null | |
| done | sort -k 3 -n -r | head -20 | |
| ) | column -t |
| #!/bien/env bash | |
| SRC=https://download.docker.com/linux/centos/7/x86_64/stable/Packages/ | |
| rm -rf /tmp/centos7 | |
| mkdir -p /tmp/centos7 | |
| cd /tmp/centos7 | |
| curl -s $SRC | \ | |
| perl -MSort::Versions -nle ' |
| #!/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" |