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
#!/bin/bash | |
OUT=$HOME/.cache/bazelisk/bazel-bin | |
if [ ! -f $OUT ]; then | |
mkdir -p $(dirname $OUT) | |
OS=linux | |
if [ "$(uname -s)" != "Linux" ]; then | |
OS=darwin | |
fi | |
ARCH=$(uname -m) |
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
import hashlib | |
import json | |
import os | |
import subprocess | |
import tempfile | |
def get_changed_targets(): | |
commit = "HEAD^" if os.getenv("CI") else "origin/main" | |
files = exec("git", "diff", "--name-only", "--diff-filter=ACMRTUXB", commit + "..", "--").split("\n") |
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
# pip install requests inquirer click rich | |
import json | |
import os | |
import time | |
import urllib | |
from datetime import datetime | |
import click | |
import inquirer | |
import requests |
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.tradeshift.grails; | |
public class AutoProxyCreator extends org.codehaus.groovy.grails.aop.framework.autoproxy.GroovyAwareAspectJAwareAdvisorAutoProxyCreator { | |
@Override | |
protected boolean shouldSkip(Class beanClass, String beanName) { | |
if ("classLoader".equals(beanName)) { | |
return true; | |
} else { | |
return super.shouldSkip(beanClass, beanName); |
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
@Grapes([ | |
@Grab("org.apache.activemq:activemq-client:5.9.0"), | |
@Grab("org.slf4j:slf4j-log4j12:1.7.5"), | |
@Grab("log4j:log4j:1.2.17"), | |
@Grab("org.jboss.logmanager:jboss-logmanager:1.3.1.Final"), | |
@Grab(group="org.springframework", module="spring-core", version="3.2.5.RELEASE", transitive=false) | |
]) | |
import org.apache.activemq.* | |
import org.apache.activemq.command.* | |
import java.util.concurrent.* |
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.tradeshift.commons.groovy; | |
import groovy.lang.Closure; | |
import groovy.lang.GroovyClassLoader; | |
import groovy.util.ConfigObject; | |
import groovy.util.ConfigSlurper; | |
import java.beans.PropertyDescriptor; | |
import java.io.IOException; | |
import java.lang.reflect.Constructor; |