This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sonatype.provisio.internal; | |
import java.io.File; | |
import java.util.Properties; | |
import org.apache.maven.repository.internal.DefaultServiceLocator; | |
import org.apache.maven.repository.internal.MavenRepositorySystemSession; | |
import org.apache.maven.settings.Mirror; | |
import org.apache.maven.settings.Settings; | |
import org.apache.maven.settings.building.DefaultSettingsBuilderFactory; |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.vaughndickson.elasticsearch | |
import groovy.util.logging.Slf4j | |
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus | |
import org.elasticsearch.client.Client | |
import org.elasticsearch.client.transport.TransportClient | |
import org.elasticsearch.common.settings.ImmutableSettings | |
import org.elasticsearch.common.settings.Settings | |
import org.elasticsearch.common.transport.InetSocketTransportAddress | |
import org.springframework.beans.factory.DisposableBean |
I've been working with Apache Kafka for over 7 years. I inevitably find myself doing the same set of activities while I'm developing or working with someone else's system. Here's a set of Kafka productivity hacks for doing a few things way faster than you're probably doing them now. 🔥