On a centos7
# The service file for docker.service, on a centos7
service_file=/lib/systemd/system/docker.service
#!/usr/bin/env bash | |
# Generate 20GB file of random data in /dev/shm (~ramdisk) | |
time openssl enc -aes-256-ctr \ | |
-pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" \ | |
-nosalt < /dev/zero 2>/dev/null | | |
dd bs=4M \ | |
count=5120 \ | |
status=progress \ | |
iflag=fullblock \ |
test: mpitest | |
mpirun -np 2 ./mpitest | |
mpitest: mpitest.c | |
mpicc mpitest.c -o mpitest | |
clean: | |
rm mpitest |
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) |
#!/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" |
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 |
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" \
Links:
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: