Skip to content

Instantly share code, notes, and snippets.

View ngocphamm's full-sized avatar

Ngoc Pham ngocphamm

View GitHub Profile
~/D/C/O/zen-browser » git clone https://github.com/zen-browser/desktop.git --recurse-submodules
Alias tip: gfc https://github.com/zen-browser/desktop.git --recurse-submodules
Cloning into 'desktop'...
remote: Enumerating objects: 14778, done.
remote: Counting objects: 100% (3014/3014), done.
remote: Compressing objects: 100% (933/933), done.
remote: Total 14778 (delta 2337), reused 2477 (delta 2043), pack-reused 11764 (from 1)
Receiving objects: 100% (14778/14778), 3.81 GiB | 6.57 MiB/s, done.
Resolving deltas: 100% (9413/9413), done.
Updating files: 100% (623/623), done.
@ngocphamm
ngocphamm / counts only
Last active July 19, 2023 06:23
rg search results for FZF_DEFAULT_OPTS
.zsh/main.zsh:3
.tmux/plugins/tmux-fzf/scripts/session.sh:8
.tmux/plugins/tmux-fzf/scripts/command.sh:2
.tmux/plugins/tmux-fzf/scripts/window.sh:12
.tmux/plugins/tmux-fzf/scripts/keybinding.sh:2
.tmux/plugins/tmux-fzf/scripts/clipboard.sh:2
.tmux/plugins/tmux-fzf/scripts/process.sh:4
.tmux/plugins/tmux-fzf/scripts/.fzf-tmux:5
.tmux/plugins/tmux-fzf/scripts/pane.sh:16
Downloads/Temp/_local---custom/custom.plugin.zsh:1
@ngocphamm
ngocphamm / xdebug.ini
Created December 23, 2020 20:10
XDebug 3 config for on-demand step debugging
xdebug.mode=debug
xdebug.start_with_request=trigger
xdebug.trigger_value=killdabugs
xdebug.log=/usr/local/var/log/xdebug.log
~ » brew reinstall php
==> Downloading https://homebrew.bintray.com/bottles/php-7.4.12.catalina.bottle.tar.gz
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
~ » which pecl
/usr/local/bin/pecl
~ » which php
/usr/local/bin/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 )
@ngocphamm
ngocphamm / gist:ead5f237d7ad36d629206694767df531
Created November 25, 2020 18:49
xdebug 3 upgrade failed
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
ngocphamm / verbose_log.zsh
Created May 16, 2019 20:11
ZSH start with -v. Crash.
Last login: Thu May 16 16:03:02 on ttys017
# zmodload zsh/zprof
# setopt SOURCE_TRACE
path=(
/usr/local/{bin,sbin}
$path,
$HOME/.composer/vendor/bin
)
@ngocphamm
ngocphamm / README.md
Created April 9, 2018 04:21 — forked from ahmozkya/README.md
Homebrew with DNSMasq + DNSCrypt-proxy (OpenDNS)

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy
@ngocphamm
ngocphamm / keybase.md
Created December 24, 2017 22:43
Keybase Proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

INSERT INTO 'snippets'
select 487 as 'sid', ':musical_note:' as 'title', '🎵' as 'body', 'None' as 'syntax', 0 as 'usageCount'
union select 488, ':musical_score:', '🎼', 'None', 0
union select 489, ':mute:', '🔇', 'None', 0
union select 490, ':nail_care:', '💅', 'None', 0
union select 491, ':name_badge:', '📛', 'None', 0
union select 492, ':necktie:', '👔', 'None', 0
union select 493, ':negative_squared_cross_mark:', '❎', 'None', 0
union select 494, ':neutral_face:', '😐', 'None', 0
union select 495, ':new:', '🆕', 'None', 0