Posts

This is a SAMPLE TESTING MESSAGE sent through Cell Broadcasting System by Department of Telecommunication

Image
  This is a SAMPLE TESTING MESSAGE sent through Cell Broadcasting System by Department of Telecommunication, Government of India. Please ignore this message as no action is required from your end. This message has been sent to test Pan-India Emergency Alert System being implemented by National Disaster Management Authority. It aims to enhance public safety and provide timely alerts during emergencies. Timestamp: 12-10-2023 12:13 PM 21

Google's 25th Birthday - Google turns 25, celebrates birthday with a doodle.

Image
Google, everyone's favourite search engine, turned 25 years old on Wednesday and is celebrating its birthday with a doodle. Taking a “walk down memory lane”, the company showcased different doodles on its birthday over the years. The latest one comes with a GIF which turns ‘Google’ into ‘G25gle’ - marking the 25 years.

Shell script to check domain expiry date and send alerts to Slack on Ubuntu

  1. Create a file with list of domain names vi /home/ubuntu/domain_names.txt example.com example.in example.org exp123.com 2. Create a shell script for domain expiry check vi /home/ubuntu/domain-expiry-check.sh #!/bin/bash #Specify all the domains you want to check WEBSITE_LIST=` cat /home/ubuntu/domain_names.txt` #WEBSITE_LIST MAX_DAYS=30 MIN_DAYS=1 current_epoch=$( date '+%s' ) for dm in $WEBSITE_LIST do expiry_date=$(curl -s https://www.whatsmydns.net/api/domain?q= $dm | jq --raw-output '.[].expires | select( . != null )' ) echo -n " $dm - Expires on $expiry_date " expiry_epoch=$( date -- date = " $expiry_date " '+%s' ) epoch_diff=$((expiry_epoch - current_epoch)) days=$((epoch_diff / 86400 )) if [[ $days -lt $MAX_DAYS && $days -gt $MIN_DAYS ]]; then echo -n " $dm - Expires on $expiry_date and $days days remaining. " curl -X POST -H 'Content-type: application/json' -

Google doodle celebrates Belgium National Day 2023

Image
  Today’s Doodle celebrates Belgium’s National Day! On this day in 1831, Prince Leopold took a constitutional oath and became the first King of Belgium on the steps of the Church of St. James on Coudenberg. Belgium gained political and cultural independence on October 4th, 1830.  The national holiday is celebrated with military parades, air force aerial demonstrations, and free concerts, finished with fireworks. 

Google doodle celebrates Colombia Independence Day 2023

Image
  The Colombian Declaration of Independence occurred on July 20, 1810 when the Junta de Santa Fe was formed in Santa Fe de Bogota, the capital of the Spanish colonial Viceroyalty of New Granada, to govern the territory autonomously from Spain. Columbia’s capital Bogotá is at the center of celebrations. People from across the country gather there to watch vibrant parades, military demonstrations, and historic reenactments. For dinner, families enjoy the national dish of  bandeja paisa , which consists of grilled beefsteak, steamed white rice, red beans, fried eggs, sweet plantains, fried pork, and slices of avocado. After feasts, many flock to beaches to watch fireworks light up the night sky.

Title: Top 10 Programming Languages to Learn in 2024

Image
  Introduction: In today's technology-driven world, programming is a highly valuable skill that opens up numerous opportunities. Whether you are a beginner eager to dive into the world of coding or an experienced developer looking to expand your skill set, choosing the right programming languages to learn is essential. In this blog post, we will explore the top 10 programming languages to learn in 2023, based on their popularity, demand in the job market, versatility, and future prospects. Python: Python continues to dominate the programming landscape due to its simplicity, readability, and vast community support. It is widely used in web development, data analysis, artificial intelligence, and scientific computing. Python's versatility makes it an excellent choice for both beginners and experienced programmers. JavaScript: JavaScript is the backbone of web development, powering interactive websites and dynamic web applications. Its versatility extends beyond the web, allowing

Here's a comparison of PHP and Python syntax in a table format

Image
  Feature PHP Python Comments // Single-line comment <br> /* Multi-line comment */ # Single-line comment <br> ''' Multi-line comment ''' Variables $variable_name variable_name Variable Assignment $variable = value; variable = value Data Types Dynamic typing Dynamic typing Strings "Double quotes" <br> 'Single quotes' "Double quotes" <br> 'Single quotes' Concatenation . + String Interpolation "Hello $name" "Hello {name}" Arithmetic Operators + , - , * , / , % + , - , * , / , % Comparison Operators == , != , < , > , <= , >= == , != , < , > , <= , >= Logical Operators && , ` Control Structures if , else , elseif , switch , while , for , foreach if , else , elif , while , for , foreach Arrays $array = array(1, 2, 3); array = [1, 2, 3] Array Access $array[0] array[0] Associative Arrays $array = array("name" => "John"); array = {"n