Skip to content

Instantly share code, notes, and snippets.

View cobaohieu's full-sized avatar

Hieu C B cobaohieu

View GitHub Profile
@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 / 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": [