Skip to content

Instantly share code, notes, and snippets.

View codedeep79's full-sized avatar

Nguyễn Trung Hậu codedeep79

View GitHub Profile
@codedeep79
codedeep79 / Chuyển đổi dữ liệu từ định dạng CSV sang JSON bằng Python.md
Last active November 5, 2022 05:35
Chuyển đổi dữ liệu từ định dạng CSV sang JSON bằng Python

@codedeep79
codedeep79 / Tạo Sách nói bằng Python.md
Created November 5, 2022 05:15
Tạo Sách nói bằng Python
import PyPDF2
import pyttsx3

engine = pyttsx3.init()
pdfReader = PyPDF2.PdfFileReader(open('journey_to_the_west.pdf', 'rb'))
speaker = pyttsx3.init() 
for page_num in range(pdfReader.numPages):
    text =  pdfReader.getPage(page_num).extractText()
 speaker.say(text) 
@codedeep79
codedeep79 / Tải video YouTube ở định dạng MP3 bằng Python.md
Created November 5, 2022 05:04
Tải video YouTube ở định dạng MP3 bằng Python

@codedeep79
codedeep79 / Tải video YouTube bằng Python.md
Created November 5, 2022 05:01
Tải video YouTube bằng Python

@codedeep79
codedeep79 / Chuyển đổi hình ảnh sang phác thảo bút chì bằng Python.md
Created November 5, 2022 04:53
Chuyển đổi hình ảnh sang phác thảo bút chì bằng Python

@codedeep79
codedeep79 / Spelling Correction with Python.md
Last active November 5, 2022 04:38
Spelling Correction with Python

@codedeep79
codedeep79 / Remove Image Background in Python.md
Last active November 5, 2022 04:38
Remove Image Background in Python

@codedeep79
codedeep79 / Install Chromium Web Browser on Linux.md
Created November 1, 2022 11:19
Install Chromium Web Browser on Linux

Step 1: Open Terminal (for opening the terminal you can use Ctrl + Alt + T shortcut).

Step 2: Use the following command to install the Chromium Web Browser in your Linux operating system

sudo apt-get install chromium -y

@codedeep79
codedeep79 / Git LFS syntax for tracking folder.md
Last active October 31, 2022 01:06
Git LFS syntax for tracking folder

Find all the files extensions using following command

find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u  

and then creating a .gitattribute file and adding git lfs track syntax. This command generates that for you, it tracks all the files and its extensions and creates lfs tracking syntax.

find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u | awk '{print $1" filter=lfs diff=lfs merge=lfs -text"}' | sed 's/^/*./'

Write output to the .gitattribute file in folders, subfolders and commit.

@codedeep79
codedeep79 / Install git-lfs on Debian.md
Last active October 31, 2022 01:05
Install git-lfs on Debian

Install

To install git-lfs follow these steps:

sudo apt-get install software-properties-common
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install

Some new Git LFS syntax