I hereby claim:
- I am hedleygois on github.
- I am hlunasts (https://keybase.io/hlunasts) on keybase.
- I have a public key ASBC2Uo7_54udjE6Sx32wlV6c7JCCj5CAA1NhFe8cYp6Swo
To claim this, I am signing this object:
export type TelemetryDefinitionsParams = [ | |
string, | |
NodeId[], | |
Opt<Moment>, | |
number | |
]; | |
type Output = RequestStatus<Error, TelemetryStreamDefinition[]>; | |
export const useTelemetryStreamDefinitions = (): Output => { |
upstream samantha { | |
server 127.0.0.1:3001; | |
keepalive 32; | |
} | |
server { | |
listen 8081; | |
listen [::]:8081; | |
server_name samantha; | |
#access_log /usr/local/etc/nginx/logs/example.access.log; |
upstream hedley { | |
server 127.0.0.1:3000; | |
keepalive 32; | |
} | |
server { | |
listen 8080; | |
listen [::]:8080; | |
server_name hedley; | |
#access_log /usr/local/etc/nginx/logs/example.access.log; |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import javax.ws.rs.container.ContainerRequestContext; | |
import javax.ws.rs.container.ContainerResponseContext; | |
import javax.ws.rs.container.ContainerResponseFilter; | |
import javax.ws.rs.ext.Provider; | |
import java.io.IOException; | |
@Provider | |
public class CORSWildfly implements ContainerResponseFilter { | |
@Override | |
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException { |
import javax.servlet.*; | |
import javax.servlet.annotation.WebFilter; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
@WebFilter("/*") | |
public class CORSFilter implements Filter { | |
@Override | |
public void init(FilterConfig filterConfig) throws ServletException { |
page.open(system.args[1], function(status){ | |
if (status !== "success") { | |
console.log("Unable to access network"); | |
phantom.exit(); | |
} else { | |
waitFor(function(){ | |
return page.evaluate(function(){ | |
return document.body.querySelector('.symbolSummary .pending') === null | |
}); | |
}, function(){ |