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
/* | |
This groovy script is used to bulk update fixVersions in JIRA. | |
It uses a filter listing all issues in the project (to remove the version), | |
and a filter to which the fixVersion should be added. | |
INSTALLATION: | |
1) download and unzip atlassian cli: | |
https://studio.plugins.atlassian.com/wiki/display/ACLI/Atlassian+Command+Line+Interface | |
2) modify the jira.sh to include the server, your user name and password (as documented in the jira.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
#!/usr/bin/perl | |
use strict; | |
my $VERSION='v0.9'; | |
############# | |
# PREPARING # | |
############# | |
my $URLS = { | |
session => |
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 static org.vertx.groovy.core.streams.Pump.createPump | |
vertx.createHttpClient(host: 'humanstxt.org', port: 80) | |
.getNow('/humans.txt') { resp -> | |
println "GOT response with status $resp.statusCode" | |
resp.pause(); | |
resp.endHandler { | |
println "response END with first registered handler" | |
} |
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 org.vertx.java.core.http.HttpServerRequest; | |
import org.vertx.java.deploy.Verticle; | |
public class Server extends Verticle { | |
@Override | |
public void start() throws Exception { | |
vertx.createHttpServer().requestHandler((HttpServerRequest req) -> { | |
String file = req.path.equals("/") ? "index.html" : req.path; | |
req.response.sendFile(file); | |
}).listen(8086); |
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 com.intellij.openapi.actionSystem.AnActionEvent | |
import static intellijeval.PluginUtil.* | |
import org.bson.types.*; | |
// add-to-classpath $HOME/.m2/repository/org/mongodb/mongo-java-driver/2.10.1/mongo-java-driver-2.10.1.jar | |
registerAction("InsertMongoObjectId", "alt shift O") { AnActionEvent event -> | |
runDocumentWriteAction(event.project) { | |
currentEditorIn(event.project).with { | |
def offset = caretModel.offset |
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 com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.editor.SelectionModel | |
import org.joda.time.* | |
import static intellijeval.PluginUtil.* | |
// add-to-classpath $HOME/.m2/repository/joda-time/joda-time/2.1/joda-time-2.1.jar | |
registerAction("TransformDateISOEpoch", "ctrl alt shift T") { AnActionEvent event -> | |
def editor = currentEditorIn(event.project) |
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 com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.psi.PsiClass | |
import com.intellij.psi.PsiElement | |
import com.intellij.psi.PsiModifier | |
import com.intellij.psi.util.PsiTreeUtil | |
import static intellijeval.PluginUtil.* | |
def findContextClass = { project -> | |
def editor = currentEditorIn(event.project); |
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
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update | |
sudo apt-get install -y mongodb-10gen |
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
# suppose you have a set of files in target/base-deps | |
# and want to remove files in target/dependency with the same names | |
for f (target/base-deps/*.jar) {rm $f:s/base-deps/dependency/} |
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
<repositories> | |
<repository> | |
<id>project.local</id> | |
<name>project</name> | |
<url>file:${project.basedir}/repo</url> | |
</repository> | |
</repositories> |
OlderNewer