Skip to content

Instantly share code, notes, and snippets.

View LiberiFatali's full-sized avatar

Cless LiberiFatali

  • Vietnam
View GitHub Profile
@LiberiFatali
LiberiFatali / FreebudsPro.md
Created January 19, 2024 02:06 — forked from Aritzherrero4/FreebudsPro.md
Huawei Freebuds Pro - Linux (KDE Neon) configuration and AAC audio

Huawei Freebuds Pro - Linux (KDE Neon) configuration and AAC audio

The default configuration of KDE Neon does not work with the headphones. I have managed to connect them doing some changes, and adjusting some configurations. This resumes that, to keep it if I need to reconfigure them in the future.

This configuration has worked for me using the following setup:

  • KDE Neon 5.20, kernel 5.4.0
  • Freebuds Pro version 1.9.0.256
@LiberiFatali
LiberiFatali / aws-ec2-redis-cli.md
Created October 16, 2023 10:58 — forked from todgru/aws-ec2-redis-cli.md
AWS redis-cli on EC2
@LiberiFatali
LiberiFatali / github-drawio-demo.md
Created September 18, 2023 11:25 — forked from philip-gai/github-drawio-demo.md
How to integrate diagrams.net (draw.io) with your GitHub repo

Embedding Diagrams in GitHub Markdown

This explains and demos how to use diagrams.net (draw.io) diagrams in your GitHub repo.

  • See repo for more details

Benefits of using diagrams.net in GitHub repositories

  1. Diagrams are stored in your repository with your code and docs
  2. Diagram access is controlled by GitHub repository access
@LiberiFatali
LiberiFatali / enhanced-nvidia-smi.md
Created August 29, 2023 02:17 — forked from padeoe/enhanced-nvidia-smi.md
Show Username & full process command with nvidia-smi

This script enhances the functionality of nvidia-smi and provides the following information:

  • Username
  • full process Command
  • GPU ID
  • PID

This is useful on multi-user servers and can be used to quickly identify which user is using the GPU and running what kind of program.

@LiberiFatali
LiberiFatali / cuda_install.md
Created August 22, 2023 11:34 — forked from denguir/cuda_install.md
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@LiberiFatali
LiberiFatali / sources.list
Created June 30, 2023 04:39 — forked from ishad0w/sources.list
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
@LiberiFatali
LiberiFatali / GITCRASHCOURSE.MD
Created June 27, 2023 03:11 — forked from brandon1024/GITCRASHCOURSE.MD
Git Crash Course for Beginners

Git Crash Course for Beginners

Preface

A good understanding of Git is an incredibly valuable tool for anyone working amongst a group on a single project. At first, learning how to use Git will appear quite complicated and difficult to grasp, but it is actually quite simple and easy to understand.

Git is a version control system that allows multiple developers to contribute to a project simultaneously. It is a command-line application with a set of commands to manipulate commits and branches (explained below). This tutorial will help you get started, and in no time you will be a Git Ninja!

Contents:

@LiberiFatali
LiberiFatali / rtsp_authentication.py
Last active June 23, 2023 01:47 — forked from crayfishapps/rtsp_authentication.py
RTSP client with basic and digest authentication - converted to Python3
#! /usr/bin/python
import socket,time,string,base64,hashlib,xml.etree.ElementTree as ET
import sys
RTSP_VERSION = "RTSP/1.0"
LINE_SPLIT_STR = "\r\n"
HEADER_END_STR = LINE_SPLIT_STR*2
@LiberiFatali
LiberiFatali / m3u8.md
Last active June 2, 2023 07:03 — forked from primaryobjects/m3u8.md
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.
@LiberiFatali
LiberiFatali / pyqt_icons.py
Created March 16, 2023 09:35 — forked from ostr00000/pyqt_icons.py
Simple program to display all icons available for pyqt
"""
Create widget with available icons from qt and based on freedesktop.org
https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
"""
from PyQt5.QtCore import QSize
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QGridLayout, QStyle, \
QFormLayout, QLabel, QScrollArea, QLineEdit, QTabWidget