Skip to content

Instantly share code, notes, and snippets.

# 默认是关闭网卡的, 需开启
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
ONBOOT=yes
service network restart
# centos7 无`ifconfig`、`netstat`、`route`、`arp`
使用 ip指令,ss指令和NetworkManager的两个工具 nmtui,nmcli 取代
@cmp-cc
cmp-cc / normalized.html
Created October 8, 2016 08:26 — forked from scottkellum/normalized.html
pixel normalization
<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 验证工具类
* @author admin
*
*/
public class RegexUtil {
//------------------常量定义
package org.antiy.util.db.jdbc;
public final class JdbcPostgresqlConfig {
static final String DRIVER_PACKAGE = "org.postgresql.Driver";
static final String CONNECTION_URL = "jdbc:postgresql://192.168.12.18:5432/tm_samples";
static final String USER_NAME = "sqluser";