Skip to content

Instantly share code, notes, and snippets.

👨‍💻
munching code

Jatin K Malik jatinkrmalik

👨‍💻
munching code
Block or report user

Report or block jatinkrmalik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jatinkrmalik
jatinkrmalik / cowsayFortune.sh
Created Feb 8, 2017
Get your fortune in a fancy way every 10 seconds
View cowsayFortune.sh
#!/bin/bash
# Get your fortune in a fancy way every 10 seconds.
# ___________________________
#< Let me tell your fortune! >
# ---------------------------
# \ ^__^
# \ (oo)\_______
# (__)\ )\/\
@jatinkrmalik
jatinkrmalik / countdown.sh
Last active Feb 8, 2017
A small script to implement countdown in bash
View countdown.sh
#!/bin/bash
# A small script to implement countdown in bash
seconds=200; # Set countdown time in seconds
date1=$((`date +%s` + $seconds)); # to get future time in seconds
# for asthetics
echo ""
@jatinkrmalik
jatinkrmalik / whoIs.py
Last active Nov 1, 2016
Whois Search Tool
View whoIs.py
# Whois Search Tool
# Enter an IP or host address and have it look it up through whois and return the results to you.
# Created by: Jatin Kumar Malik | jatinkrmalik(at)gmail(dot)com
# Pre-requisites:
# 1. Python 3 - To install: sudo apt-get install python3
# 2. Beautiful Soup library - To install: sudo pip3 install bs4
# 3. Requests library - To install: sudo pip3 install requests
View creditCardValidator.py
# Credit Card Validator
# Takes in a credit card number from a common credit card vendor (Visa, MasterCard, American Express, Discoverer) and validates it to make sure that it is a valid number.
# We will use Luhn Algorithm to validate the card. Read more @ https://en.wikipedia.org/wiki/Luhn_algorithm
# Some sample CC numbers to verify:
# Visa 4111 1111 1111 1111
# MasterCard 5500 0000 0000 0004
# American Express 3400 0000 0000 009
# Diner's Club 3000 0000 0000 04
You can’t perform that action at this time.