fixup! feat: switched from exa → eza, added git-delta
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
5aa2580ef7
commit
e821b91403
2 changed files with 0 additions and 2 deletions
18
cleanup.sh
Normal file
18
cleanup.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#! /bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
rm -rf /root/.cache /root/.rnd
|
||||
find /tmp -type d -name 'systemd-*-systemd-timesyncd.service*' -exec rm -rf '{}' '+'
|
||||
find /var/tmp -type d -name 'systemd-*-systemd-timesyncd.service*' -exec rm -rf '{}' '+'
|
||||
find /var/lib/apt -type f -delete
|
||||
find /var/cache/apt -type f -delete
|
||||
find /var/log -type f -regextype posix-extended -regex '.*\.(gz|xz|[0-9])' -delete
|
||||
truncate -s0 "$HOME"/.bash_history
|
||||
[ -w "$HOME"/.zsh_history ] && truncate -s0 "$HOME"/.zsh_history
|
||||
find /var/log -type f -exec truncate -s0 '{}' '+'
|
||||
dd if=/dev/zero of=/emptyfile oflag=dsync status=progress bs=4M;
|
||||
rm -f /emptyfile;
|
||||
systemctl poweroff
|
Loading…
Add table
Add a link
Reference in a new issue