自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (1)
  • 收藏
  • 关注

原创 【颜色】Web 颜色记录

Log Colors/日志颜色:Node.JS – Winston:{ "ERROR": "#A94041,rgb(169, 64, 65)", "WARN": "#E4B463,rgb(228, 180, 99)", "INFO": "#7F8D4D,rgb(127, 141, 77)", "VERBOSE": "#8D4F87,rgb(141, 79, 135)", "DEBUG": "#82D6CF,rgb(130, 214, 207)", "SILLY": "#6E9ABC,rgb(

2022-01-13 17:41:00 1571 1

原创 【PowerShell】常用命令

cat/Get-Content:带行号PS> $ cat <filePath> | ForEach-Object { "{0} {1}" -f $_.ReadCount,$_ }# ORPS> $ forEach ($i in (cat <filePath>)) { "{0} {1}" -f $i.ReadCount,$i }

2022-01-08 14:15:24 2474 1

原创 【Postgresql】常用命令

Connection查看所有的连接$ SELECT datid, datname, pid, usesysid, usename, application_name FROM pg_stat_activity;

2021-12-29 17:38:15 359

原创 【Windows】Tricks(使用技巧)

先记录,后整理Shortcut 快捷键打开 Active Windows Menu 活动窗口菜单 &esmp; 网上的教程都是说使用 Alt + Space 键,但对我来说这是无效的。 &esmp; 我自己无意中发现了 要使用 Alt + Shift + Space 键才是有效的,后面测试了一下,有些窗口还是打不开菜单。  打开上面菜单后,按 M 就进入可移动状态。可以使用方向键一点一点的移动。对于微调窗口的位置有很好的作用,对应如下:X: Maximize 最大化窗口.

2021-12-24 15:16:05 381

原创 【NodeJS】Tricks

查看 Node 所有版本:  查看所有 Node.JS 的版本: https://nodejs.org/dist/index.json下载到本地:$ curl -O https://nodejs.org/dist/index.jsonPowershell:# 查询 npm 为 7 版本的对象PS> $ [System.IO.File]::ReadAllText("./index.json") | ConvertFrom-Json | Where-Object npm -Like "7*"

2021-12-23 16:17:01 445

原创 【WSL】记录

先记录,后整理HostMachine(宿主机)获取HostMachine IP$ cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }'Proxy:  PS: 代理的端口号是系统代理的端口号,同时 vpn 软件 一定要允许局域网链接.设置代理$ http_proxy=http://$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }'):7890$ ht.

2021-12-22 14:11:24 79

原创 【WSL】postgresql 安装与使用

Debian and Ubuntu:根据官网执行下面命令:# Create the file repository configuration:sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'# Import the repository signing key:wget --quie

2021-12-08 11:20:34 1123

原创 【Windows】OPS command

任务:列出任务列表:PS> $ tasklist /FI "imagename eq postgres.exe"# 或者PS> $ tasklist /FI "IMAGENAME eq postgres.exe"

2021-11-30 17:41:18 279

原创 【Java,SpringBoot】Unit Tests

