• dotnet-publish.sh dotnet publish 命令
    netnr 2021-04-07 353
    dotnet publish  # 跨平台环境依赖版
    dotnet publish ~/projects/app1/app1.csproj  # 发布指定项目
    dotnet publish -c Release -r linux-x64  # 发布指定平台 linux-64 独立版
    dotnet publish -c Release -r win-x64 --self-contained false # 发布指定平台环境依赖版
    
    # 参数说明
    # -p:PublishReadyToRun=true         缩短应用程序的启动时间,但代价是增加应用程序的大小
    # -p:PublishSingleFile=true         打包到特定于平台的单个文件可执行文件中
    # -p:PublishTrimmed=true            剪裁未使用的库以减小应用的部署大小
    # --self-contained [true|false]     运行时随应用程序一同发布,默认为 true
  • 三十六计 36计
    netnr 2021-04-02 346
  • TinyMCE demo
    netnr 2021-04-02 23
  • pd-case-conversion.vbs PowerDesigner 表结构和字段大小写转换
    netnr 2021-01-11 5
    Option Explicit  
    ValidationMode = True  
    InteractiveMode = im_Batch  
    Dim mdl ' 当前模型  
    ' 获取当前模型  
    Set mdl = ActiveModel  
    If (mdl Is Nothing) Then  
       MsgBox "没有打开一个模型" 
    ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then  
       MsgBox "当前模型不是一个PDM"
  • crontab.sh Linux 定时任务 crontab
    netnr 2021-01-06 314
    crontab -l # 列表
    crontab -e # 编辑
    
    vi /etc/crontab # 编辑
    crontab /etc/crontab # 生效
    
    # 注意末尾保留一空行
    
    crontab -h # 帮助
  • 水友邮件:还没有正式确定关系,下周出去玩,怎么订酒店房间 66:当然是订两间房啊,但是可以睡一间房 douyu/156277/66
    骚话 netnr 2020-12-20 47
  • 截图全屏
    netnr 2020-12-18 6
  • vscode-remote-ssh.sh vscode remote 密钥连接
    netnr 2020-12-17 326
    # 生成密钥
    ssh-keygen -t ed25519 -C "netnr"
    
    # 服务器端配置公钥,拷贝客户端公钥 id_ed25519.pub 内容写入服务器
    vi ~/.ssh/authorized_keys
    
    # 其它配置(以上配置完成已经可以了)
    # 文件权限要求
    chmod 600 authorized_keys
    chmod 700 ~/.ssh
  • 404
    netnr 2020-12-07 4
  • 杂记
    csharp database linux netnr 2020-12-03 1012
  • profile.sh 环境变量
    netnr 2020-10-28 333
    # 全局变量
    vi /etc/profile # 编辑
    PATH=$PATH:/package/app/node/bin
    export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL # 在该行前面加
    source /etc/profile # 生效
    
    # 局部变量
    vi ~/.bash_profile # 编辑
    alias nodejs=/package/app/node/bin
    source ~/.bash_profile # 生效
  • install-mysql-win.md Windows 系统安装 MySQL
    netnr 2020-10-21 6
    - 下载地址:https://dev.mysql.com/downloads/mysql
    - 解压包,放置一个目录下(不含中文或空格的路径)
    - 在 **bin** 同级目录创建 **my.ini** 文件和 **data** 文件夹
    - my.ini 文件内容
    ```
    [mysqld]
    # 设置 3306 端口
    port=3306
    # 设置 mysql 的安装目录
    basedir=E:\\mysql-8.0.22-winx64
  • oracle_expdp_impdp.sh Oracle 数据库导入导出
    netnr 2020-10-14 330
    # 按用户导出
    expdp system/oracle@orcl schemas=$user dumpfile=$dbname.dmp logfile=$dbname.log directory=DATA_PUMP_DIR
    # 按表名导出
    expdp system/oracle@orcl tables=($TABLE1,$TABLE2) dumpfile=$dbname.dmp logfile=$dbname.log directory=DATA_PUMP_DIR
    # 按用户导入(表覆盖)
    impdp system/oracle@orcl schemas=$user dumpfile=$dbname.dmp logfile=$dbname.log directory=DATA_PUMP_DIR table_exists_action=REPLACE
    # 按用户导入(转换空间)
    impdp system/oracle@orcl schemas=$user TRANSFORM=segment_attributes:n dumpfile=$dbname.dmp logfile=$dbname.log directory=DATA_PUMP_DIR table_exists_action=REPLACE
    
    # 导入导出包权限设置
  • netsh-http.bat netsh命令监听IP(可实现IIS、nginx共用80端口)
    netnr 2020-09-18 343
    :: 显示监听的IP列表
    netsh http show iplisten
    
    :: 添加监听IP
    netsh http add iplisten ipaddress=127.0.0.1
    
    :: 删除监听IP
    netsh http delete iplisten 127.0.0.1
  • aspnet_regiis.bat Framework注册IIS
    netnr 2020-09-18 314
    @echo off
    title .NET Framework Register IIS
    color 5f
    
    echo.---------- .NET Framework v2 Register IIS
    echo.
    
    %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
    %windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
  • install-iis.bat 一键安装IIS
    netnr 2020-09-18 324
    @echo off
    title Install IIS
    color 5f
    
    echo.---------- Install IIS about 3-5 Minutes
    echo.
    
    dism /Online /Enable-Feature /FeatureName:IIS-ApplicationDevelopment	/FeatureName:IIS-ASP	/FeatureName:IIS-ASPNET    /FeatureName:IIS-BasicAuthentication    /FeatureName:IIS-CGI    /FeatureName:IIS-ClientCertificateMappingAuthentication    /FeatureName:IIS-CommonHttpFeatures    /FeatureName:IIS-CustomLogging    /FeatureName:IIS-DefaultDocument    /FeatureName:IIS-DigestAuthentication   /FeatureName:IIS-DirectoryBrowsing   /FeatureName:IIS-FTPExtensibility   /FeatureName:IIS-FTPServer   /FeatureName:IIS-FTPSvc   /FeatureName:IIS-HealthAndDiagnostics   /FeatureName:IIS-HostableWebCore   /FeatureName:IIS-HttpCompressionDynamic   /FeatureName:IIS-HttpCompressionStatic   /FeatureName:IIS-HttpErrors   /FeatureName:IIS-HttpLogging   /FeatureName:IIS-HttpRedirect   /FeatureName:IIS-HttpTracing   /FeatureName:IIS-IIS6ManagementCompatibility   /FeatureName:IIS-IISCertificateMappingAuthentication   /FeatureName:IIS-IPSecurity   /FeatureName:IIS-ISAPIExtensions   /FeatureName:IIS-ISAPIFilter   /FeatureName:IIS-LegacyScripts   /FeatureName:IIS-LegacySnapIn   /FeatureName:IIS-LoggingLibraries   /FeatureName:IIS-ManagementConsole   /FeatureName:IIS-ManagementScriptingTools   /FeatureName:IIS-ManagementService   /FeatureName:IIS-Metabase   /FeatureName:IIS-NetFxExtensibility   /FeatureName:IIS-ODBCLogging   /FeatureName:IIS-Performance   /FeatureName:IIS-RequestFiltering   /FeatureName:IIS-RequestMonitor   /FeatureName:IIS-Security   /FeatureName:IIS-ServerSideIncludes   /FeatureName:IIS-StaticContent   /FeatureName:IIS-URLAuthorization   /FeatureName:IIS-WebDAV   /FeatureName:IIS-WebServer   /FeatureName:IIS-WebServerManagementTools   /FeatureName:IIS-WebServerRole   /FeatureName:IIS-WindowsAuthentication   /FeatureName:IIS-WMICompatibility   /FeatureName:WAS-ConfigurationAPI   /FeatureName:WAS-NetFxEnvironment   /FeatureName:WAS-ProcessModel   /FeatureName:WAS-WindowsActivationService
    dism /online /enable-feature /featurename:IIS-ISAPIFilter
    dism /online /enable-feature /featurename:IIS-ISAPIExtensions
  • NSFWJS 鉴黄
    netnr 2020-09-13 25