Linux - Delphijustin industries https://delphijustin.biz Making use out of things! Thu, 14 Oct 2021 01:02:53 +0000 en-US hourly 1 https://wordpress.org/?v=6.2.9 https://delphijustin.biz/wp-content/uploads/2025/10/cropped-dongwa-192-32x32.png Linux - Delphijustin industries https://delphijustin.biz 32 32 Voice Recognition plugin for hexchat https://delphijustin.biz/voice-recognition-plugin-for-hexchat/?utm_source=rss&utm_medium=rss&utm_campaign=voice-recognition-plugin-for-hexchat https://delphijustin.biz/voice-recognition-plugin-for-hexchat/#respond Mon, 21 Oct 2019 19:11:21 +0000 https://delphijustin.biz/?p=696 This plugin uses the linux say command to say chat messages, lets you know when some joins or quits, etc.. It requires the gnustep-gui-runtime and python To install the gnustep runtime you can type this in on ubuntu: then you can test to see if the say command works by typing Then if that works …

The post Voice Recognition plugin for hexchat first appeared on Delphijustin industries.

]]>
This plugin uses the linux say command to say chat messages, lets you know when some joins or quits, etc.. It requires the gnustep-gui-runtime and python

To install the gnustep runtime you can type this in on ubuntu:

sudo apt-get install gnustep-gui-runtime

then you can test to see if the say command works by typing

say hi im chucky wanna play?

Then if that works then the next step is to know where to put the plugin. Find the path type in, if the folder doesn’t exist create it.

hexchat -p

Next download and unzip the source code to the plugins folder.

All programs are virus free. Some antivirus software might say its "suspicious" or a "Potentionaly Unwanted Program". Some of them rate them on what there code looks like no matter if theres a definition in the virus database. If any of them are detected any Antivirus I will zip the software with the password "justin" j is lowercase

__module_name__ = "GNUStep-speech"
__module_version__ = "0.1.0"
__module_description__ = "Speech engine script for hexchat"

import hexchat # HexChat IRC interface
import subprocess
import random
import sys
import os
import time
import threading

DeleteMinutes = 15 #number of minutes after text file is created to delete it
TalkID = round(random.random()*100000,0)

def TalkTimer(fn):
	time.sleep(60*DeleteMinutes)
	os.remove(fn)
def MSGTalk(word, word_eol, userdata):
	# STRIP word
	for i in range(len(word)):
		# strips the colours and the format
		word[i] = hexchat.strip(word[i], -1, 3)
	# in "word", the first part is the user who issued the message
	user = word[0]
	msg = word[1][0:]
	fn = "/tmp/.hcsay"+str(TalkID+random.random())
	myfile = open(fn,"w+")
	myfile.write(user+" says "+msg)
	myfile.close()
	timerThread=threading.Thread(target=TalkTimer, args=(fn,))
	timerThread.start()
	subprocess.Popen(["say","-f",fn])
	return hexchat.EAT_NONE
def ATalk(word, word_eol, userdata):
	# STRIP word
	for i in range(len(word)):
		# strips the colours and the format
		word[i] = hexchat.strip(word[i], -1, 3)
	# in "word", the first part is the user who issued the message
	user = word[0]
	msg = word[1][0:]
	fn = "/tmp/.hcsay"+str(TalkID+random.random())
	myfile = open(fn,"w+")	
	myfile.write(user+" "+msg)
	myfile.close()
	timerThread=threading.Thread(target=TalkTimer, args=(fn,))
	timerThread.start()
	subprocess.Popen(["say","-f",fn])
	return hexchat.EAT_NONE
def JoinTalk(word, word_eol, userdata):
	# STRIP word
	for i in range(len(word)):
		# strips the colours and the format
		word[i] = hexchat.strip(word[i], -1, 3)
	# in "word", the first part is the user who issued the message
	user = word[0]
	msg = word[1][0:]
	fn = "/tmp/.hcsay"+str(TalkID+random.random())
	myfile = open(fn,"w+")	
	myfile.write(user+" has joined "+msg)
	myfile.close()
	timerThread=threading.Thread(target=TalkTimer, args=(fn,))
	timerThread.start()
	subprocess.Popen(["say","-f",fn])
	return hexchat.EAT_NONE
def NickTalk(word, word_eol, userdata):
	# STRIP word
	for i in range(len(word)):
		# strips the colours and the format
		word[i] = hexchat.strip(word[i], -1, 3)
	# in "word", the first part is the user who issued the message
	user = word[0]
	msg = word[1][0:]
	fn = "/tmp/.hcsay"+str(TalkID+random.random())
	myfile = open(fn,"w+")	
	myfile.write(user+" is now "+msg)
	myfile.close()
	timerThread=threading.Thread(target=TalkTimer, args=(fn,))
	timerThread.start()
	subprocess.Popen(["say","-f",fn])
	return hexchat.EAT_NONE
def PartTalk(word, word_eol, userdata):
	# STRIP word
	for i in range(len(word)):
		# strips the colours and the format
		word[i] = hexchat.strip(word[i], -1, 3)
	# in "word", the first part is the user who issued the message
	user = word[0]
	msg = word[1][0:]
	fn = "/tmp/.hcsay"+str(TalkID+random.random())
	myfile = open(fn,"w+")	
	myfile.write(user+" has parted from "+msg)
	myfile.close()
	timerThread=threading.Thread(target=TalkTimer, args=(fn,))
	timerThread.start()
	subprocess.Popen(["say","-f",fn])
	return hexchat.EAT_NONE
