Category Archives: Uncategorized

Azure Web App使用免费SSL证书

Azure Web App支持免费证书,记录下www.azurespeed.com启用证书步骤

  1. 在Azure Web App里,找到菜单TLS/SSL settings,先点中 Private Key Certificates (.pfx) ,然后点Create App Service Managed Certificates
  1. 在弹出的创建表单里,选中需要证书的域名,点击创建
  1. safd
  2. asdf
  3. asfd

Ubuntu安装NodeJS

网上有很多Ubuntu安装NodeJS的教程,试了好几个,记录一下能work的:

### 安装NodeJS和npm1. v=10 # 这个会装nodejs 10,如果要用其他版本,改成对应版本号即可6,7,8,9等2. curl -sL https://deb.nodesource.com/setup_$v.x | sudo -E bash -3. sudo apt-get install -y nodejs

如果需要删除老的nodejs,可以先运行sudo apt-get purge nodejs npm。

NodeJS装完后可以用node -v和npm -v查看安装的版本

美国Avis租车被多收20美金的高速费

前2天吃午饭的时候听Yuqing童鞋说她出差的时候只走了一次高速,但是信用卡上被Avis多收了20美金。我突然想起前几个月去西雅图的时候也走了一次520高速,赶紧也查了一下信用卡账单,果不其然,也中招了。

我隐约记起租车的时候又提到e-tolls的服务,但是我提车的时候是没有选这个服务的。上网大概查了一下,Avis还真有这么一个条款:https://www.avis.com/en/products-and-services/services/avis-e-toll,里面的这句话解释了这个费用的原因:  You automatically opt into our e-Toll service program and will be charged $3.95 for each day of the entire rental period, including any days on which e-Toll is not used, up to a maximum of $19.75 per rental month, plus incurred tolls at the maximum prevailing rates posted by the toll authority. The charges may take 4-8 weeks after the rental to be billed to your credit card/debit card on file. 翻译过来说就是,只要用了一次eToll,整个租车期间每天都会被收3.95美金的费用,最高到19.75封顶。这个费用会在还车后4至8周从信用卡里扣除。

真是霸王条款啊,记录下来当个教训把。

另:eTolls收费的详情可以在这个网站查询。http://www.e-tolls.com/

Chrome书签不能同步的解决方法

Chrome书签不能同步,主要原因是同步服务器不能访问了,这时候可以这样解决

  1. 现在Chrome里访问
    chrome://sync-internals/,找出同步服务器地址,如下图所示

    image
  2. 打开Windows命令行窗口,ping下面2个地址chrome.google.com,client4.google.com

    image
  3. 更新c:\Windows\System32\drivers\etc\hosts文件,加入如下
    74.125.204.138 chrome.google.com
                64.233.189.113 clients4.google.com 

重新打开Chrome,书签就会自动开始同步了。

使用阿里云Maven库

在C:\Users\{username}\.m2\下创建一个settings.xml文件,内容如下

<?xml version=”1.0″ encoding=”UTF-8″?>

<settings xmlns=”http://maven.apache.org/SETTINGS/1.0.0″

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

xsi:schemaLocation=”http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd”>

<mirrors>

<!– 阿里云仓库 –>

<mirror>

<id>alimaven</id>

<mirrorOf>central</mirrorOf>

<name>aliyun maven</name>

<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>

</mirror>

</mirrors>

</settings>

修改Windows 10的默认浏览器

微软Edge浏览器是Windows 10里的默认浏览器,是用来替代IE的新一代浏览器。现在不管从老版本的Windows升级到Windows 10,或者是运行Windows 10的大版本升级(比如从Windows 10升级到TH2),微软都会把系统默认的浏览器被悄悄地换成Edge浏览器。如果想换成其他浏览器,比如IE或者Chrome,可以用下面步骤:

Continue reading