This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get your fortune in a fancy way every 10 seconds. | |
# ___________________________ | |
#< Let me tell your fortune! > | |
# --------------------------- | |
# \ ^__^ | |
# \ (oo)\_______ | |
# (__)\ )\/\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Program: Hacking all EVMs enabling BJP to win. | |
Description: Well, Dev Jha asked for it. ¯\_(ツ)_/¯ | |
Author: Jatin K Malik | |
Date: 16-03-2017 06:11:17 PM | |
*/ | |
#include < iostream > | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GetCardType(number) | |
{ | |
// visa | |
var re = new RegExp("^4"); | |
if (number.match(re) != null) | |
return "Visa"; | |
// Mastercard | |
re = new RegExp("^5[1-5]"); | |
if (number.match(re) != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests,sys,re | |
from bs4 import BeautifulSoup | |
import time | |
from datetime import datetime | |
from urllib.request import urlopen | |
now = time.time() | |
import string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stone Paper Scissors | |
import random | |
import os | |
def cls(): # to clear the screen | |
os.system('cls' if os.name == 'nt' else 'clear') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Testing python-omxplayer-wrapper from https://github.com/willprice/python-omxplayer-wrapper | |
from omxplayer import OMXPlayer as op | |
from time import sleep | |
file_path = '../audio/Baby.mkv' | |
player = op(file_path) | |
player.play() | |
sleep(10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/usr/bin/python | |
import time | |
from modules.faceOnboarding import service | |
from flask import Response | |
from modules.faceOnboarding import app | |
import tempfile | |
@app.app.route('/video_feed') |
OlderNewer