經常使用命令和sql

經常使用命令:

  • 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 //安裝本地依賴vue

  • 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.gitjava

  • 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 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 reloadpython

  • 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.CommonModulemysql

  • vboxManage startvm "ubuntu desktop x64"
  • vboxManage controlvm "ubuntu desktop x64" powerofflinux

  • ngen install OMM.WPF.Main.exe
  • ngen uninstall OMM.WPF.Main.exenginx

  • 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');git

use wind_filesync --172.17.1.96
--股指期貨日行情
select * from CIndexFuturesEODPrices
--商品期貨日行情
select * from CCommodityFuturesEODPrices
--國債期貨日行情
select * from CBondFuturesEODPricesgithub

--現貨基本資料
select * from CGoldSpotDescription
--期貨基本資料
select * from CFuturesDescription
--期貨標準合約屬性
select * from CFuturesContPro
--期貨連續(主力)合約和月合約映射表
select * from CFuturesContractmapping
--期貨交易日曆
select * from CFuturesCalendar
--Wind兼容代碼,較全、慢
select * from WindCustomCodeweb

相關文章
相關標籤/搜索