Skip to content

Instantly share code, notes, and snippets.

Environment

  • VMWare Fusion 10
  • Ubuntu 16.04 LTS

VMWare setup

  • Enable host key bindings of OS X (so it can use Exposes of OS X)
  • Do not map Cmd-C to Ctrl-C, etc.
  • In Display, enable "Use Full Resolution" for retina display.
@ctchuang
ctchuang / Shrink VMWare Disk.md
Last active May 6, 2018 14:57
Shrink VMWare Disk

Guest OS

  • Windows

    Download sdelete from Microsoft Technet

    sdelete -c -z c:\
  • Linux
Solutions
1. Very brutal
sudo apt-get purge ibus
killall ibus-daemon
2. .xinputrc
~/.xinputrc
# Don't run ibus, which steals C-SPC.
@ctchuang
ctchuang / Dockerfile
Last active April 19, 2020 07:52
Dockerfile for Jupiter notebook and nvidia-docker
# See all tag variants at https://hub.docker.com/r/tensorflow/tensorflow/tags/
FROM tensorflow/tensorflow:latest-gpu-py3-jupyter
RUN pip install keras
RUN pip install Pillow
# -m option creates a fake writable home folder for Jupyter.
RUN groupadd -g 1000 justin && \
useradd -m -r -u 1000 -g justin justin
USER justin
@ctchuang
ctchuang / .bashrc
Created April 12, 2020 07:25
pc/mac keyboard layout
if [[ "$OSTYPE" == "linux-gnu" ]]; then
alias mac-keyboard="setxkbmap -option"
alias pc-keyboard="setxkbmap -option altwin:swap_alt_win"
fi