常用命令:

  • mvn idea:idea //生成.ipr项目文件

  • mvn clean install -Dmaven.test.skip=true

  • mvn install:install-file -Dfile=target\model-1.0-SNAPSHOT.jar -DpomFile=pom.xml //安装本地依赖

  • git config merge.tool vimdiff && git mergetool

  • git pull 172.16.45.215:/root/dev master

  • git log --author=yyx990803 --oneline | tail -n 10

  • git clone -b 0.10 https://github.com/vuejs/vue.git

  • netstat -putan | grep portNo //redhat7里去掉了

  • lsof -i:8080

  • cd 1.0.0.4 | grep -ir "AUDataTopic" * //在发布的版本里搜

  • brew install mysql && brew services start mysql

  • ll locate nohup.out // 注意nohup产生的大log

  • python -m SimpleHTTPServer // 在某个目录下启动http服务器

  • iconv -f gb2312 -t utf-8 <old_file >new_file

  • serialver -classpath classes com.cloudpick.base.api.BaseRequest // 生成serialVersionUID

  • tar -czf cat_1.0.0.40.tar.gz 1.0.0.40

  • tar -xzf cat_1.0.0.40.tar.gz -C /root/target/dir

  • nohup ./run-cat.sh dev cat > run_cat.log 2>&1 & // 1>run_cat.log 2>&1 这样也行

  • svn propset svn:executable on run-cat.sh

  • svn diff -r 2800:2805

  • ps aux | grep 61618 --color

  • ldconfig -v -N -X | grep libcurl

  • find / -name nginx -type f -executable

  • supervisorctl -s http://172.16.45.215:9001 | update

  • supervisorctl start cat:*

  • mongoexport -d strategy-web-dev -c FxRef -o /root/mongodb-linux-x86_64-rhel62-3.2.1/backup/FxRef

  • mongoimport -d strategy-web -c FxRef /root/mongodb-linux-x86_64-rhel62-3.2.1/backup/FxRef

  • nohup vncconfig -nowin &

  • java -Denv=local -classpath "E:\project\TestJavaMaven\target\TestJavaMaven-1.0-SNAPSHOT.jar;other-depends.jar" com.company.test.App

  • pip download grpc grpcio grpcio-tools

  • pip install grpc*.whl --no-index --find-links "dir"

  • nginx -s reload

  • nuget pack UI.WPF.nuspec -Build -MSBuildVersion 4 -Prop Configuration=Release

  • update-package Company.Util -version 1.0.0.1 -project Company.UI.WPF -reinstall(force update)

  • install-package Microsoft.Expression.Interactions -version 3.0.40218 -project Company.OMM.WPF.CommonModule

  • install-package System.Windows.Interactivity -version 3.0.40218 -project Company.OMM.WPF.CommonModule

  • vboxManage startvm "ubuntu desktop x64"

  • vboxManage controlvm "ubuntu desktop x64" poweroff

  • ngen install OMM.WPF.Main.exe

  • ngen uninstall OMM.WPF.Main.exe

  • db.FxCombination.find().sort({combinationId:-1})//1=asc, -1=desc

  • db.FxCombination.find({realizedSpread: {$gt: 0}})

  • db.FxCombination.find({realizedSpread: {$ne: NaN}})

  • db.FxLog.find({logLine:/^execId/}, {logLine:1, _id:0}).sort({logTime:-1})

//支持js, count distinct substring,这种场景要用js写
var cnt = new Object()
db.FxRef.find().forEach(function(doc){
var key = doc.securityId.substring(0,2);
if (!cnt[key]) cnt[key] = 1; cnt[key]++;
});
cnt

常用sql:

select * from RefData where securityType = 4 order by securityId;

select securityType, count(1) from RefData group by securityType order by securityType;

select count(1) from RefData;

select * from RefData where securityId in ('AL1705', 'IF1609');

use wind_filesync --172.17.1.96

--股指期货日行情

select * from CIndexFuturesEODPrices

--商品期货日行情

select * from CCommodityFuturesEODPrices

--国债期货日行情

select * from CBondFuturesEODPrices

--现货基本资料

select * from CGoldSpotDescription

--期货基本资料

select * from CFuturesDescription

--期货标准合约属性

select * from CFuturesContPro

--期货连续(主力)合约和月合约映射表

select * from CFuturesContractmapping

--期货交易日历

select * from CFuturesCalendar

--Wind兼容代码,较全、慢

select * from WindCustomCode

