mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 07:01:36 +01:00
fdjgksd
This commit is contained in:
@@ -47,7 +47,7 @@ def date():
|
|||||||
return hl_utils.shexec("date +' ^fg(#efefef)%H:%M^fg(#909090), %Y-%m-^fg(#efefef)%d'")
|
return hl_utils.shexec("date +' ^fg(#efefef)%H:%M^fg(#909090), %Y-%m-^fg(#efefef)%d'")
|
||||||
|
|
||||||
def logins():
|
def logins():
|
||||||
with open(LOGINS_LOG,'r') as f:
|
with open(hl_utils.hlpath(LOGINS_LOG),'r') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ def cip_logins():
|
|||||||
MAX_LOGINS=5
|
MAX_LOGINS=5
|
||||||
pw="NOPE"
|
pw="NOPE"
|
||||||
try:
|
try:
|
||||||
with open(hl_utils.hlpath("password.cip")) as f:
|
with open(hl_utils.hlpath("password.cip",False)) as f:
|
||||||
pw=f.read().strip("\n")
|
pw=f.read().strip("\n")
|
||||||
except:
|
except:
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
2
zshrc
2
zshrc
@@ -300,7 +300,7 @@ alias ssh="ssh_func"
|
|||||||
### EXPERIMENTAL ###
|
### EXPERIMENTAL ###
|
||||||
## kill all cip sessions except this pc ##
|
## kill all cip sessions except this pc ##
|
||||||
genocide(){
|
genocide(){
|
||||||
TMP=$(wget -q -O- --user cip --password $(cat $HOME/.config/password.cip) "https://atlantishq.de/cipactive/active_logins")
|
TMP=$(wget -q -O- --user cip --password $(cat $HOME/.config/herbstluftwm/password.cip) "https://atlantishq.de/cipactive/active_logins")
|
||||||
echo $TMP | while read line; do
|
echo $TMP | while read line; do
|
||||||
if [[ $line != $HOST ]]; then
|
if [[ $line != $HOST ]]; then
|
||||||
ssh -n -q $line -t "pkill -u ik15ydit"
|
ssh -n -q $line -t "pkill -u ik15ydit"
|
||||||
|
|||||||
Reference in New Issue
Block a user