Compare commits

..

5 Commits

7 changed files with 21 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ docker images --format='{{.Repository}};{{.Tag}};{{.ID}}' | grep '<none>;<none>'
# Get all used images tag in dir $PATH_ANALYSE
find $PATH_ANALYSE -name 'Dockerfile*' | while read file; do cat $file; echo ''; done | grep -e FROM | cut -d ' ' -f 2 | sed $'s/[^[:print:]\t]//g' | sort -u | xargs -n1 docker pull
# Calculate total docker images size
docker images --format {{.ID}} | xargs -n1 docker inspect | jq '.[0]["Size"]' | paste -sd + | bc | format_bytes_str
docker images --format {{.ID}} | xargs -n1 docker inspect | jq '.[0]["Size"]' | paste -sd + | bc | format_bytes
```
## Remove every user R packages

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -e
# Print out escape sequences usable for coloured text on tty.
# shellcheck disable=2016
printf 'Colour escapes are %s\n' '\e[${value};...;${value}m'

9
compare_world.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
rsync mainpc:/var/lib/portage/world /tmp/mainpc
rsync streampc:/var/lib/portage/world /tmp/streampc
cp /var/lib/portage/world /tmp/framework
exec nvim -d /tmp/framework /tmp/mainpc /tmp/streampc

View File

@@ -44,7 +44,7 @@ if ! rc-service docker status > /dev/null; then
return 1
fi
build /home/_aspil0w/git/3d-playground
build /home/_aspil0w/git/Byron
build /home/_aspil0w/git/CoverLetter
build /home/_aspil0w/git/CurriculumVitae
build /home/_aspil0w/git/dotfiles

View File

@@ -1,5 +1,7 @@
#!/bin/sh
set -e
__r__(){
end="$1"
for _ in $(seq 1 "$end"); do

View File

@@ -1,5 +1,7 @@
#!/bin/sh
set -e
__r__(){
end="$1"
for _ in $(seq 1 "$end"); do

View File

@@ -1,5 +1,7 @@
#!/bin/sh
set -e
repeat_char(){
end="$1"
for _ in $(seq 1 "$end") ; do
@@ -15,7 +17,8 @@ header(){
VENV_PATH='./.venv'
python3.12 -m venv --upgrade-deps "$VENV_PATH"
python -m venv --upgrade-deps "$VENV_PATH"
# shellcheck disable=1091
if [ -f "$VENV_PATH"/Scripts/activate ]; then . "$VENV_PATH"/Scripts/activate
elif [ -f "$VENV_PATH"/bin/activate ]; then . "$VENV_PATH"/bin/activate
else exit 1; fi