This commit is contained in:
Dionysus 2023-05-05 18:20:11 -04:00
parent 970990fe0d
commit 86169f75c5
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
2 changed files with 20 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python
# Ident Protocol Daemon - Developed by acidvegas in Python (https://acid.vegas/random)
# ident protocol daemon - developed by acidvegas in Python (https://acid.vegas/random)
import os
import random
@ -72,9 +72,10 @@ class Identd(threading.Thread):
return data + ' : ERROR : INVALID-PORT'
return data + ' : USERID : UNIX : ' + random_str(5)
# Main
if not check_privledges():
raise SystemExit('requires sudo privledges to bind to port 113')
Identd(socket.AF_INET, '0.0.0.0', 113).start()
Identd(socket.AF_INET6, '::', 113).start()
while True:
input('')
input('')

17
irc/post-commit Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# note: place this file in GITREPO/.git/hooks/post-commit && chmod +x
_data=$(git log -1 --graph --pretty=format:"%h|%s|%cn")
_hash=$(echo "$_data" | cut -d'|' -f1 | cut -c 3-)
_msg=$(echo "$_data" | cut -d'|' -f2)
echo $(dirname .)
echo $(basebane .)
_name=$(echo "$_data" | cut -d'|' -f3)
_repo=$(basename -s .git $(git config --get remote.origin.url))
_summary=$(git show $_hash --stat | grep -E "fil(e|es) changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {printf "%s|+%s|-%s", files, inserted, deleted }')
_files=$(echo $_summary | cut -d'|' -f1)
_inserts=$(echo $_summary | cut -d'|' -f2)
_deletes=$(echo $_summary | cut -d'|' -f3)
_ircmsg="irc.supernets.#superbowl *14[11GitHub14] Commit pushed to 08$_name/$_repo (06$_hash) 14[$_files14|03$_inserts14|04$_deletes14] : $_msg"
#echo "$_ircmsg" | ssh contra tee "$HOME/.weechat/weechat_fifo" > /dev/null