Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@theotherian
theotherian / Toggling Wifi via Applescript
Last active January 15, 2024 00:50
An AppleScript for toggling wifi on and off
A script for turning wifi on and off on a Mac
@theotherian
theotherian / Spring STOMP chat
Last active December 30, 2023 04:15
Spring STOMP chat
Spring STOMP chat
@theotherian
theotherian / Jersey Client 1.x Example
Last active September 3, 2022 06:08
Setting up a Jersey 1.x client
Setting up a Jersey 1.x client
Files for creating Maven archetypes - part 2
@theotherian
theotherian / ClientFactory.java
Last active July 23, 2020 11:21
configuring Jersey 2 client
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 / Maven Archetypes Part 3
Created July 9, 2013 04:59
Maven Archetype how tos Part 3
Files for creating a Maven Archtype - part 3
@theotherian
theotherian / Non-Blocking Guava Cache
Last active September 7, 2018 19:46
Blocking on cache reads beyond the first is just plain rude in my opinion, so refresh in the background.
Blocking on cache reads beyond the first is just plain rude in my opinion...
An example of creating an in-memory HSQLDB server
@theotherian
theotherian / Jersey Resource Filters via Custom Annotations
Last active March 5, 2018 17:51
A DynamicFeature implementation for binding filters to resources with Jersey 2.0, in this case flagging certain resources as not supporting Internet Explorer 6.
Files for demonstrating custom binding of Jersey resource filters using annotations
There are two dependencies that Jersey 2.0 has for adapting its application to a Servlet instance.