常用命令和sql的更多相关文章

  1. cmd常用命令 和 sql server相关基础

    在Java开发中 ms sql server 接触算是比较少的,本文记录一些ms sql server的基础知识. 1. 为表字段增加索引:create index user_openid on us ...

  2. ORACLE数据库 常用命令和Sql常用语句

    ORACLE 账号相关 如何获取表及权限 1.COPY表空间backup scottexp登录管理员账号system2.创建用户 create user han identified(认证) by m ...

  3. MySql 基础知识-常用命令及sql语句

    一.常用mysql命令行命令 1,启动mysql服务 net start mysql.      停止mysql服务 net stop mysql 2,netstart -na|findstr 330 ...

  4. Mysql常用命令大全 sql

    1.连接Mysql 格式: mysql -h主机地址 -u用户名 -p用户密码 1.连接到本机上的MYSQL.首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root ...

  5. SQL Plus的使用详解(登录和常用命令)

    1.SQL Plus简介 SQL Plus工具是随 Oracle数据库服务器或客户端的安装而自动进行安装的管理与开发工具, Oracle数据库中所有的管理操作都可以通过 SQLPlus工具完成. SQ ...

  6. MySQL - 常用命令及常用查询SQL

    常用查询SQL #查看临时目录 SHOW VARIABLES LIKE '%tmp%'; #查看当前版本 SELECT VERSION(); 常用命令 #查看当前版本,终端下未进入mysql mysq ...

  7. MySQL导入SQL文件及常用命令

      在MySQL Qurey   Brower中直接导入*.sql脚本,是不能一次执行多条sql命令的,在mysql中执行sql文件的命令: mysql> source   d:/myprogr ...

  8. MySQL导入.sql文件及常用命令

    在MySQL Qurey   Brower中直接导入*.sql脚本,是不能一次执行多条sql命令的,在mysql中执行sql文件的命令: mysql> source d:/myprogram/d ...

  9. Oracle的学习一:安装与卸载、sql *plus常用命令、Oracle用户管理

    1.为什么学习oracle? 性能优越: 小型数据库 中型数据库 大型数据库 acess.foxbase mysql.sql server.informix sybase.oracle.db2 复杂量 ...

随机推荐

  1. JS引擎的执行机制:探究EventLoop(含Macro Task和Micro Task)

    在我看来理解好JS引擎的执行机制对于理解JS引擎至关重要,今天将要好好梳理下JS引擎的执行机制. 首先解释下题目中的名词:(阅读本文后你会对这些概念掌握了解) Event Loop:事件循环Micro ...

  2. vector某元素是否存在、查找指定元素 、去重

    vector.map 判断某元素是否存在.查找指定元素 [C++]判断元素是否在vector中,对vector去重,两个vector求交集.并集 PS:注意重载

  3. 课后作业机票,赌骰子游戏,switch的使用实例

    一,课后第三题机票 package com.bd22; import java.util.Scanner; public class AirTicket { public static void ma ...

  4. Python汉诺塔

    import turtle class Stack: def __init__(self): self.items = [] def isEmpty(self): return len(self.it ...

  5. PHP curl Post请求和Get请求~

    //获取的参数 $api_key = '8a82d53a57b06c1d835d129f7e43d49c'; $orderNum = pdo_fetch('select ddlm_order_no f ...

  6. [English] Time complexity wise this solution is the best among all

    Time complexity wise this solution is the best among all, we can do all operations in O(1) time. 时间复 ...

  7. 用Python实现支持向量机并处理Iris数据集

    SVM全称是Support Vector Machine,即支持向量机,是一种监督式学习算法.它主要应用于分类问题,通过改进代码也可以用作回归.所谓支持向量就是距离分隔面最近的向量.支持向量机就是要确 ...

  8. 操纵Review被封店,申诉信

    标签: 测评被封 亚马逊申诉 操纵评价申诉 分类: 亚马逊申诉模板 Hello,We recently contacted you about product review manipulation. ...

  9. POJ-2796 & 2019南昌邀请赛网络赛 I. 区间最大min*sum

    http://poj.org/problem?id=2796 https://nanti.jisuanke.com/t/38228 背景 给定一个序列,对于任意区间,min表示区间中最小的数,sum表 ...

  10. python2 和 python3共存,并且分开使用

    目录 一.本文使用的python版本安装 二.安装python2 和 Python3 三.修改名称,配置环境,实现共存 1.将C:\Python36中的python.exe修改为python3.exe ...