Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nguyenvulong on github.
  • I am nguyenvulong (https://keybase.io/nguyenvulong) on keybase.
  • I have a public key ASCTRllbW2MfFBEjTvKM8JpbKWiPXlbR7qdHezNzXlCkMwo

To claim this, I am signing this object:

#credit korakot: https://stackoverflow.com/questions/60775160/install-python-3-8-kernel-in-google-colaboratory
# install Anaconda3
!wget -qO ac.sh https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
!bash ./ac.sh -b
# a fake google.colab library
!ln -s /usr/local/lib/python3.6/dist-packages/google \
/root/anaconda3/lib/python3.8/site-packages/google
@nguyenvulong
nguyenvulong / Create a Windows Install USB on MacOS
Last active April 12, 2024 08:58
Create a bootable Windows 11 USB drive on your Macbook
steps
0. download an ISO file of windows from the official website
1. mount the ISO file by double-clicking on the downloaded ISO file
2. plug in the USB, format it with `exFAT`
3. open the Terminal, run `diskutil list`, it will show the external drive, something like `dev/diskX`, my case `X` = 4
4. (if step 5 fails (device busy), you should run `diskutil umount /dev/disk4s1` and `diskutil umount /dev/disk4s2` to umount the partitions first)
5. run `sudo dd if=/path/to/windows11.iso of=/dev/diskX bs=1m`. BE CAREFUL.
6. wait until it finishes, then eject the USB, run `diskutil eject /dev/diskX`