Skip to content

Instantly share code, notes, and snippets.

View ndt-pro's full-sized avatar
🏠
Working from home

Toan Nguyen ndt-pro

🏠
Working from home
View GitHub Profile
{"data":[0,255,0,195,1,1,2,1,3,1,0,85,3,1,4,2,2,2,1,1,4,2,3,1,0,2,3,1,5,1,6,1,7,1,8,1,4,1,0,79,3,1,4,1,1,1,9,1,7,1,10,1,11,1,7,1,12,1,7,1,10,1,13,1,14,1,9,1,15,1,3,1,14,1,16,2,17,1,18,1,4,1,0,74,3,2,2,1,19,1,20,1,21,1,22,1,20,1,23,1,24,6,25,1,8,1,20,1,10,1,26,1,27,1,28,1,29,1,28,1,30,1,31,1,9,1,2,1,3,2,0,68,3,1,15,1,5,1,13,1,32,1,20,1,33,1,34,1,23,1,24,1,25,1,35,1,36,1,24,7,25,1,37,1,38,1,29,1,10,1,39,1,40,1,41,1,30,1,6,1,18,1,14,1,3,1,0,66,3,1,42,1,10,1,26,1,43,1,24,18,31,1,44,1,10,1,21,1,10,1,40,1,45,1,46,1,47,1,48,1,3,1,0,65,4,1,20,1,7,1,43,1,24,1,36,2,24,17,49,1,50,1,13,1,51,2,10,1,27,1,18,1,50,1,18,1,3,1,0,64,4,1,32,1,26,1,24,3,25,1,24,5,43,1,36,1,24,10,8,1,16,1,44,1,13,1,52,1,53,1,42,1,12,1,39,1,54,1,22,1,3,1,0,63,3,1,7,1,37,1,24,11,49,1,23,1,24,9,20,1,28,1,27,1,13,1,8,1,9,1,26,1,10,1,27,1,47,1,27,1,3,1,0,62,3,1,5,1,20,1,24,13,49,1,23,1,24,8,14,1,54,1,39,1,11,1,21,1,13,1,49,1,55,1,56,1,17,1,20,1,3,1,0,62,19,1,10,1,25,1,24,5,36,2,24,7,51,1,25,1,24,7,57,1,47,1,29,1,56,1,58,1,10,1,55,1,11,1,40,1,59,1,2,1,0
#!/bin/bash
lib_dir="/usr/local/tesseract-5.0"
cd ~
yum install -y autoconf automake libtool pkgconfig.x86_64 libpng12-devel.x86_64 libjpeg-devel libtiff-devel.x86_64 zlib-devel.x86_64
mkdir $lib_dir
cd $lib_dir
wget http://www.leptonica.org/source/leptonica-1.79.0.tar.gz .
tar -zxvf leptonica-1.79.0.tar.gz
rm leptonica-1.79.0.tar.gz
@ndt-pro
ndt-pro / AES-256-CBC cryptography.md
Last active November 7, 2022 11:41
AES-256-CBC in PHP, Java, NodeJS

PHP

<?php

$plaintext = 'Hello World';
$key = 'RtsMsrayGGJxmAQDfYwMopML6WJEZVbk';
$method = 'aes-256-cbc';

$key = hash('sha256', $key, true);