Skip to content

Instantly share code, notes, and snippets.

@jaredstehler
jaredstehler / gist:40b5f3ef4407b9941a40bc91182d296e
Created March 14, 2025 16:41
protobuf-maven-plugin dep resolution build failure
[ERROR] Failed to execute goal io.github.ascopes:protobuf-maven-plugin:2.11.0:generate-test (protobuf-generate-test) on project ContentSearchTesting: Execution protobuf-generate-test of goal io.github.ascopes:protobuf-maven-plugin:2.11.0:generate-test failed: Can't overwrite cause with org.eclipse.aether.transfer.ArtifactNotFoundException: org.ow2.asm:asm-util:jar:6.2.1 was not found in https://nexus.hubteam.com/nexus-maven/repository/hubspot-development during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of HubSpot-Nexus has elapsed or updates are forced: Failed to resolve artifacts for dependencies -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.github.ascopes:protobuf-maven-plugin:2.11.0:generate-test (protobuf-generate-test) on project ContentSearchTesting: Execution protobuf-generate-test of goal io.github.ascopes:protobuf-maven-plugin:2.11.0:generate-test failed: Can't overwri
#
# Quartz seems to work best with the driver mm.mysql-2.0.7-bin.jar
#
# PLEASE consider using mysql with innodb tables to avoid locking issues
#
# In your Quartz properties file, you'll need to set
# org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
#
DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS;
[email protected] /Users/jaredstehler/dev/src/intellifyApp
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
for i in `find . -mindepth 1 -maxdepth 1 -type d -exec test -e "{}/.git/index" ';' -print`; do echo $i; cd $i; git pull; cd ..; done;
@jaredstehler
jaredstehler / gist:a08a33df51068e901c46
Created March 3, 2015 19:59
ExistingServiceGateFilter
public class ExistingServiceGateFilter implements ContainerRequestFilter, ResourceFilter {
private final GateService gateService;
@Inject
public ExistingServiceGateFilter(GateService gateService) {
this.gateService = gateService;
}
public ContainerRequest filter(ContainerRequest request) {
if(gateService.isGated("use_new_service", request)) {
@jaredstehler
jaredstehler / gist:20b2e0c74e49d76de118
Created March 3, 2015 19:57
nginx load balancer internal proxy definition
location ^~ /hs_existing_service_proxy {
internal;
resolver 8.8.8.8;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_buffering off;
proxy_max_temp_file_size 0;
set $download_url $upstream_http_x_downstream_url;
proxy_pass $download_url;
}
@jaredstehler
jaredstehler / whoisonport
Created December 2, 2014 22:44
/usr/local/bin/whoisonport
#!/bin/sh
lsof -n -i4TCP:$1 | grep LISTEN
@jaredstehler
jaredstehler / FailingDateTest.java
Created March 9, 2013 18:53
This test mysteriously began failing for me on 9 March, 2013, at 1:51PM EST...
import static org.fest.assertions.api.Assertions.assertThat;
import java.util.Date;
import org.joda.time.DateTime;
import org.joda.time.Interval;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.quartz.Trigger;
@jaredstehler
jaredstehler / gist:5067548
Created March 1, 2013 20:33
jshint config file
{
"bitwise": false,
"camelcase": false,
"curly": false,
"eqeqeq": true,
"forin": true,
"immed": true,
"indent": false,
"latedef": true,
"newcap": false,