Frp 一个简单、高效的内网穿透工具
官方发布地址:https://github.com/fatedier/frp/releases
<?php
// zd.example.com和example.com跳转到http://example.com:555
$the_host = $_SERVER['HTTP_HOST'];
$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
if(($the_host == 'zd.example.com')or($the_host == 'example.com'))
{
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://zd.example.com:555'.$request_uri);//
}
// tz.example.com 则跳转到http://example.com/tz.php
elseif($the_host =="tz.example.com")
{
header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://example.com/tz.php");
}
// 其他则跳转到404页面
else
{
Header("Location: /404.html");
}
?>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type ="text/javascript">
document.location.href="http://" + document.location.hostname +":555";
</script>
<head>
<title>document.location</title>
</head>
<body>
<div class="landing-navigation-tablet-top-adjustment"></div>
<a href="http://zd.example.com:555" target="_blank">
<font color=orange size="6px">如果没有跳转请点击(</font></center></a><br>
</a>
</body>
</html>
1、电脑名称、IP地址、MAC地址获取:
ipconfig/all2、刷新DNS:
ipconfig /flushdns1.去除单元格中换行符;
2.Ctrl+F,打开查找替换对话框,在查找中,按住Alt键不放,然后依次按下小键盘中的1和0键,点击全部替换;
3.这样,就将换行符全部替换掉了。

有些时候,你需要检查单元格是否为空白,通常是因为你可能不希望公式没有输入值就显示结果。

此情况下,将 IF 与 ISBLANK 函数搭配使用:
=IF(ISBLANK(D2),"Blank","Not Blank")
这表示如果(D2 为空白,则返回“Blank”,否则,将返回“Not Blank”)。 还可以针对“Not Blank”条件同样轻松地使用自己的公式。 在下一个示例中,我们将使用 "",而不是 ISBLANK。 "" 实际上意味着“没有内容”。

=IF(D3="","Blank","Not Blank")
此公式表示如果(D3 没有内容,则返回“Blank”,否则返回“Not Blank”)。 下面的示例是使用 “” 防止公式在从属单元格空白时进行计算的一种十分常见的方法:
=IF(D3="","0",(D3))
如果(D3 没有内容,则返回0,否则,将计算你的公式)。
以下文本另存为.BAT文件
@echo off
::取消host的只读属性
attrib -r -a -s -h %windir%\system32\drivers\etc\hosts
::复制host文件
copy %~sdp0\hosts C:\Windows\System32\drivers\etc\hosts
::设置host的只读属性
attrib +r +a +s +h %windir%\system32\drivers\etc\hosts
::刷新
ipconfig /flushdns
::刷新
ping -n 2 127.0.0.1 >nul
需要设置的host(如下示例)另存为hosts文件并与.BAT文件在同一文件夹,右键以管理员执行
104.111.167.111 contentstorage.osi.office.net
13.107.42.13 onedrive.live.com
20.190.144.166 login.live.com
40.79.207.82 skyapi.onedrive.live.com
13.107.42.12 d.docs.live.net
52.109.48.6 contentsync.onenote.com
52.109.48.27 hierarchyapi.onenote.com
52.109.124.47 ocws.officeapps.live.com
52.109.48.0 www.onenote.com
13.107.42.16 config.edge.skype.com
52.109.124.51 roaming.officeapps.live.com
52.109.48.4 pagecontentsync.onenote.com
104.111.167.110 api.onedrive.live.com
23.57.112.223 c1-onenote-15.cdn.office.net
13.107.42.12 docs.live.net
104.44.88.28 storage.live.com
20.197.71.89 skydrive.wns.windows.com
20.198.162.78 client.wns.windows.com
52.168.112.67 mobile.pipe.aria.microsoft.com
23.57.114.164 oneclient.sfx.ms
40.79.207.82 skydrivesync.policies.live.net
13.107.42.12 api.onedrive.com
13.107.42.12 public.bn.files.1drv.com
13.107.42.12 public.dm.files.1drv.com
104.111.162.163 cdn.onenote.net
157.240.199.14 ad.atdmt.com
117.18.232.200 officeimg.vo.msecnd.net
13.107.6.171 onenote.officeapps.live.com