Skip to content

Instantly share code, notes, and snippets.

View atodev's full-sized avatar

Tom atodev

View GitHub Profile
import matplotlib.pyplot as plt
# Define the color scheme based on the values
colors = ['red' if x < 15 else 'Yellow' if x >= 15 and x < 25 else 'green' for x in df1['TrustScore']]
# Create the bar chart with the defined colors
plt.bar(range(len(df1)), df1['TrustScore'], color=colors)
# Add labels and titles to the chart
plt.xticks(range(len(df1)), df1.index)
plt.xlabel('Index')
vite
https://www.youtube.com/watch?v=89NJdbYTgJ8
@atodev
atodev / tutes
Created March 21, 2023 15:17
[FLUTTER]
https://www.youtube.com/watch?v=ss5_6e9emZY
-- first get all rows with multiple recipients and convert them to one per line:
----------------------------------------------
58411@144317.test 475798@0.test,646405@0.test,726114@0.test,83465@144317.test,216724@144317.test,279323@144317.test inbound 1670537679
create a python script to replace that line with
58411@144317.test 475798@0.test inbound 1670537679
58411@144317.test 646405@0.test inbound 1670537679
58411@144317.test 726114@0.test inbound 1670537679
58411@144317.test 83465@144317.test inbound 1670537679
58411@144317.test 216724@144317.test inbound 1670537679
@atodev
atodev / chatbot
Created March 16, 2023 22:31
CHAT GPT
chatbot
https://www.youtube.com/watch?v=EE1Y2enHrcU
llama_index for context
@atodev
atodev / pwgen
Created March 12, 2023 20:17
[pwgen]
$ password=$(pwgen 25 1)
$ echo $password
$ hashPassword $password
2. Store the password in your password manager.
@atodev
atodev / For Windows
Last active March 8, 2023 02:01
[Virtual environment]
python -m venv imageclassification
-- activate
.\imageclassification\Scripts\activate
pip install ipykernel
python -m ipykernel install --name=imageclassification
jupyter kernelspec list
@atodev
atodev / SMB
Last active April 1, 2023 17:36
[MAC]
https://confluence.cc.lehigh.edu/display/LKB/macOS%3A++Create+a+Desktop+Alias+to+a+Network+Storage+Space
https://confluence.cc.lehigh.edu/display/LKB/macOS%3A++Automatically+Connect+to+Network+Storage
@atodev
atodev / ADFS
Last active February 9, 2023 08:29
[SAML]
https://aws.amazon.com/blogs/compute/saml-for-your-serverless-javascript-application-part-i/
@atodev
atodev / calendar
Last active February 6, 2023 09:02
[veritas]
https://www.veritas.com/support/en_US/article.100000770
https://www.veritas.com/support/en_US/doc/23557409-136252181-0/v18378260-136252181
email -= headers
X-Ms-Exchange-Calendar-Series-Instance-Id: