Windows 10 修改无线网卡MAC地址

查看并复制无线网卡名称
ipconfig /all

win + R,regedit 打开注册表编辑器

搜索无线网卡名称
直到到达 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\00xx
(这里的xx是无线网卡对应的编号,记下此数值)


新建 mac.reg,将00xx换成上面搜到的编号
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\00xx\Ndi\params\NetworkAddress]
"Default"=""
"LimitText"="12"
"optional"="1"
"ParamDesc"="Network Address"
"type"="edit"
"UpperCase"="1"

导入 mac.reg 到注册表,去网络连接属性页面就可以修改Mac地址了(第二位必须是2、6、A、E,xp系统下无此限制)

查看是否修改成功
ipconfig /all

Magento 2.1.2 安装之后报错

Magento 2 Installation Fatal Error - Cannot instantiate interface
vi nginx.conf
root $MAGE_ROOT/pub;
setup/index.php/navigation' has been denied (see security.limit_extensions)" while reading response header from upstream:
vi nginx.conf
location /setup {
    root $MAGE_ROOT;
    location ~ ^/setup/index.php {

        ### This fixes the problem:
        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
        ################################
	}
}
css and js 404:
php bin/magento setup:static-content:deploy
php bin/magento setup:static-content:deploy 'zh_Hans_CN'

导入中文翻译文件:
https://github.com/Magento2Translations/language_zh_hans_cn
Upload the contents to /app/i18n/magento2translations/zh_Hans_CN.
The files should then be located like this /app/i18n/magento2translations/zh_Hans_CN/zh_Hans_CN.csv.
Go to your Magento admin panel and clear the caches.

Configure Magento to use memcached:
1.Open /app/etc/env.php in a text editor.
2.Locate the following:
'session' =>
    array (
    'save' => 'files',
),
3.Change it as follows:
PHP memcached extension
'session' =>
   array (
      'save' => 'memcached',
      'save_path' => ':'
),
Verify memcached is working with Magento:
1.Delete the contents of the following directories under your Magento installation directory:
rm -rf var/cache/* var/page_cache/* var/session/*
2.Go to any page on the storefront.
3.Log in to the Magento Admin and browse to several pages.
If no errors display, congratulations! memcached is working! You can optionally look at memcached storage as discussed in the next step.

Laravel phpunit

https://phpunit.de/

https://phar.phpunit.de/phpunit-old.phar
chmod +x phpunit-4.8.27.phar
sudo mv phpunit-4.8.27.phar /usr/local/bin/phpunit

phpunit –version
phpunit

Windows 8.1 禁止自动下载 Windows 10

方法一:卸载《获取Windows10》KB3035583更新补丁
  这个补丁就是自动下载Win10安装包的“罪魁祸首”,你可以在Windows7/Windows 8.1中Windows更新的“已安装更新”中找到它。由于该更新等级为“重要”,卸载后,系统可能会再次搜索到该更新,并提示安装。此时你应该取消安装勾选,并且隐藏该更新。
推荐:
方法二:使用微软KB3065987/KB3065988更新阻止Win10安装包下载
这两个更新分别用于Win7和Win8.1系统。你可以通过Windows更新下载并安装。在此之前,你应该进入Windows更新的“已安装更新”中检查该更新是否安装。
具体操作如下:
  1、按Win+R,在运行中输入regedit后回车,打开注册表编辑器
  2、定位到HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
  注意:若没有WindowsUpdate项,可在点击上图中Windows目录后,在右侧空白处手动点击右键新建。
  3、点击WindowsUpdate,在右边空白处点击右键,新建DWORD(32位)值,命名为DisableOSUpgrade
  4、双击打开DisableOSUpgrade,将数值数据改为1,点击“确定”即可
  此时你可以重启电脑以便确保修改迅速生效。如果你想恢复Win10下载,可以直接删除DisableOSUpgrade。