Skip to content

Instantly share code, notes, and snippets.

View leric's full-sized avatar

Leric Zhang leric

View GitHub Profile
@leric
leric / openapi.yaml
Created January 27, 2021 02:24
apihub api spec
openapi: 3.0.2
info:
title: FastAPI
version: 0.1.0
paths:
/oauth2/token:
post:
tags:
- OAuth2
summary: Login For Access Token
@leric
leric / rainbow.go
Created January 27, 2021 02:22
rainbow table for phone number
package main
import (
"bufio"
"bytes"
"crypto/md5"
"crypto/rand"
"encoding/binary"
"encoding/hex"
"flag"
@leric
leric / dump.php
Created September 15, 2011 08:50
Database migrate tool using Doctrine2 DBAL
<?php
/**
* Dump database schema to schema config files
*
*/
$env = 'test';
if (empty($_SERVER['argv'][1])) {
echo "Usage: php dump.php (production|test|dev) \n";
exit();