域名: demo.com
- (主) DNS 服务器的详细信息:
Operating System : CentOS 7 minimal server
Hostname : dns1.demo.com
IP Address : 10.0.1.254/24
<style> | |
.zero-clipboard { | |
position: relative; | |
} | |
.btn-clipboard { | |
position: absolute; | |
top: 0; | |
right: 0; | |
z-index: 10; | |
display: block; |
#!/bin/sh | |
set -e | |
set -x | |
defaults delete com.apple.java.util.prefs || true | |
for f in ~/Library/Preferences/jetbrains.*.plist; do | |
if [[ -f $f ]]; then | |
fn=${f##*/}; key=${fn%.plist} | |
echo delete $key from pref and file $f |
var SshClient = require('ssh2').Client; | |
/** | |
* @example | |
* | |
* var sshExpect = require('./sshExpect'); | |
* sshExpect({ | |
* host: '10.79.53.164', | |
* port: 22, | |
* username: 'admin', |
@SuppressWarnings("unchecked") | |
private <T> T stringAsObject(String value, Class<T> targetClass, String defaultValue) { | |
value = StringUtils.trimToNull(value); | |
if (value == null) { | |
value = defaultValue; | |
} | |
if (value == null || value.length() == 0) { | |
return null; | |
} |
D:\temp>%JAVA_HOME%\bin\java -cp .;%JAVA_HOME%\lib\sa-jdi.jar sun.jvm.hotspot.CLHSDB | |
hsdb> attach 23296 | |
Attaching to process 23296, please wait... | |
hsdb> class StringTest | |
StringTest @0x00000000fb077268 | |
hsdb> whatis 0x00000000fb077268 | |
Address 0x00000000fb077268: In perm generation perm [0x00000000fae00000,0x00000000fb077e50,0x00000000fc2c0000) space capacity = 21757952, 11.895604880459338 u | |
sed | |
hsdb> inspect 0x00000000fb077268 | |
instance of InstanceKlass for StringTest @ 0x00000000fb077268 @ 0x00000000fb077268 (size = 592) |
import org.pegdown.*; | |
import org.pegdown.ast.RootNode; | |
import org.pegdown.ast.VerbatimNode; | |
public class PegdownUtils { | |
public static String asHtml(String source) { | |
PegDownProcessor p = new PegDownProcessor(Extensions.ALL - Extensions.SMARTYPANTS); | |
RootNode root = p.parseMarkdown(source.toCharArray()); | |
return new HighlightHtmlSerializer().toHtml(root); |
import java.util.Properties; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class PlaceholderProperties extends Properties { | |
private static final long serialVersionUID = 1L; | |
private static final Pattern PARAMETER_PATTERN = Pattern.compile("\\$\\{([^}]*)\\}"); | |
public PlaceholderProperties() { | |
super(); |
import java.io.*; | |
import java.nio.charset.Charset; | |
import java.util.Properties; | |
import org.apache.commons.io.IOUtils; | |
import org.apache.commons.lang3.StringEscapeUtils; | |
public class ExtendPropertiesLoader { | |
private static final Properties EMPTY_PROPERTIES = new Properties(); | |
private static final String DEFAULT_ENCODING = "utf-8"; |
import java.io.File; | |
import java.io.FilenameFilter; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.servlet.ServletContext; | |
import jetbrick.template.runtime.JetPageContext; | |
import jetbrick.template.web.JetWebContext; | |
public class AssetsUrlFunctions { | |
private static Map<String, String> mapping = new HashMap<String, String>(128); |