Compare commits

...

34 Commits

Author SHA1 Message Date
3cfce92040 . 2025-11-20 21:01:50 +00:00
b18ad0cf17 . 2025-11-10 16:54:21 +00:00
5b221ea3d9 fix keys downloading issue 2025-10-31 16:40:41 +00:00
224150f2e1 first draft of taskfile clean 2025-10-21 22:24:07 +01:00
e77def4e91 fix typos 2025-10-21 21:41:48 +01:00
20a77e39f2 . 2025-10-18 13:14:39 +01:00
ab0ed67ba8 .
Some checks failed
build_push_container / build (3.20.0) (push) Failing after 33s
build_push_container / build (3.21.0) (push) Failing after 31s
build_push_container / build (3.22.0) (push) Failing after 30s
2025-10-18 12:47:24 +01:00
37d04bf109 . 2025-10-18 12:44:58 +01:00
9d4db0e672 .
Some checks failed
build_push_container / build (3.20.0) (push) Failing after 52s
build_push_container / build (3.21.0) (push) Failing after 34s
build_push_container / build (3.22.0) (push) Failing after 35s
CI Workflow / build_push (push) Failing after 4s
2025-10-18 12:24:11 +01:00
6e8880adbe typo
Some checks failed
build_push_container / build (3.21.0) (push) Failing after 2m51s
CI Workflow / build_push (push) Failing after 4s
build_push_container / build (3.20.0) (push) Failing after 13m15s
build_push_container / build (3.22.0) (push) Failing after 12m49s
2025-10-17 22:37:10 +01:00
3b4f1624f2 push reuseable workflow
Some checks failed
CI Workflow / build_push (push) Failing after 11m46s
build_push_container / build (3.22.0) (push) Failing after 12m1s
build_push_container / build (3.21.0) (push) Failing after 12m10s
build_push_container / build (3.20.0) (push) Failing after 12m20s
2025-10-17 22:02:07 +01:00
5043a3c293 . 2025-10-17 17:17:58 +01:00
4499205060 . 2025-09-02 21:54:13 +01:00
44c3451805 . 2025-09-02 21:47:11 +01:00
906422d16e . 2025-09-02 19:34:43 +01:00
a50f132120 . 2025-08-03 18:14:21 +01:00
b52a1734e1 . 2025-07-13 18:00:11 +01:00
aaecbd4775 . 2025-07-09 21:34:38 +01:00
35e9760c78 . 2025-07-04 17:42:01 +01:00
ca16530bc6 . 2025-06-17 17:11:58 +01:00
2ce9144060 . 2025-05-16 23:02:48 +01:00
f685cb7d2f . 2025-05-16 12:23:30 +01:00
fef03d4e96 . 2025-05-07 13:48:18 +01:00
00a78908f0 . 2025-05-05 12:08:30 +01:00
13b32535c3 . 2025-04-25 13:25:55 +01:00
d18de5e670 . 2025-04-03 20:42:24 +01:00
0f8cf2c787 . 2025-04-03 19:57:28 +01:00
0311119c96 . 2025-04-03 19:49:18 +01:00
9ab557813f . 2024-10-02 15:54:19 +01:00
dfe9b8c01a . 2024-09-29 20:39:47 +01:00
d4a52a608b . 2024-09-21 16:52:28 +01:00
06fb2d4411 . 2024-09-17 16:35:08 +01:00
3eca81c5bf . 2024-09-17 16:28:05 +01:00
49f71c4b38 . 2024-09-06 22:26:12 +01:00
12 changed files with 69 additions and 16 deletions

BIN
bin/jdupes Executable file

Binary file not shown.

BIN
bin/task Executable file

Binary file not shown.

View File

@ -9,5 +9,6 @@ ${BINARY} cli config defaults folder min-disk-free value set ${MINSPACE}
${BINARY} cli config defaults folder min-disk-free unit set GB
${BINARY} cli config options min-home-disk-free unit set GB
${BINARY} cli config options min-home-disk-free value set ${MINSPACE}
${BINARY} cli config options overwrite-remote-dev-names set true
rm -f ${TEMP1} ${TEMP2}

View File

@ -3,7 +3,11 @@
TEMP1=$(mktemp)
TEMP2=$(mktemp)
${BINARY} cli config devices ${myID} name set ${MYHOST}.${LOGNAME}
sleep 60
${BINARY} cli config devices ${myID} name set ${PREFIX}${MYHOST}.${LOGNAME}
sleep 60
grep -v ${myID} ${SHARE_LIST} > ${TEMP1}

View File

