Introduction to Artificial Intelligence & Generative AI What is Artificial Intelligence? AI refers to machines or systems designed to simulate human intelligence. Uses algorithms to process data and make decisions. Encompasses areas like machine learning, natural language processing. Key Types of AI Narrow AI (Weak AI): Task-specific systems (e.g., Siri, chatbots). General AI (Strong AI): Hypothetical machines with human-like reasoning. Superintelligent AI: AI that surpasses human intelligence (future possibility). What is Generative AI? Generative AI creates new content, such as images, text, or music. Uses advanced machine learning techniques like neural networks. Examples: DALL·E (images), GPT (text), and AIVA (music composition). How Does Generative AI Work? Trains on large datasets (e.g., images, text). Learns patterns, structures, and features in data. Generates original content based on learned patterns. A...
Popular posts from this blog
Outside NAT script on Linux
/sbin/ifconfig eth1:1 202.141.240.174 netmask 255.255.255.248 /sbin/ifconfig eth1:1 up /sbin/iptables -t nat -A PREROUTING -j DNAT -d 202.141.240.174 --to-destination 192.168.0.22 /sbin/iptables -t nat -A POSTROUTING -j SNAT -s 192.168.0.22/32 -d 0/0 --to-source 202.141.240.174 Another useful link http://home1.gte.net/res0psau/security/nat-on-linux.html http://www.cyberciti.biz/faq/linux-demilitarized-zone-howto/
Script to find memory usage on Ubuntu
This simple script will show the total memory, free memory and percentage of memory used. Have tested it on Ubuntu 14/16 but will work on CentOS as well #!/bin/bash freemem=$(($(free -m |grep "buffers/cache:"|awk '{print $4}'))) totalmem=$(($(free -m |awk 'NR==2 {print $2}'))) usage=$(($totalmem-$freemem)) echo "Memory used: $usage" echo "Total memory: $totalmem" usage=$(($usage*100 / $totalmem)) echo "Usage percentage: $usage" echo "Free memory: $freemem" echo "$TIMESTAMP $totalmem $usage $freemem"
Comments