def PMSGTalk(word, word_eol, userdata):
	# STRIP word
	for i in range(len(word)):
		# strips the colours and the format
		word[i] = hexchat.strip(word[i], -1, 3)
	# in "word", the first part is the user who issued the message
	user = word[0]
	msg = word[1][0:]
	fn = "/tmp/.hcsay"+str(TalkID+random.random())
	myfile = open(fn,"w+")	
	myfile.write(user+" whispered "+msg)
	myfile.close()
	timerThread=threading.Thread(target=TalkTimer, args=(fn,))
	timerThread.start()
	subprocess.Popen(["say","-f",fn])
	return hexchat.EAT_NONE
def QTalk(word, word_eol, userdata):
	# STRIP word
	for i in range(len(word)):
		# strips the colours and the format
		word[i] = hexchat.strip(word[i], -1, 3)
	# in "word", the first part is the user who issued the message
	user = word[0]
	msg = word[1][0:]
	fn = "/tmp/.hcsay"+str(TalkID+random.random())
	myfile = open(fn,"w+")	
	myfile.write(user+" quit chat "+msg)
	myfile.close()
	timerThread=threading.Thread(target=TalkTimer, args=(fn,))
	timerThread.start()
	subprocess.Popen(["say","-f",fn])
	return hexchat.EAT_NONE
# Finally, the hook that will link the function above to the action of receiving a channel message
hexchat.hook_print("Channel Message", MSGTalk)
hexchat.hook_print("Private Message to Dialog", PMSGTalk)
hexchat.hook_print("Join", JoinTalk)
hexchat.hook_print("Change Nick", NickTalk)
hexchat.hook_print("Part with Reason", PartTalk)
hexchat.hook_print("Private Action to Dialog", ATalk)
hexchat.hook_print("Channel Action", ATalk)
hexchat.hook_print("Quit", QTalk)
# You can find the words "Channel Message" and many other events in HexChat menu "Settings > Text Events..."

The post Voice Recognition plugin for hexchat first appeared on Delphijustin industries.

]]>
https://delphijustin.biz/voice-recognition-plugin-for-hexchat/feed/ 0
Collection of Oregano’s Model files https://delphijustin.biz/collection-of-oreganos-model-files/?utm_source=rss&utm_medium=rss&utm_campaign=collection-of-oreganos-model-files https://delphijustin.biz/collection-of-oreganos-model-files/#comments Mon, 14 Oct 2019 16:49:25 +0000 https://delphijustin.biz/?p=689 Here you will find a archive of lots of components that were left out of the app but were hard to find it in a zip file of all of them. So now you can download the whole tar file off of Google Drive or pick and choose the ones you want from the preview. …

The post Collection of Oregano’s Model files first appeared on Delphijustin industries.

]]>
Here you will find a archive of lots of components that were left out of the app but were hard to find it in a zip file of all of them. So now you can download the whole tar file off of Google Drive or pick and choose the ones you want from the preview. If you don’t know what Oregano is its a open source schematic and circuit simulator program for linux. Make sure to extract files from the tar file to the root of the linux file system “/”

The post Collection of Oregano’s Model files first appeared on Delphijustin industries.

]]>
https://delphijustin.biz/collection-of-oreganos-model-files/feed/ 1
LiveBackup – live linux backup tool https://delphijustin.biz/livebackup-live-linux-backup-tool/?utm_source=rss&utm_medium=rss&utm_campaign=livebackup-live-linux-backup-tool https://delphijustin.biz/livebackup-live-linux-backup-tool/#comments Thu, 26 Sep 2019 19:36:31 +0000 https://delphijustin.biz/?p=675 This tiny shell script will allow you to backup the settings and programs from a live linux session to two .tar files. Here’s a list of the tar files and what they do. config/data.tar – Configuration and settings files. (/var and /usr directories) if any of the files in data.tar exists it will be overwritten. …

The post LiveBackup – live linux backup tool first appeared on Delphijustin industries.

]]>
This tiny shell script will allow you to backup the settings and programs from a live linux session to two .tar files. Here’s a list of the tar files and what they do.

  • config/data.tar – Configuration and settings files. (/var and /usr directories) if any of the files in data.tar exists it will be overwritten.
  • config/system.tar – Programs and other settings. Any existing file will not be overwritten. This prevents crashing the system after untaring the archive.

Here’s the source code for the two scripts are listed below. No download needed just use a text editor and save them as a *.sh file.

#!/bin/sh
#load.sh file
echo Heres a list of the operations and error codes, 0 = success>config/load.log
if [ -z $1 ]
then
xterm -e ./load.sh xterm
else
echo ----- data.tar   -----
sudo tar -xvf config/data.tar -C /
echo data.tar $?>>config/load.log
echo ----- system.tar -----
sudo tar -xvf config/system.tar -C / --skip-old-files
echo system.tar $?>>config/load.log
#Add service load commands after this line
#web server
hiawatha
echo hiawatha $?>>config/load.log
jwm -restart
fi
#!/bin/sh
#save.sh file
mkdir config
echo Heres a list of the operations and error codes, 0 = success>config/save.log
if [ -z $1 ]
then
xterm -e ./save.sh xterm
else
echo ---- data.tar     ----
rm config/data.tar
tar -rvf config/data.tar /etc
echo /etc $?>>config/save.log
tar -rvf config/data.tar /var
echo /var $?>>config/save.log
tar -rvf config/data.tar ~
echo home dir $?>>config/save.log
echo ---- system.tar   ----
rm config/system.tar
tar -rvf config/system.tar /usr
echo system.tar $?>>config/save.log
xedit config/save.log
fi

The post LiveBackup – live linux backup tool first appeared on Delphijustin industries.

]]>
https://delphijustin.biz/livebackup-live-linux-backup-tool/feed/ 1