@ -1,6 +1,18 @@
#!/bin/sh
#
echo "SCRIPT $0 starting"
MEUID=`id -u`
if [ -t 1 ]
then
echo "interactive mode"
# echo ${MEUID} > /var/tmp/bbb
RUNNING_CRON=1
else
touch /var/tmp/aaa
# echo ${MEUID} > /var/tmp/aaa
RUNNING_CRON=0
fi
MYNAME=`uname -n`
@ -16,16 +28,16 @@ pull_repo () {
done
}
# if [ $USER = root ]
# then
if [ ${MEUID} = 0 ]
then
ZZ=/zz/*
pull_repo
# else
else
ZZ=~/git/private/z*
pull_repo
ZZ=~/git/public/z*
pull_repo
# fi
fi
exit 0

View File

@ -25,6 +25,7 @@ clone_repo () {
MYNAME=`uname -n`
DELETE_ONETIME=0
# set base directories
if [ $USER != "root" ]
then

View File

@ -21,6 +21,7 @@ clone_repo () {
done
}
####################
MYNAME=`uname -n`
DELETE_ONETIME=0
if [ -f /zz/zPrivate/secrets/.${MYNAME}.${USER}.private ]
@ -55,7 +56,7 @@ else
fi
# set base directories
if [ $USER != "root" ]
then
ZZ=~/git
@ -81,8 +82,7 @@ else
fi
clone_repo
# start cloning repos
REPOSITE=${PRIVATE_SITE}
KEYS=${PRIVATE_KEYS}
@ -107,6 +107,7 @@ clone_repo
if [ ${DELETE_ONETIME} = 1 ]
then
rm -f /root/root.private
echo "Deleting /root/root.private"
fi
if [ $USER != "root" ]
@ -117,3 +118,4 @@ else
fi
exit 0

View File

@ -1,4 +1,4 @@
#!/bin/sh -x
#!/bin/sh
echo $0
# if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ]
@ -70,6 +70,11 @@ then
SECRETS=/zz/zSyno
fi
if [ -d /zz/zDigital/secrets ]
then
SECRETS=/zz/zDigital
fi
# echo "BASE=${BASE}"
# if [ -f ${BASE}/secrets/.${MYNAME} ]
# then

View File

@ -36,6 +36,8 @@ _setaliases() {
alias grep="grep --color=auto"
alias facts="echo -ne '\033[36m'; curl -s randomfunfacts.com | grep '<i>' | sed 's/.*<i>\(.*\)<\/i>.*/\1/'; echo -ne '\033[0m'; tput sgr0"
alias taskr="/zz/zShared/bin/task restart-host"
alias taskrd="/zz/zShared/bin/task restart-digital"
# show numeric permissions
local FORMATFLAG="-c"
@ -51,10 +53,14 @@ _setaliases() {
alias path='echo -e ${PATH//:/\\n}'
alias GitPull='/zz/zShared/sbin/GitPull'
ZANSIBLE=registry.nopenso.com/upload/zansible
alias zansible-playbook='docker run -it --rm -v $(pwd):/ansible ${ZANSIBLE}:latest ansible-playbook'
alias zansible-lint='docker run -it --rm -v $(pwd):/ansible ${ZANSIBLE}:latest ansible-lint'
alias findhosts00='nmap -sn 192.168.0.0/24| grep report| sort'
alias findhosts10='nmap -sn 192.168.1.0/24| grep report| sort'
alias findhosts80='nmap -sn 192.168.8.0/24| grep report| sort'
}
@ -63,6 +69,7 @@ _setpath() {
/usr/local/bin
/usr/local/sbin
/usr/local/sqlite/bin
/zz/zShared/bin
)
local i
@ -229,6 +236,6 @@ export ANSIBLE_STDOUT_CALLBACK=yaml
export GPODDER_HOME=
export GPODDER_DOWNLOAD_DIR=
PATH=${PATH}:.local/bin ; export PATH
PATH=${PATH}:~/.local/bin ; export PATH
export SIGNAL_PHONE_NUMBER=

View File

@ -20,7 +20,7 @@ get_public_bastion () {
cd /tmp
rm -rf /tmp/z*
REPO=https://mint.nopenso.com/mirror
REPO=https://git.cabinbagonly.com/mirror
which unzip
if [ $? == 1 ]

View File

@ -1,4 +1,5 @@
#!/bin/sh
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
set -u
########################################################
@ -20,10 +21,17 @@ get_public_rsync () {
cd /tmp
rm -rf /tmp/z*
REPO=https://mint.nopenso.com/mirror
REPO=https://git.cabinbagonly.com/mirror
which unzip
if [ $? == 1 ]
then
curl -LJO ${REPO}/zKeys/archive/main.tar.gz
tar -zvxf zKeys*.tar.gz
else
curl -LJO ${REPO}/zKeys/archive/main.zip
unzip zKeys*.zip
fi
cd zkeys
echo "Save keys from github"

View File

@ -0,0 +1,13 @@
# https://taskfile.dev
version: '3'
tasks:
updatebash:
cmds:
- cmd: (cp /zz/zShared/shared/bashrc ~/.bashrc)
ignore_error: true
- cmd: (cp /zz/zShared/shared/bash_logout ~/.bash_logout)
ignore_error: true
- cmd: (cp /zz/zShared/shared/bash_profile ~/.bash_profile)
ignore_error: true