先记录,再整理  要做单元测试, 目录结构如下(一定要在 test 下面配置上 resoruces,它读取不到 main 中的 resources ):./src|-- main| |-- java| `-- resources| |-- application-dev.yaml| |-- application-local.yaml| |-- application.yaml`-- test |-- java `-- res.

2021-11-17 15:31:44 356

原创 【Elixir】 bcrypt_elixir 在 windows 中的 Compile 错误

描述  开发 Elixir 的时候,基本都是在 MacOS 或者 Linux 下。对于 bcrypt_elixir 这个包 需要用到 nmake 去构建和编译。安装必须工具  先去下载安装 Microsoft Visual Studio, 我这里安装的是2019的。为了必须的 nmake 需要安装 使用 C++ 的桌面开发.  安装完成后,先设置 nmake到环境变量中。  如果不知道 nmake 在哪,可以打开资源管理器 去到 C:\Program Files (x86)\Microsoft

2021-10-20 10:53:47 177

原创 【IDEA】Live Template(代码模板)快速开发

先记录,后整理timestampLiveTemplate.groovy:import java.time.LocalDateTimeimport java.time.ZoneOffset;return LocalDateTime.now().toEpochSecond(ZoneOffset.of("+8"));

2021-10-14 02:03:31 204

原创 【Date And Time】编程中的时间概念与编程处理时间方法

先记录后整理记录长度:当前日期: 2021-10-12  时间戳长度: 10位(秒)1634017713,13位(毫秒)1634017713684  下面程序生成的时间/时间戳,是当前时区还是 UTC默认的时区的时间。要具体看服务器的配置。JavaScript:new Date(<时间戳(毫秒长度)>);/** * 分隔符: - 或者 / * 可以有的格式: [年,年月,年月日,年月日时,年月日时分,年日月时分秒,年月日时分秒毫秒, 年 时分,...]; * 具体怎么解析.

2021-10-12 14:31:52 429

原创 【IDEA】gradle + log4j2 + slf4j 报错

  在项目中,想要使用 log4j2 而移除了默认的 logback 日志系统,但是在 IDEA 上无论如何执行,都显示下面的错误。然后日志信息就停止了。SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLo

2021-10-09 14:48:44 601

原创 【Java,Windows】命令行初始化 SpringBoot项目

先记录,后整理安装 spring-boot-cliPS> choco find springOutput:Chocolatey v0.11.1vscode-spring-initializr 0.7.0 [Approved]spring-boot-cli 2.2.4 [Approved]vscode-spring-boot-dashboard 0.2.0 [Approved]SpringToolSuite 3.9.6 [Approved] Downloads cached for.

2021-09-27 14:05:29 218

原创 【VsCode、Vue】Debug Vue-Cli 2.0项目

  在 VsCode 中要调试 Vue 项目。1.创建 launch.json 文件2. 选中使用 chrome 调试3. 会生成下图的文件{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.c

2021-09-23 11:13:55 752 1

原创 【Java】jshell 中使用 BackSpace/方向键导致崩溃

  因为个人原因,将 Windows 系统的语言转成了英文。在 Windows Terminal 中打开 jshell 后使用 BackSpace/方向键 等,会导致 jshell 崩溃。  通常提示 ...in thread "main..."(前后内容省略).

2021-09-18 16:43:12 106

原创 【PowerShell】查询路径下所有的文件与文件夹大小

  下面的所有的 Script 都是写在一个叫 filesize.ps1 文件下。   编辑 $PROFILE配置(Microsoft.PowerShell_profile.ps1),如下:Import-Module "<路径>/fiesize.ps1"PowerShell Script (Version 1):Function filesize { [cmdletbinding()] Param($path='./' ) dir -Path $path -Force |

2021-09-18 11:37:36 3277

原创 【Java】枚举循环

使用 for 循环:public class Main { public enum StudentContactRelationEnum { MOTHER(1, "妈妈"), FATHER(2, "爸爸"), PATERNAL_GRANDPA(3, "爷爷"), PATERNAL_GRANDMA(4, "奶奶"), MATERNAL_GRANDPA(5, "外公"), MATERNAL_GRANDMA(6, "外婆"), OTH

2021-09-13 14:21:15 3281

原创 【Windows】命令整理

先记录后整理Common:systeminfo ---- 输出系统信息$PSVersionTable ---- 查看 PowerShell 信息PowerShell:ls env: / Get-ChildItem env: ---- 查看环境变量$env:Path -split ';' ---- 输出切割后的 Path赋值环境变量的几种方式:# 直接赋值PS > $env:JAVA_HOME=$env:JDK11 # 拼接赋值PS > $env:Path="$env:.

2021-09-13 12:18:55 133

原创 【Windows】Win + R 运行命令

先记录再整理CPL:sysdm.cpl ---- 打开系统设置appwiz.cpl ---- 打开程序与功能ncpa.cpl ---- 打开网络连接界面MSCservices.msc ---- 打开本地服务设置secpol.msv ---- 打开本地安全策略certmgr.msc ---- 打开证书管理器compmgmt.msc ---- 打开计算机管理lusrmgr.msc ---- 打开本地用户和组gpedit.msc ---- 打开组策略rsop.msc ---- 打开组策.

2021-09-13 11:57:48 2236

原创 【IDEA】通过数据库创建 java POJOs

先记录后整理Database 生成模板所在位置:Generate POJOs.groovy 自定义模板:import com.intellij.database.model.DasTableimport com.intellij.database.util.Caseimport com.intellij.database.util.DasUtil/// 必须引入下面两个import java.io.*import java.text.SimpleDateFormat/* * Av.

2021-09-11 12:03:04 159

原创 【Windows, PowerShell,Script,SpringBoot】 部署

部署 ps1 script:# Powershell Version 7.1.3# param 要写在最上面, 相当于一个脚本是一个函数。参数传递放在最上面# 默认为 $nullparam ( $projectDirectory, $targetDirectory # [string]$Test=$(throw "Parameter missing: -name Name") )$targetDirectory = Get-Location# 换行# Write

2021-06-23 16:21:05 250

原创 【Powershell】 命令行查看 docker远程可用 image 所有版本 tag

powershell# Version Powershell 7param( $Image)$API="https://registry.hub.docker.com/v1/repositories"function Usage { Write-Host @"Usage: docker-tags NAME[:TAG]docker-tags list all tags for docker image on a remote registry.Example: doc

2021-06-23 11:06:31 1172

原创 vue2.0----warning

1、Emitted value instead of an instance of Error--------v-for标签中使用key属性绑定:v-for="item in arr" :key="item1"2、There are multiple modules with names that only differ in casing.-------- 因为文件名和引用不一致,举个例,文件名...

2017-08-25 09:47:57 438

原创 ESlint错误总结

1、router: function (){}   Missing space before opening brace--------  这里是空格问题,()和{}之间要有空格,就是() {}这样写      2、this.$router.go('/#');  Extra semicolon   --------  这里是分号问题,能不写分号就不要写

2017-08-15 16:20:16 3047

spring-boot-cli_deps.log

spring-boot-cli_deps.log

2021-09-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除