Skip to content

Instantly share code, notes, and snippets.

View MatthewLQM's full-sized avatar
🎯
Focusing

QiMing LIU MatthewLQM

🎯
Focusing
  • HangZhou,ZheJiang
View GitHub Profile
@MatthewLQM
MatthewLQM / gist:8c644e294608bd2e34680e39184c9421
Created February 1, 2018 02:31
L2TP/IPSec一键安装脚本
#!/usr/bin/env bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#=======================================================================#
# System Supported: CentOS 6+ / Debian 7+ / Ubuntu 12+ #
# Description: L2TP VPN Auto Installer #
# Author: Teddysun <i@teddysun.com> #
# Intro: https://teddysun.com/448.html #
#=======================================================================#
cur_dir=`pwd`
@MatthewLQM
MatthewLQM / gist:4ba6302a8019ddc2d5c38a1e80aaa8b0
Created September 28, 2017 03:45
非迭代版本的 DFS 的 Java 实现
/**
* 使用栈存储遍历过的节点,依次 pop 出来进行处理。
 * 注意 reverse 操作,保证了遍历从左子节点到右子节点。
* @Author MatthewLQM
*/
private static void iterativeDFS(Node root) {
Deque<Node> stack = new ArrayDeque<Node>();
stack.push(root);
while (!stack.isEmpty()) {
Node node = stack.pop();
@MatthewLQM
MatthewLQM / gist:8be84256d012b7a1d9b8b9adfd13d8e5
Created September 14, 2017 15:01
使用 travis-ci 时报错:Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
解决方案:git add -f gradle/wrapper/gradle-wrapper.jar
参考地址:https://stackoverflow.com/questions/29805622/could-not-find-or-load-main-class-org-gradle-wrapper-gradlewrappermain/31622432#31622432