Compare commits
34 Commits
b4c8b8321c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3cfce92040 | |||
| b18ad0cf17 | |||
| 5b221ea3d9 | |||
| 224150f2e1 | |||
| e77def4e91 | |||
| 20a77e39f2 | |||
| ab0ed67ba8 | |||
| 37d04bf109 | |||
| 9d4db0e672 | |||
| 6e8880adbe | |||
| 3b4f1624f2 | |||
| 5043a3c293 | |||
| 4499205060 | |||
| 44c3451805 | |||
| 906422d16e | |||
| a50f132120 | |||
| b52a1734e1 | |||
| aaecbd4775 | |||
| 35e9760c78 | |||
| ca16530bc6 | |||
| 2ce9144060 | |||
| f685cb7d2f | |||
| fef03d4e96 | |||
| 00a78908f0 | |||
| 13b32535c3 | |||
| d18de5e670 | |||
| 0f8cf2c787 | |||
| 0311119c96 | |||
| 9ab557813f | |||
| dfe9b8c01a | |||
| d4a52a608b | |||
| 06fb2d4411 | |||
| 3eca81c5bf | |||
| 49f71c4b38 |
BIN
bin/jdupes
Executable file
BIN
bin/jdupes
Executable file
Binary file not shown.
@ -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 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 unit set GB
|
||||||
${BINARY} cli config options min-home-disk-free value set ${MINSPACE}
|
${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}
|
rm -f ${TEMP1} ${TEMP2}
|
||||||
@ -3,7 +3,11 @@
|
|||||||
TEMP1=$(mktemp)
|
TEMP1=$(mktemp)
|
||||||
TEMP2=$(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}
|
grep -v ${myID} ${SHARE_LIST} > ${TEMP1}
|
||||||
|
|
||||||
|
|||||||
20
sbin/GitPull
20
sbin/GitPull
@ -1,6 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
echo "SCRIPT $0 starting"
|
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`
|
MYNAME=`uname -n`
|
||||||
|
|
||||||
@ -16,16 +28,16 @@ pull_repo () {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# if [ $USER = root ]
|
if [ ${MEUID} = 0 ]
|
||||||
# then
|
then
|
||||||
ZZ=/zz/*
|
ZZ=/zz/*
|
||||||
pull_repo
|
pull_repo
|
||||||
# else
|
else
|
||||||
ZZ=~/git/private/z*
|
ZZ=~/git/private/z*
|
||||||
pull_repo
|
pull_repo
|
||||||
|
|
||||||
ZZ=~/git/public/z*
|
ZZ=~/git/public/z*
|
||||||
pull_repo
|
pull_repo
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@ -25,6 +25,7 @@ clone_repo () {
|
|||||||
MYNAME=`uname -n`
|
MYNAME=`uname -n`
|
||||||
DELETE_ONETIME=0
|
DELETE_ONETIME=0
|
||||||
|
|
||||||
|
|
||||||
# set base directories
|
# set base directories
|
||||||
if [ $USER != "root" ]
|
if [ $USER != "root" ]
|
||||||
then
|
then
|
||||||
@ -21,6 +21,7 @@ clone_repo () {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
####################
|
||||||
MYNAME=`uname -n`
|
MYNAME=`uname -n`
|
||||||
DELETE_ONETIME=0
|
DELETE_ONETIME=0
|
||||||
if [ -f /zz/zPrivate/secrets/.${MYNAME}.${USER}.private ]
|
if [ -f /zz/zPrivate/secrets/.${MYNAME}.${USER}.private ]
|
||||||
@ -55,7 +56,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# set base directories
|
||||||
if [ $USER != "root" ]
|
if [ $USER != "root" ]
|
||||||
then
|
then
|
||||||
ZZ=~/git
|
ZZ=~/git
|
||||||
@ -81,8 +82,7 @@ else
|
|||||||
fi
|
fi
|
||||||
clone_repo
|
clone_repo
|
||||||
|
|
||||||
|
# start cloning repos
|
||||||
|
|
||||||
REPOSITE=${PRIVATE_SITE}
|
REPOSITE=${PRIVATE_SITE}
|
||||||
KEYS=${PRIVATE_KEYS}
|
KEYS=${PRIVATE_KEYS}
|
||||||
|
|
||||||
@ -107,6 +107,7 @@ clone_repo
|
|||||||
if [ ${DELETE_ONETIME} = 1 ]
|
if [ ${DELETE_ONETIME} = 1 ]
|
||||||
then
|
then
|
||||||
rm -f /root/root.private
|
rm -f /root/root.private
|
||||||
|
echo "Deleting /root/root.private"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $USER != "root" ]
|
if [ $USER != "root" ]
|
||||||
@ -117,3 +118,4 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -x
|
#!/bin/sh
|
||||||
echo $0
|
echo $0
|
||||||
|
|
||||||
# if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ]
|
# if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ]
|
||||||
@ -70,6 +70,11 @@ then
|
|||||||
SECRETS=/zz/zSyno
|
SECRETS=/zz/zSyno
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d /zz/zDigital/secrets ]
|
||||||
|
then
|
||||||
|
SECRETS=/zz/zDigital
|
||||||
|
fi
|
||||||
|
|
||||||
# echo "BASE=${BASE}"
|
# echo "BASE=${BASE}"
|
||||||
# if [ -f ${BASE}/secrets/.${MYNAME} ]
|
# if [ -f ${BASE}/secrets/.${MYNAME} ]
|
||||||
# then
|
# then
|
||||||
|
|||||||
@ -36,6 +36,8 @@ _setaliases() {
|
|||||||
alias grep="grep --color=auto"
|
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 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
|
# show numeric permissions
|
||||||
local FORMATFLAG="-c"
|
local FORMATFLAG="-c"
|
||||||
@ -51,10 +53,14 @@ _setaliases() {
|
|||||||
|
|
||||||
alias path='echo -e ${PATH//:/\\n}'
|
alias path='echo -e ${PATH//:/\\n}'
|
||||||
alias GitPull='/zz/zShared/sbin/GitPull'
|
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-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 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/bin
|
||||||
/usr/local/sbin
|
/usr/local/sbin
|
||||||
/usr/local/sqlite/bin
|
/usr/local/sqlite/bin
|
||||||
|
/zz/zShared/bin
|
||||||
)
|
)
|
||||||
|
|
||||||
local i
|
local i
|
||||||
@ -229,6 +236,6 @@ export ANSIBLE_STDOUT_CALLBACK=yaml
|
|||||||
export GPODDER_HOME=
|
export GPODDER_HOME=
|
||||||
export GPODDER_DOWNLOAD_DIR=
|
export GPODDER_DOWNLOAD_DIR=
|
||||||
|
|
||||||
PATH=${PATH}:.local/bin ; export PATH
|
PATH=${PATH}:~/.local/bin ; export PATH
|
||||||
export SIGNAL_PHONE_NUMBER=
|
export SIGNAL_PHONE_NUMBER=
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ get_public_bastion () {
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
rm -rf /tmp/z*
|
rm -rf /tmp/z*
|
||||||
|
|
||||||
REPO=https://mint.nopenso.com/mirror
|
REPO=https://git.cabinbagonly.com/mirror
|
||||||
|
|
||||||
which unzip
|
which unzip
|
||||||
if [ $? == 1 ]
|
if [ $? == 1 ]
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
@ -20,10 +21,17 @@ get_public_rsync () {
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
rm -rf /tmp/z*
|
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
|
curl -LJO ${REPO}/zKeys/archive/main.zip
|
||||||
unzip zKeys*.zip
|
unzip zKeys*.zip
|
||||||
|
fi
|
||||||
|
|
||||||
cd zkeys
|
cd zkeys
|
||||||
echo "Save keys from github"
|
echo "Save keys from github"
|
||||||
|
|||||||
13
taskfiles/SharedCommon.yml
Normal file
13
taskfiles/SharedCommon.yml
Normal 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
|
||||||
Reference in New Issue
Block a user