This file contains hidden or 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
<html> | |
<body> | |
Test: Random text | |
</body> | |
</html> |
This file contains hidden or 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 docker ps -a | grep 'dom-ni' | awk '{print $1}' | xargs --no-run-if-empty sudo docker rm -f | |
sudo docker images | grep "<none>" | awk '{print $3}' | xargs --no-run-if-empty sudo docker rmi -f | |
docker rm `docker ps -a | grep Exited | awk '{print $1 }'` | |
docker rmi `docker images -aq` | |
# to always return 0 status add || true at the end |
This file contains hidden or 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
def url = "jdbc:oracle:thin:system/oracle@localhost:11521:xe" | |
def username = "system" | |
def password = "oracle" | |
@GrabConfig(systemClassLoader=true) | |
@Grab('com.oracle:ojdbc14:10.1.0.5.0') | |
driver = "oracle.jdbc.driver.OracleDriver" | |
import groovy.sql.* |
This file contains hidden or 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
# command line to execute. | |
java -jar jenkins-cli.jar -s http://localhost:8080/ groovy install-maven-in-jenkins.groovy |
This file contains hidden or 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 python -m smtpd -c DebuggingServer -n localhost:25 |
This file contains hidden or 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
//used with ease plugin for eclipse | |
import org.eclipse.debug.core.*; | |
def manager = DebugPlugin.getDefault().getLaunchManager(); | |
def type = manager.getLaunchConfigurationType(org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants.ID_REMOTE_JAVA_APPLICATION); | |
def configurations = manager.getLaunchConfigurations(type); | |
println "starting: ${configurations}"; | |
while(true) { |
This file contains hidden or 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
def ant = new AntBuilder(); | |
def scanner = ant.fileScanner { | |
fileset(dir:'.') { | |
include(name:"**/pom.xml") | |
ex |
This file contains hidden or 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
//cancel | |
Jenkins.instance.queue.items.findAll { it.task.name.startsWith('JIRA-1350') }.each { Jenkins.instance.queue.cancel(it.task) } | |
//schedule | |
Jenkins.instance.items.findAll { !it.name.contains('-it-') }.each { it.scheduleBuild(); } | |
This file contains hidden or 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
#delete local branch | |
git branch -D bugfix | |
#delete remote branch | |
git push origin --delete bugfix | |
#remove unstaged files | |
find . -name '.gitignore' | xargs git clean -f | |
#remove all unstaged files and dirs | |
git clean -fdx |
This file contains hidden or 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
def ant = new AntBuilder(); | |
def scanner = ant.fileScanner { | |
fileset(dir:'.') { | |
include(name:"**/pom.xml") |
OlderNewer