How to kill all python processes that an user executed simultaniously
ps -u kevin | grep python | awk '{print $1}' | xargs kill
ps -u kevin | grep python | awk '{print $1}' | xargs kill
GET all articles GET all categories GET articles in a category
This is bad tips
It can be said that constructing a learning program in Pytorch is much easier compared to TensorFlow. However, due to…
Reducing the processing time of tasks processed on a program is a surprisingly difficult task. This is because programs run…
I had to implement this code frequently, and I really don’t like it, so I’m leaving it here.
import json import codecs data = dict( text='today is good day', month=3, date=12 ) with codecs.open(path, 'w', 'utf-8') as f:…
MQTT AMQP Explanations simple queueing service which is mainly used in embedded system.Simple & Power saving. Provides a variety of…
Python’s pickle module is a powerful tool for serializing and deserializing Python objects, but it should be used with caution,…
from langchain.agents.mrkl import prompt from langchain.agents import AgentType from langchain import ChatOpenAI from langchain.callbacks.streaming_stdout_final_only import ( FinalStreamingStdOutCallbackHandler ) from langhain.utilities…