We’ve found 78 results

netnr / web.config xml
2020-05-17 08:43
IIS 重写 URL,移除 .html 后缀,依赖 URL Rewrite
<!-- web.config -->

<configuration>
  <system.webServer>
  
    <rewrite>
      <rules>
        <rule name="RewriteHTML">
          <match url="(.*)" />
          <conditions logicalGrouping="MatchAll">
netnr / hostednetwork powershell
2020-04-09 09:56
电脑开启 WIFI 热点
# 示例:netsh wlan set hostednetwork mode=allow ssid=SSID名称 key=WIFI密码
netsh wlan set hostednetwork mode=allow ssid=NB key=notebook

# 开启
netsh wlan start hostednetwork

# 关闭
netsh wlan stop hostednetwork
netnr / docker-manager.sh shell
2020-03-28 16:19
docker可视化工具Portainer部署与汉化
docker search portainer # 搜索包
docker pull portainer/portainer # 下载镜像
# 本机部署
docker run -d -p 90:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data --name prtainer-test portainer/portainer
# 汉化部署(须下载汉化包)
docker run -d -p 90:9000 --restart=always  -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data -v /package/portainer_cn:/public --name prtainer-test  portainer/portainer
# 访问 ip:90,初始化账号、密码,选择 Local --> Connect

# help
https://www.cnblogs.com/Bug-Hunter/p/12023130.html
netnr / yum.sh shell
2020-03-22 12:02
yum命令管理
yum install package1            # 安装指定的安装包package1
yum groupinsall group1          # 安装程序组group1

yum update                      # 全部更新
yum update package1             # 更新指定程序包package1
yum check-update                # 检查可更新的程序
yum upgrade package1            # 升级指定程序包package1
yum groupupdate group1          # 升级程序组group1

yum info package1               # 显示安装包信息package1
netnr / npm-publish shell
2020-02-27 17:35
NPM发布包
npm login   # 登录
npm init    # 初始化 package.json 包的信息
npm publish # 发布
netnr / npm-registry shell
2020-02-27 17:24
设置或清除npm淘宝镜像
# 设置淘宝镜像
npm config set registry https://registry.npm.taobao.org

# 清除淘宝镜像,恢复
npm config set registry https://registry.npmjs.org
netnr / ncu shell
2020-01-14 16:38
更新package.json中所有的依赖
npm install -g npm-check-updates    # 安装 npm-check-updates

ncu --loglevel verbose --packageFile package.json   # 查看

ncu -u --packageFile package.json   # 更新配置

npm install # 删除node_modules目录,重新下载依赖

# help
https://github.com/raineorshine/npm-check-updates/issues/136
netnr / OracleManager.sql sql
2020-01-10 11:23
Oracle表空间、用户、角色权限的管理
-- 查看表空间物理文件的名称及大小
SELECT tablespace_name,
       file_id,
       file_name,
       round(bytes / (1024 * 1024), 0) total_space
  FROM dba_data_files
 ORDER BY tablespace_name;
 
-- 查询所有用户所对应的表空间,有dba权限的帐号,如sys,system
select username, default_tablespace from dba_users;
netnr / wsa.js javascript
2019-12-08 15:21
Web Speech API ,朗读页面选中的内容
var ssu = {
    init: function () {
        var txt = window.getSelection().toString();
        ssu.speech(txt);
    },
    speech: function (txt) {
        if (!txt || txt.trim() == "") {
            txt = "未选择文字";
        }
        var ws = new window.SpeechSynthesisUtterance(txt);
netnr / upload.php php
2019-11-14 07:20
PHP分片上传
<?php

/**
 * 接收处理上传文件,示例项目:https://gs.zme.ink/big
 */

// 设置跨域头
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:PUT,POST,GET,DELETE,OPTIONS');
header('Access-Control-Allow-Headers:*');
ˆ