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 / Cài đặt Unreal Engine 4 trên Debian.md
Last active August 22, 2022 08:06
Cài đặt Unreal Engine 4 trên Debian

Step 1 - Registering an Epic Games account

You’ll need to have an Epic Games account to gain access to the Unreal Engine on your Debian system. To create an Epic account, start by heading over to the official Unreal Engine website.

Step 2 - Configuring your GitHub account

Unfortunately, Epic doesn't distribute the Unreal Engine via a downloadable installer. Instead, you'll have to get the engine directly from GitHub. To do that, your GitHub account must be connected to your Epic account.

Step 3 - Downloading Unreal Engine 4 on Debian

@codedeep79
codedeep79 / Cài đặt Python docutils trong Linux.md
Created August 21, 2022 10:12
Cài đặt Python docutils trong Linux

Docutils is an open-source text processing system. It is written in Python language. It is used to process simple text or plaintext documents into some useful formats like LaTex, HTML, OpenDocument, XML, etc.

Step 1

First of all, we will install Python3 on our Linux Machine.

Step 2

This step is to update the Linux used by the user to get the latest version so that it can make the process much faster and the system updates will make the installing easily without facing any issue.

sudo apt-get update

Step 3: Install the docutils.

@codedeep79
codedeep79 / Cài đặt Jmespath Python trong Linux.md
Created August 21, 2022 10:03
Cài đặt Jmespath Python trong Linux

Jmespath is known as the JSON query language for Python. It is used to find or extract the needed data from the JSON document or dictionary very quickly.

Step 1

First of all, we will install Python3 on our Linux Machine.

Step 2

Now, we install the pip module which is required to install and manage the packages in Python3. Use the following command for installation:

sudo apt-get install python3-pip python3-dev
pip3 --version

@codedeep79
codedeep79 / Cài đặt Pyglet Python trên Linux.md
Last active August 21, 2022 09:51
Cài đặt Pyglet Python trên Linux

Pyglet is a library for the Python programming language that provides an object-oriented application programming interface for the creation of games and other multimedia applications.

Features of pyglet:

  • It does not have any external dependencies.
  • It allows you to load images, sound, music, and videos in any format.
  • It is completely written in Python.
  • It also uses multiple windows and multi-monitor desktops effectively.

Step 1

First of all, we will install Python3 on our Linux Machine.

@codedeep79
codedeep79 / Cài đặt Glob Python trong Linux.md
Created August 21, 2022 09:41
Cài đặt Glob Python trong Debian

The glob module finds all the pathnames matching a specified pattern according to the rules used by the Unix shell, although results are returned in arbitrary order.

Step 1

First of all, we will install Python3 on our Linux Machine.

Step 2

Now, we install the pip module which is required to install and manage the packages in Python3. Use the following command for installation:

sudo apt-get install python3-pip python3-dev
pip3 --version

@codedeep79
codedeep79 / How to fix "pip installation error on pillow".md
Last active August 21, 2022 03:39
How to fix "pip installation error on pillow"

I just ran pip install pillow on pycharm windows but it gives an error:

Stored in directory: /home/debian/.cache/pip/wheels/5c/f4/45/389dc711f0c5ff9adeb5245397ab18bf75182e8cff9fbfa916
  Running setup.py bdist_wheel for pillow ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7itj7ml8/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-0w88m9ue --python-tag cp37:
  running bdist_wheel
  running build
  running build_py
  creating build
@codedeep79
codedeep79 / _cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory.md
Last active August 21, 2022 02:28
E: c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory

There's a dependency missing on your system, or more than one. Try this:

sudo apt-get install libffi-dev

If get error:

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
@codedeep79
codedeep79 / Could not get lock.md
Created August 21, 2022 02:19
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

I'm trying to run this command in the terminal:

sudo apt-get install libffi-dev

This is the error message I get:

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

To solve this error, run in terminal:

@codedeep79
codedeep79 / Install Theano on Debian.md
Last active August 21, 2022 03:37
Install Theano on Debian

Theano is a Python-based library that is basically used in the operations of mathematics. We can perform operations on multi-dimensional arrays so efficiently with this library. The main use of this library is done in building advanced deep learning projects or in the process of data visualization.

Requirements:

  • Python3
  • Python3-pip
    sudo apt-get install python3-pip python3-dev
    pip3 --version
    

@codedeep79
codedeep79 / Check Graphics Card Details in Linux.md
Created August 20, 2022 15:46
Check Graphics Card Details in Linux

Open the Linux terminal in your system and use the following command:

lspci | grep VGA

After executing the command, you will get information about your graphic card like this: