- 博客(26)
- 收藏
- 关注
原创 【influxdb】python操作类(无账号密码验证,可自行添加header认证)
import requestsfrom config import influxDBhost = influxDB["host"]username = influxDB["username"]password = influxDB["password"]database = influxDB["database"]def query(sql): """ influxdb查询 :param sql: sql = "CREATE DATABASE mydb"
2021-12-16 15:41:25
1423
原创 【influxdb】C# 操作方法 influxDBHelper.cs
InfluxDBClientusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace DMCCommon.influxdb{ public class InfluxDBClient { string _baseAddress = "http://127.0.0.1:8086";
2021-12-16 11:16:14
3014
1
原创 【influxdb】常用的数据库操作命令
#显示用户show users#创建用户create user "username" with password 'password'#创建管理员权限用户create user "username" with password 'password' with all privileges#删除用户drop user "username"#创建数据库create database "db_name"#显示所有的数据库show databases#删除数据库drop dat
2021-12-16 10:29:45
2175
原创 【influxDB】windows安装influxdb1.8.4+管理工具下载链接
下载influxdb1.8.4:influxdb2.0版本缺少配置文件,1.8启动就能用双击influxd.exe启动即可安装InfluxDBStudioInfluxDBStudio
2021-12-06 08:09:25
4820
原创 python批量生成pyc文件,删除py源文件和pycache文件夹(windows)
rem 请勿在开发项目中使用,此命令会将py文件转为pyc文件,dos命令rem py批量生成pycpython -m compileall -b .rem 批量删除py文件del /S *.pyrem 批量删除pycache文件夹for /R %s in (.,*) do rd /q /s %s\__pycache__pause...
2021-02-05 10:00:34
736
原创 动软代码生成器-DbHelperSQL
using System;using System.Collections;using System.Collections.Specialized;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Data.Common;using System.Collections.Generic;namespace Maticsoft.DBUtility{ /// &
2021-02-03 13:07:31
602
原创 nginx注册成windows服务
点击下载winsw下载该工具后,将其放在 Nginx安装目录下,并重命名为nginx-service.exe,创建配置文件nginx- service.xml(名字要和工具名一样)(注意:存放nginx的目录中不能存在中文,否则会导致发布失败)创建nginx-service.exe.config(为支持NET 4.0 runtime,默认只支持NET 2.0 runtime)nginx-service.xml 内容如下:(记得修改路径)<service> <..
2021-01-25 09:47:30
709
原创 windows注册成系统服务&管理员启动cmd
将Tomcat加入到系统服务中:(注意:等号和值之间应该有一个空格)sc create Tomcat binPath= F:/apache-tomcat/bin/startup.bat start= auto将Tomcat服务删除:sc delete Tomcat使用管理员启动一个cmd@echo off%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","run
2021-01-25 09:30:00
310
原创 django API 简单的TOKEN实现
python拦截器api_auth.pyimport hashlibimport timeimport hashlibfrom django.http import HttpResponsekey = "shinvadsp1234567890"visited_keys = {}def md5(arg): hs = hashlib.md5() hs.update(arg.encode('utf-8')) return hs.hexdigest()def a
2020-11-11 16:29:34
985
1
原创 cmd管理员身份关闭防火墙
cmd 管理员身份关闭防火墙@echo off%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exitNetSh Advfirewall set allprofiles state offpause
2020-10-28 08:53:17
874
原创 kettle常用命令整理
cmd执行kettle任务set PATH=D:\software\data-integrationrem 进入 Kitchen.bat所在目录cd %PATH%rem 作业(job)文件路径和日志文件路径rem 执行kitchen执行job,并写入日志%PATH%\kitchen.bat /file:%PATH%\jobs\作业-设备同步.kjb /level:Basic>>%PATH%\logs\kettle_%date:~0,4%%date:~5,2%%date:~8,2%
2020-10-19 15:26:00
712
原创 python、django 常用命令整理
列出所有已安装的三方库pip list列出当前已安装的第三方库中所有过期的库pip list --outdated更新单个库pip install --upgrade 库名更新pippython -m pip install --upgrade pippip更换国内源pip install pip -U pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/依赖文件生成pip freez
2020-09-29 13:13:54
223
原创 layer点击按钮返回form数据
layer点击按钮返回form数据父页面top.layer.open({ type: 2, title: '修改', area: ['80%','60%'], content: url, btn:['保存','取消'], btn1:function (index) { let data = top.window["layui-la
2020-09-28 14:49:22
476
翻译 kubernetes(k8s)极简安装
下载并安装sealos, sealos是个golang的二进制工具,直接下载拷贝到bin目录即可, release页面也可下载wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/latest/sealos && \ chmod +x sealos && mv sealos /usr/bin 下载离线资源包wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/7b6a
2020-08-15 09:12:50
531
原创 docker常用命令
查看docker中已有的镜像docker images查看运行中的镜像docker ps# 后面添加 -a 参数,代表查看所有的运行过和运行中的镜像Dockerfile制作可运行image#制作镜像docker build -t images .#-t 参数是指定此镜像的tag名,#制作完成后通过docker images命令查看制作的镜像#(注意命令后有个小点!!!)#启动容器docker run -d -p 9000:80 jetlinks-ui#-d参数是让容
2020-08-05 10:27:49
117
转载 tomcat&jvm优化参数&原理
Tomcat 内存和线程配置优化xml优化参数tomcat 的线程配置参数详情如下:修改conf/server.xml中的<Connector …/> 节点如下:<Connector port="8080" protocol="HTTP/1.1" maxThreads="600" minSpareThreads="100" maxSpareThreads="500"
2020-06-15 08:50:31
177
转载 前端js常用的60余种工具方法
1.邮箱export const isEmail = (s) => { return /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(s)}2.手机号码export const isMobile = (s) => { return /^1[0-9]{10}$/.test(s)}3.电话号码export const isPhone = (s) => { re
2020-06-02 11:13:17
143
原创 oracle备份命令.bat
@echo off@echo ================================================ @echo windows环境下Oracle数据库的自动备份脚本 @echo 说明:启动备份时,需要配置以下变量 @echo 1、BACKUP_DIR 指定要备份到哪个目录 @echo 2、ORACLE_USERNAME 指定备份所用的Oracle用户名 @echo 3、ORACLE_PASSWORD
2020-05-31 10:59:02
396
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人