Skip to content

Instantly share code, notes, and snippets.

View 0xC0D3D00D's full-sized avatar
🎈

Mohammad Hossein Heidari 0xC0D3D00D

🎈
View GitHub Profile
@0xC0D3D00D
0xC0D3D00D / USAGE.md
Last active July 21, 2021 19:59
Calculates Corona cases per 100k in last 14 days

Usage

corona <country_name>

Example:
$ corona Turkey
Population: 82319724
Cases (in last 14 days): 12180
Cases (per 100k in last 14 days): 14.80
@0xC0D3D00D
0xC0D3D00D / Welcome file.md
Created February 18, 2020 04:20
Welcome file

Fare Estimator Script

This script reads ride data points from a CSV file and stream calculated fare estimations for each ride into another CSV File.

Prerequisites

You need these tools installed on your system:

  • dep as package manager
  • venom for e2e test

After installing these install the dependencies with: dep ensure

{
"channelNameInAAServer": "MODERN",
"cif": "12345678",
"pinLength": 6,
"token": "bef5ef71-7c2b-40df-b632-15f26998b288",
"tokenGeneratedTime": 15737470000000,
"tokenTimeToLiveSeconds": 600,
"verificationCodeLength": 4,
"version": 3
}
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<string name="CardOtpSecretKey">F7E685E110764D0776A4F5898B094CE7ADD78596</string>
<string name="LogFolder">tsm/otp-app/saman</string>
<int name="ModernOtpLengthKey" value="8" />
<int name="OtpPinSizeKey" value="6" />
<string name="LogLevel">OFF</string>
<string name="PIN_KEY">$2a$10$xlGA3IqEgHhBDwwPFVfkG.lCrxBa1BGnOveEWZWiX26ArOMN3uhSu</string>
<string name="ModernOtpSecretKey">6D436B6A54FF6916E7611CA8168C4E94210790F4</string>
<string name="ClientID">43041AB43469025B149CBA231303E1D3532456C4</string>
@0xC0D3D00D
0xC0D3D00D / saman_totp.go
Last active November 14, 2019 23:22
Saman Bank TOTP implementation
package main
import (
"bytes"
"crypto/hmac"
"crypto/sha1"
"encoding/binary"
"encoding/hex"
"fmt"
"time"

Keybase proof

I hereby claim:

  • I am 0xc0d3d00d on github.
  • I am 0xc0ded00d (https://keybase.io/0xc0ded00d) on keybase.
  • I have a public key ASCD9_s133f6Kt-4MYO4GARFtFi2vTrEUbMlY6GSWkk9Mwo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am 0xc0d3d00d on github.
* I am 0xc0ded00d (https://keybase.io/0xc0ded00d) on keybase.
* I have a public key ASCOiGhCFOg0i7foVKzCG7Y44r8MvJGRRx8Bh4eWA3sjVQo
To claim this, I am signing this object:
@0xC0D3D00D
0xC0D3D00D / GUI.java
Last active August 29, 2015 14:12 — forked from anonymous/GUI
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package proxyserver;
import java.awt.BorderLayout;
@0xC0D3D00D
0xC0D3D00D / monty_hall.cpp
Last active August 29, 2015 14:10
Monty Hall Problem Simulation
/*
* =====================================================================================
*
* Filename: monty_hall.cpp
*
* Description:
*
* Version: 1.0
* Created: 11/21/2014 08:41:20 PM
* Revision: none