Skip to content

Instantly share code, notes, and snippets.

View cobaohieu's full-sized avatar

Hieu C B cobaohieu

View GitHub Profile
@cobaohieu
cobaohieu / PrintBootCampESDInfo.swift
Last active December 15, 2024 17:39 — forked from nuomi1/PrintBootCampESDInfo.swift
macOS and BootCamp Latest
#!/usr/bin/env swift
//
// PrintBootCampESDInfo.swift
//
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
//
import Foundation
@cobaohieu
cobaohieu / bypass-mdm.md
Last active December 12, 2024 11:58
Turn off MDM on Macbook OS 11.X Big Sur to now

mdm-screen

Prerequisites ⚠️

  • It is advised to erase the hard-drive prior to starting.
  • It is advised to re-install MacOS using an external flash drive.
  • Device language needs to be set to English, it can be changed afterwards.

Follow steps below to bypass MDM setup during a fresh installation of MacOS

@cobaohieu
cobaohieu / ubuntu-on-MacbookPro-11,5.md
Last active December 24, 2024 18:36 — forked from gbrow004/ubuntu-MBP-16.md
Ubuntu on Apple Macbook Pro 15-inch (2015)

Acknowledgements Install Ubuntu on Macbook Pro

Requirements

2 USB drives >= 8GB

Pre-Install

@cobaohieu
cobaohieu / install_yarn_on_ubuntu.md
Created November 5, 2024 18:36
How to install yarn on ubuntu
@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