notes
notes copied to clipboard
notes
http://jlord.us/git-it/index.html ### 1.修改第一次提交 ``` bash git rebase -i --root git commit --amend git rebase --continue ``` _注_: 1)`git rebase -i`默认会打开`nano`编辑器,将要修改的`commit id`标记为`edit`,然后按下键盘`CTRL+O`保存、`CTRL+X`退出。 2)`git commit --amend` 修改提交 [参考链接](http://stackoverflow.com/questions/2246208/change-first-commit-of-project-with-git) ### 2.修改最近一次提交 ``` bash...
https://www.fangzhipeng.com/springcloud/2018/08/30/sc-f-all/ http://www.itmuch.com/spring-cloud/spring-cloud-index/ https://cloud.spring.io/spring-cloud-static/Finchley.SR2/single/spring-cloud.html https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/
### 安装`bash_completion` ```bash yum install bash_completion ``` ### 安装docker命令自动补全 ```bash sudo curl -L https://raw.githubusercontent.com/docker/docker/v$(docker version -f "{{.Client.Version}}")/contrib/completion/bash/docker -o /etc/bash_completion.d/docker ``` ### 安装docker-compose命令自动补全 ```bash sudo curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose -o...
数据模型 ``` java import java.io.Serializable; import java.util.Date; /** * author : fengjing * createTime : 2016-07-26 * description : 系统日志 * version : 1.0 */ public class Log implements Serializable{...
在maven的pom.xml中添加如下配置: ```xml org.apache.maven.wagon wagon-ssh 2.8 org.codehaus.mojo wagon-maven-plugin 1.0 upload-deploy package upload-single sshexec target/joyplus-manage-2.0.jar scp://root:***@106.214.240.250/opt true ```
AsyncTaskService 模拟后台耗时请求业务 ```java import org.joda.time.LocalDateTime; import org.springframework.stereotype.Service; import java.util.UUID; import java.util.concurrent.TimeUnit; @Service public class AsyncTaskService { public String uuid() { try { TimeUnit.MILLISECONDS.sleep(5000); System.out.println(LocalDateTime.now().toString("yyyy-MM-dd HH:mm:ss:S") + "--->工作线程(" + Thread.currentThread().getName() +...
http://www.dengshenyu.com/分布式系统/2017/11/12/kafka-producer.html http://www.dengshenyu.com/分布式系统/2017/11/21/kafka-data-delivery.html http://www.lpnote.com/2017/01/15/reliability-of-kafka-message https://kaimingwan.com/post/framworks/kafka/kafka-producerxing-neng-diao-you http://matt33.com/2017/09/04/kafka-best-pratice https://www.cnblogs.com/huxi2b/p/6056364.html
http://www.java67.com http://www.java-success.com http://www.journaldev.com/java-interview-questions http://javarevisited.blogspot.com http://java-latte.blogspot.com
https://stackoverflow.com/questions/12535016/apache-httpclient-get-with-body HttpGetWithEntity.java ```java import org.apache.http.client.methods.HttpEntityEnclosingRequestBase; import org.apache.http.client.methods.HttpGet; import java.net.URI; public class HttpGetWithEntity extends HttpEntityEnclosingRequestBase { public HttpGetWithEntity() { super(); } public HttpGetWithEntity(URI uri) { super(); setURI(uri); } public HttpGetWithEntity(String uri)...
# 使用ffmpeg合并MP4文件 ``` bash ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f...