project-folder/
.git
wp-admin/
wp-content/
wp-includes/
.htaccess
public final class MimeTypes | |
{ | |
public static final class Application | |
{ | |
public static final String ATOM_XML = "application/atom+xml"; | |
public static final String ATOMCAT_XML = "application/atomcat+xml"; | |
public static final String ECMASCRIPT = "application/ecmascript"; | |
public static final String JAVA_ARCHIVE = "application/java-archive"; | |
public static final String JAVASCRIPT = "application/javascript"; | |
public static final String JSON = "application/json"; |
import org.hibernate.boot.MetadataSources; | |
import org.hibernate.boot.registry.StandardServiceRegistry; | |
import org.hibernate.boot.registry.StandardServiceRegistryBuilder; | |
import org.hibernate.boot.spi.MetadataImplementor; | |
import org.hibernate.dialect.Dialect; | |
import org.hibernate.dialect.MySQL5InnoDBDialect; | |
import org.hibernate.tool.hbm2ddl.SchemaExport; | |
import org.springframework.core.io.Resource; | |
import org.springframework.core.io.support.PathMatchingResourcePatternResolver; |
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
def label = "mypod-${UUID.randomUUID().toString()}" | |
podTemplate(label: label, yaml: """ | |
spec: | |
containers: | |
- name: mvn | |
image: maven:3.3.9-jdk-8 |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
config_yml = YAML.load_file(File.open(File.expand_path(File.dirname(__FILE__)) + "/vagrant-config.yml")) | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what |
public class DbSchemaDiffTest { | |
@Test | |
public void load() { | |
HibernateUtil db = new HibernateUtil(); | |
Session session = db.getSession(); | |
session.doWork(new Work() { | |
@Override | |
public void execute(Connection connection) throws SQLException { | |
Configuration configuration = new Configuration(); |
server { | |
#listening ip:port | |
listen 0.0.0.0:80 default_server; | |
#public data path | |
root /var/www/nginx/public/; | |
index index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name subdomain.domain; |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |