[Service]
LimitNOFILE=100000
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
package de.idealo.ecommerce.order.history.config; | |
import java.util.Arrays; | |
import java.util.stream.StreamSupport; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.event.ContextRefreshedEvent; | |
import org.springframework.context.event.EventListener; | |
import org.springframework.core.env.AbstractEnvironment; |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
import com.google.gson.JsonDeserializationContext; | |
import com.google.gson.JsonDeserializer; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonParseException; | |
import com.google.gson.JsonPrimitive; | |
import com.google.gson.JsonSerializationContext; | |
import com.google.gson.JsonSerializer; | |
import java.lang.reflect.Type; | |
import java.util.Date; | |
import org.joda.time.DateTime; |
import com.google.common.cache.CacheBuilder; | |
import com.google.common.cache.CacheLoader; | |
import com.google.common.cache.LoadingCache; | |
import com.google.common.util.concurrent.ListenableFuture; | |
import com.google.common.util.concurrent.ListenableFutureTask; | |
import org.junit.Test; | |
import java.time.LocalDateTime; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; |
Process videoProcess = new ProcessBuilder(command).start(); | |
new PrintStream(videoProcess.getErrorStream()).start(); | |
new PrintStream(videoProcess.getInputStream()).start(); | |
videoProcess.waitFor(); | |
return true; |
Process videoProcess = new ProcessBuilder(command).redirectErrorStream(true).start(); | |
new PrintStream(videoProcess.getInputStream()).start(); | |
videoProcess.waitFor(); | |
return true; |
class PrintStream extends Thread | |
{ | |
java.io.InputStream __is = null; | |
public PrintStream(java.io.InputStream is) | |
{ | |
__is = is; | |
} | |
public void run() | |
{ | |
try |
Process process = new ProcessBuilder(command).start(); | |
new PrintStream(process.getInputStream()).start(); | |
process.waitFor(); |