• PublicIPAddressAPIwithtwolinesofNginxconfig

    RefPublic Ip Address API with two lines of Nginx config
  • cruise-control

    Cruise-control build123456git clone git@github.com:linkedin/cruise-control.gitcd cruise-control./gradlew jar change config/cruisecontrol.properties123cat config/cruisecontrol.propertieschange boot...
  • technology

    Maven Testmvn -DskipTests package 只是不执行UT, 但是会对test case 进行编译 mvn -Dmaven.test.skip=true 不仅仅不执行UT, 还不会对test case 进行编译, 所以即使test case 即使是错误的不能通过编译也可以通过-Dmaven.test.skip=true 进行跳过
  • batch-delete-mail

    批量删除邮件在通过mutt 管理邮件的过程中,因为删除邮件的机会挺少,在以前的使用中,主要还是通过对邮件按d键,标记删除 在退出mutt 时,q, y 的方式完全删除被标记的邮件 这个过程在面对大量邮件时就有些力不从心 在过去的几天时间里,通过ansible-pull 的方式在机器上添加了对服务状态信息的邮件通知,定时任务的周期被设定为5分钟检查一次 那么一天就有很多的邮件被mutt 所读取...
  • unit-test

    在通过junit jupiter 进行测试时,编写了如下代码 12345678@Test@DisplayName("testContextLoads")@ParameterizedTest@ValueSource(strings = {"111", "222"})public void contextLoads(...
  • systemd-analyze

    在查询系统启动缓慢中,可以通过systemd-analyze 得到基本的启动信息, 分别对应内核和用户空间启动耗时 但在做启动优化时,还需要通过得到是哪些服务启动耗时,导致整体的耗时增加 可以通过systemd-analyze critical-chain 获取耗时的服务链条 通过关闭在耗时服务链条中的服务,可以使系统启动更加快速 这需要不断的进行修正,然后得到一个理想的启动耗时 通过sys...
  • zookeeper-monitor

    zk info1234567891011121314151617echo mntr | nc 127.0.0.1 2181 zk_version 3.4.10-39d3a4f269333c922ed3db283be479f9deacaa0f, built on 0...
  • awscloud

    Daniel Vassallo 介绍使用aws cloud 的经验,其中的经验不只是对aws 用户有参考意义,对其它云服务使用者也有参考意义 This is how I use the good parts of @awscloud, while filtering out all the distracting hype1/25 My background: I’ve been using...
  • ansible

    shell以前通过在Hadoop 集群的master 节点上,通过ansible 进行对slave 节点的管理 因为hadoop 集群都在vbox 上面,现在直接在host 机器上对集群进行管理,碰到了一些问题,在此记录 因为hadoop 集群所在的os都是ArchLinux, 并且使用的shell 都是zsh , 当使用ansible 时,由于ansible 默认的shell 是/bin/...
  • compiler-jdk12GA

    compiler jdk12GA编译jdk, 一般文章都使用 1hg clone http://hg.openjdk.java.net/jdk/jdk 但是在ArchLinux 上,除非安装了mercurial ,一般使用的还是git 比较多 而刚好openjdk在github 上同步了一份read-only 的repo 1git clone git@github.com:openjdk/...
1234512