Skip to content

Instantly share code, notes, and snippets.

View hefengxian's full-sized avatar
🐶

Frank hefengxian

🐶
  • 10:13 (UTC +08:00)
View GitHub Profile
@hefengxian
hefengxian / nvm-npm-mirror.md
Last active July 14, 2023 07:39
NVM & NPM 使用国内镜像

NVM 加速

安装 Node.js 一般都是用 nvm

但是安装之后使用体验就不咋地了,由于某些不可变原因,国内网络就不好吐槽了;就连执行一下 nvm ls-remote 都要很久。

当然“道”高一尺“魔”高一丈,聪明的国人肯定也想出了对应的解决方案,就是建立了各种各样的镜像;比如淘宝源 淘宝 NPM 镜像

所以加速 nvm 的方法就是使用 NPM 淘宝的 node.js 镜像。

@hefengxian
hefengxian / git-proxy-setting.md
Last active July 24, 2023 16:09
Git 设置代理

Github 上面克隆项目龟速的解决方案

对于 http[s]

这里分 2 种情况,作用全局还是特定

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
@hefengxian
hefengxian / php7_build_ubuntu.sh
Created June 12, 2018 12:16 — forked from m1st0/php_build_ubuntu.sh
Compiling PHP 7 on Ubuntu 15.04 with Various Supported Modules
#! /bin/bash
# PHP 7 Initial Compile #
# Author: Maulik Mistry
# Date: Aug 04, 2017
# References:
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
#
# License: BSD License 2.0