Skip to content

Instantly share code, notes, and snippets.


Ngoc Pham ngocphamm

View GitHub Profile
ngocphamm / counts only
Last active Jul 19, 2021
rg search results for FZF_DEFAULT_OPTS
View counts only
ngocphamm / Homebrew Zsh on Mac
Last active Feb 21, 2021
Notes on using Homebrew Zsh as default login shell
View Homebrew Zsh on Mac
1. Install Zsh with Homebrew
brew install zsh
2. Add "/usr/local/bin/zsh" to "/etc/shells" file
sudo vim /etc/shells
3. Change to default login shell
chsh -s /usr/local/bin/zsh $USER
4. Make sure new version of Zsh is in active
ngocphamm / xdebug.ini
Created Dec 23, 2020
XDebug 3 config for on-demand step debugging
View xdebug.ini
View gist:24d6b1fe2eed8bf0346112ba087d4a40
~ » brew reinstall php
==> Downloading
Already downloaded: /Users/ngoc/Library/Caches/Homebrew/downloads/1c495d26ace1433ea9cfd1b88cbf959705e4ccc3c3306c6e149da14d49561df8--php-7.4.12.catalina.bottle.tar.gz
==> Reinstalling php
==> Pouring php-7.4.12.catalina.bottle.tar.gz
==> /usr/local/Cellar/php/7.4.12/bin/pear config-set php_ini /usr/local/etc/php/7.4/php.ini system
==> /usr/local/Cellar/php/7.4.12/bin/pear config-set php_dir /usr/local/share/pear system
==> /usr/local/Cellar/php/7.4.12/bin/pear config-set doc_dir /usr/local/share/pear/doc system
==> /usr/local/Cellar/php/7.4.12/bin/pear config-set ext_dir /usr/local/lib/php/pecl/20190902 system
==> /usr/local/Cellar/php/7.4.12/bin/pear config-set bin_dir /usr/local/opt/php/bin system
View gist:e8ebdfd4aa00ba89e0716c24bd312d21
~ » which pecl
~ » which php
~ » /usr/bin/php --version
PHP 7.3.11 (cli) (built: Jun 5 2020 23:50:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
~ » php --version
PHP 7.4.12 (cli) (built: Oct 29 2020 18:37:21) ( NTS )
View gist:ead5f237d7ad36d629206694767df531
downloading xdebug-3.0.0.tgz ...
Starting to download xdebug-3.0.0.tgz (190,176 bytes)
.........................................done: 190,176 bytes
86 source files, building
running: phpize
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
building in /private/tmp/pear/temp/pear-build-root1P36H3/xdebug-3.0.0
ngocphamm / verbose_log.zsh
Created May 16, 2019
ZSH start with -v. Crash.
View verbose_log.zsh
Last login: Thu May 16 16:03:02 on ttys017
# zmodload zsh/zprof
ngocphamm /
Created Apr 9, 2018 — forked from ahmozkya/
Homebrew with DNSMasq + DNSCrypt-proxy (OpenDNS)

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy

Keybase proof

I hereby claim:

  • I am ngocphamm on github.
  • I am ngocphamm ( on keybase.
  • I have a public key ASDIZXf6G4v1aI7sAEUkQRzndpdVrgWxdpHaU_TfqfzStAo

To claim this, I am signing this object: