Skip to content

Instantly share code, notes, and snippets.

theotherian

Block or report user

Report or block theotherian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@theotherian
theotherian / Toggling Wifi via Applescript
Last active Mar 5, 2019
An AppleScript for toggling wifi on and off
View Toggling Wifi via Applescript
A script for turning wifi on and off on a Mac
@theotherian
theotherian / Jersey Client 1.x Example
Last active Nov 5, 2018
Setting up a Jersey 1.x client
View Jersey Client 1.x Example
Setting up a Jersey 1.x client
@theotherian
theotherian / ClientFactory.java
Last active Sep 12, 2018
configuring Jersey 2 client
View ClientFactory.java
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import org.apache.http.HttpHost;
import org.apache.http.conn.routing.HttpRoute;
import org.apache.http.impl.conn.PoolingClientConnectionManager;
import org.glassfish.jersey.apache.connector.ApacheClientProperties;
import org.glassfish.jersey.apache.connector.ApacheConnector;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
@theotherian
theotherian / Non-Blocking Guava Cache
Last active Sep 7, 2018
Blocking on cache reads beyond the first is just plain rude in my opinion, so refresh in the background.
View Non-Blocking Guava Cache
Blocking on cache reads beyond the first is just plain rude in my opinion...
View Start in-memory HSQLDB server
An example of creating an in-memory HSQLDB server
@theotherian
theotherian / Jersey Resource Filters via Custom Annotations
Last active Mar 5, 2018
A DynamicFeature implementation for binding filters to resources with Jersey 2.0, in this case flagging certain resources as not supporting Internet Explorer 6.
View Jersey Resource Filters via Custom Annotations
Files for demonstrating custom binding of Jersey resource filters using annotations
View Jersey 2.0 servlet dependencies
There are two dependencies that Jersey 2.0 has for adapting its application to a Servlet instance.
@theotherian
theotherian / Jersey ServerSide connector
Last active Feb 15, 2017
In memory request handling on the server side with Jersey
View Jersey ServerSide connector
It's possible to handle requests in memory with Jersey client
You can’t perform that action at this time.