Compare commits

...

4 Commits

Author SHA1 Message Date
saundersp
43ce3ac0dd Added 'set -e' safe guards to colours.sh, pull.sh and status.sh 2025-07-30 11:38:58 +02:00
saundersp
91380fdc13 README.md : Replaced format_bytes_str with format_bytes from saundersp-toolbox 2025-07-30 11:34:32 +02:00
saundersp
7fc8641a1b docker_build : Renamed 3d-playground to Byron 2025-07-16 00:23:46 +02:00
saundersp
b021a14447 Added compare_world.sh 2025-07-16 00:23:29 +02:00
6 changed files with 17 additions and 2 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