Skip to content

Instantly share code, notes, and snippets.

View cobaohieu's full-sized avatar

Hieu C B cobaohieu

View GitHub Profile
@cobaohieu
cobaohieu / Command Update All Python Packages.md
Last active September 26, 2023 02:56
Command Update All Python Packages

Open Terminal or Windows Powershell

Get a list of all the outdated packages

pip list --outdated

or

@cobaohieu
cobaohieu / settings.json
Last active September 8, 2023 13:28
Make Windows Terminal blur on Windows11
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [

Go to macOS Recovery mode

Restart your Mac computer.

Simultaneously press and hold the Cmd and R keys during startup and boot the computer into the macOS Recovery mode.

Go to the Utilities menu and select Terminal.

In the Terminal, type the command below and press Enter.

Install neccessary

sudo apt-get install linux-headers-$(uname -r)

Clone source

git clone https://github.com/linux-apfs/linux-apfs-rw.git
cd linux-apfs-rw

Fix Ubuntu issue apt fix broken

Please follow this step below

sudo apt update
sudo apt --fix-missing update
sudo dpkg -i --force-overwrite <your path>/<your app want to install>.deb
sudo apt -f install -y
sudo dpkg --configure -a
sudo dpkg -l | grep ^..r
@cobaohieu
cobaohieu / install_and_mount_apfs_fuse_on_Ubuntu_22.04.md
Last active September 10, 2022 16:46
install_and_mount_apfs_fuse_on_Ubuntu_22.04.md

Some appilcations requirement such as

sudo apt update
sudo apt install -y fuse libfuse3-3 libfuse3-dev bzip2 libbz2-dev libicu-dev libz-dev libattr1-dev
sudo apt install -y  zlib1g-dev clang cmake gcc-c++ git g++ build-essential 

For older versions of Ubuntu, please install:

sudo apt install -y fuse libfuse-dev libicu-dev bzip2 cmake libz-dev libbz2-dev libattr1-dev
sudo apt install -y clang git g++ build-essential 
@cobaohieu
cobaohieu / Install_OpenCV_V4.4.0_on_jetsonano.sh
Created March 12, 2022 07:23
Install_OpenCV_V4.4.0_on_jetsonano.sh
#!/bin/bash
# License: MIT. See license file in root directory
# Copyright(c) JetsonHacks (2017-2019)
# Modify by SouthernVEVO (2021-2022)
cd ~
OPENCV_VERSION=4.4.0
#4.5.3
# Jetson Nano
@cobaohieu
cobaohieu / install_neofetch_on_windows10.md
Last active December 7, 2021 12:19
install_neofetch_on_windows10

Open Powershell windows and run line by line

powershell Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop was installed successfully
scoop install neofetch
neofetch
##install https://brew.sh
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew upgrade
##nvidia gfx driver install
https://github.com/vulgo/webdriver.sh