Skip to content

Instantly share code, notes, and snippets.

View jakariyaa's full-sized avatar

Jakariya Abbas jakariyaa

  • 20:52 (UTC +06:00)
View GitHub Profile
@jakariyaa
jakariyaa / OktaVerify_TOTP_Key_Exteaction.md
Last active September 11, 2024 10:06
Okta Verify TOTP secret key can be extracted easily using curl and the code below.
  1. Get the content of the QR for Okta Verify app setup. It looks like this: oktaverify://email@domain.com/?t=XXXXX&f=YYYYY&s=https://DOMAIN.okta.com&issuer=DOMAIN.okta.com&isIdxEnabled=true
  2. Replace XXXXX, YYYYY and DOMAIN to your values in curl below:
curl --request POST \
  --url https://DOMAIN.okta.com/idp/authenticators \
  --header 'Accept: application/json; charset=UTF-8' \
  --header 'Accept-Encoding: gzip, deflate' \
  --header 'Authorization: OTDT XXXXX' \
  --header 'Content-Type: application/json; charset=UTF-8' \
#include<stdio.h>
int main()
{
double num1, num2, value;
char sign;
printf("Please enter a basic math expression following two numbers: ");
scanf("%lf %c %lf", &num1, &sign, &num2);
@jakariyaa
jakariyaa / Silly Hard Guessing Game.py
Last active May 28, 2022 12:45
Just a silly guessing game made on a boring day while practicing Python after a while!
# Guessing Game Made Harder To Guess
import random
while True:
random_num = random.randint(1, 50)
random_indecrement = random.randint(7, 25)
indecrement_history = []
guess_count = 0
print("\n How to play? The rules are simple: you have to guess the number correctly."
"\n If you guess higher! The number will get incremented according to the shown value"
@jakariyaa
jakariyaa / Simple PYTHON Calculator V3.py
Last active March 13, 2020 13:48
Hello there! It's an updated version of the Simple PYTHON Calculator made with Python 3 by me. This project is Open Source so you can modify or use this PYTHON Calculator without any kind of permission. Thank You! <3 <3
# Simple Calculator made with Python.
# This Calculator is Developed by Zakariya Abbas.
# This project is open source so anyone can modify and use it without any permission.
print("Simple PYTHON Calculator \n"
"Version : 3.0.0 Build 10 \n"
"~~-~~~~~~<<<>>>~~~~~~-~~")
def calc_func(first_value, second_value, mmath_type):
@jakariyaa
jakariyaa / ZakuBOT.py
Last active March 3, 2020 14:55
Just a fun bot made while practicing. Don't judge me, Um noob!
run = True
while run:
def magic_bot(message):
words = message.split(" ")
database = {
"hi": "Hello there!",
"how are you?": "Better than you ;)",
"who are you?": "I'm a bot made by Zakariya Abbas. Currently I'm so dumb like him!"
"\nBut I'm hoping to get intelligent one day,",
"glad to hear that": "Wah Wah! Look who's saying",
@jakariyaa
jakariyaa / Simple PYTHON Calculator.py
Last active January 29, 2020 11:05
Hello there! It's a Simple Calculator made with PYTHON by me.This project is Open Source. You can modify or use this PYTHON Calculator without any permission. Thank You! <3 <3
# Simple Calculator made with Python 3x
# This Calculator is Developed by Zakariya Abbas.
# This project is open source so anyone can modify and use without any permission.
print("Simple PYTHON Calculator \n"
"Version : 1.0.0 Build 10 \n"
"~~-~~~~~~<<<>>>~~~~~~-~~")
print("Calculator Started \n"