Skip to content

Instantly share code, notes, and snippets.

@antruongnguyen
antruongnguyen / install-xdebug-on-macOs-Mojave-header-issue.md
Last active October 11, 2018 07:26
Installing xdebug on macOs Mojave - 'php.h' file not found

Installing xdebug on macOs Mojave - 'php.h' file not found

Reinstall the command line tools

xcode-select --install

Reinstall the header files

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
@antruongnguyen
antruongnguyen / delete_git_submodule.md
Last active September 14, 2018 04:07 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule <name>"
  • Delete the now untracked submodule files rm -rf path_to_submodule

#Windows eclipse.exe -vmargs -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044

#Mac /eclipse.app/Contents/MacOS/eclipse -vmargs -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044

#Note Port 1044 could be changed

@antruongnguyen
antruongnguyen / 0_reuse_code.js
Created June 23, 2016 09:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console