Skip to content

Instantly share code, notes, and snippets.

View cobaohieu's full-sized avatar

Hieu C B cobaohieu

View GitHub Profile
@cobaohieu
cobaohieu / stop-all-docker.md
Created September 28, 2025 18:09 — forked from atomkirk/stop-all-docker.md
Stop all Docker containers

I will often run this command to make sure all my docker containers are stopped and removed before running docker-compose up. Sometimes when you restart your system, old containers will start back up automatically in the background.

docker stop $(docker ps -aq) && docker rm $(docker ps -aq)
@cobaohieu
cobaohieu / How to change Lock screen wallpaper on mac OS 12.md
Last active June 14, 2025 06:12
How to change Lock screen wallpaper on mac OS 12

Please go to this path and find the sub directory contain file lockscreen.png at

/Volumes/Macintosh HD/Library/Caches/Desktop Pictures

Open terminal and type this command below then press Enter

sudo chmod -R 777 /Volumes/Monterey HD/Library/Caches/Desktop Pictures
@cobaohieu
cobaohieu / Install FacetimeHD Camera Driver on Macbook Pro 2015 for Ubuntu 22.04 or later.md
Last active June 8, 2025 19:28
Installing the FaceTime HD Camera Driver for Macbook Pro 2015 on Ubuntu 22.04 or later

Guide how to install FaceTimeHD Driver for Macbook Pro 2015 on Ubuntu 22.04 or later

This guide provides step-by-step instructions to install the FaceTimeHD driver for MacBook webcams on Linux (Debian/Ubuntu).
The process includes installing prerequisites, extracting firmware, and building/installing the driver using two methods.

To get full source code without use many times git clone as below

Please clone this repo here and don't forget skip some step, then move to Copy Firmware

cd ~; git clone https://github.com/cobaohieu/facetimehd.git

@cobaohieu
cobaohieu / makedeb.sh
Created June 7, 2025 08:25 — forked from rafael-neri/makedeb.sh
Simple script to create debian package
#!/bin/bash
# Distributed under the GNU GPL
# Check if user is root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# Get path
@cobaohieu
cobaohieu / howto_deb_repackage.txt
Created June 7, 2025 08:25 — forked from shamil/howto_deb_repackage.txt
Howto repackage deb packages
Use folowing steps to repackage dep package:
1: Extract deb package
# dpkg-deb -x <package.deb> <dir>
2: Extract control-information from a package
# dpkg-deb -e <package.deb> <dir/DEBIAN>
3. After completed to make changes to the package, repack the deb
# dpkg-deb -b <dir> <new-package.deb>
@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 / how-to-install-ubuntu-on-MacbookPro-11,5.md
Last active June 12, 2025 09:10 — forked from gbrow004/ubuntu-MBP-16.md
How to install 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