nas related changes + some updates
This commit is contained in:
parent
aa5f642398
commit
9929539860
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,3 +1,9 @@
|
||||
[submodule "nagios"]
|
||||
path = nagios.src
|
||||
url = https://git.mount-mockery.de/pylib/nagios.git
|
||||
[submodule "pyrip"]
|
||||
path = pyrip
|
||||
url = https://git.mount-mockery.de/application/pyrip.git
|
||||
[submodule "pyrip.src"]
|
||||
path = pyrip.src
|
||||
url = https://git.mount-mockery.de/application/pyrip.git
|
||||
|
@ -3,7 +3,12 @@
|
||||
git config --global user.name "Dirk Alders"
|
||||
git config --global user.email dirk@mount-mockery.de
|
||||
#
|
||||
git config --global pull.rebase false
|
||||
#
|
||||
git config --global diff.tool meld
|
||||
git config --global merge.tool meld
|
||||
git config --global merge.tool.cmd 'meld --auto-merge "$LOCAL" "$BASE" "$REMOTE" --output "$MERGED"'
|
||||
git config --global --add difftool.prompt false
|
||||
git config --global pull.rebase false
|
||||
#
|
||||
git config --global config credential.helper store
|
||||
|
||||
|
4
mqtt_sniffer
Executable file
4
mqtt_sniffer
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
/opt/mqtt_sniffer/venv/bin/python /opt/mqtt_sniffer/mqtt_sniffer.py $*
|
||||
|
16
mqtt_test_smarthome
Executable file
16
mqtt_test_smarthome
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
clear
|
||||
|
||||
#!/bin/sh
|
||||
#
|
||||
|
||||
for s in $(tmux list-sessions -F '#{session_name}'); do
|
||||
p=$(tmux list-panes -F '#{pane_tty}' -t "$s")
|
||||
if [ "$p" = "$(tty)" ]; then
|
||||
# Session already running
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
tmux attach-session -t mqtt_test_smarthome || tmux new-session -s mqtt_test_smarthome "/opt/mqtt_sniffer/venv/bin/python /opt/mqtt_sniffer/mqtt_sniffer.py -f mqtt.home -p 1884 -n"
|
||||
|
3
nas_halt
Executable file
3
nas_halt
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
ssh nas sudo /usr/sbin/shutdown -P 5
|
6
pyrip
Executable file
6
pyrip
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
BASEDIR=$(dirname $0)
|
||||
|
||||
$BASEDIR/pyrip.src/venv/bin/python $BASEDIR/pyrip.src/pyrip.py $*
|
||||
|
1
pyrip.src
Submodule
1
pyrip.src
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 48dc481f268e1ecdcd8d5e0126df553781e40a78
|
Loading…
x
Reference in New Issue
Block a user