grep -oPm1 "(?<=<title>)[^<]+"
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
project = SP and reporter IN (admin, admin2) AND summary ~ task AND description ~ text AND status = "to do" |
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
import mysql.connector | |
config = { | |
'user': 'root', | |
'password': 'root', | |
'host': '127.0.0.10', | |
'db': 'sonar', | |
'project': '' | |
} |
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
java -jar jenkins-cli.jar -s http://server create-job newmyjob < myjob.xml |
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
# get one line comma-separated list of project paths with zero integration test coverage | |
mysql -h127.0.0.1 -uroot -proot sonar -e "SELECT concat(projects.long_name,'/*,') FROM snapshots JOIN projects ON snapshots.project_id=projects.id JOIN project_measures as m1 ON m1.snapshot_id=snapshots.id JOIN project_measures as m2 ON m2.snapshot_id=snapshots.id WHERE snapshots.islast=1 AND snapshots.scope=\"DIR\" AND m1.metric_id=59 AND m1.value=0 AND m2.metric_id=3;" > /tmp/list.txt | |
sed -i '1d' /tmp/list.txt | |
cat /tmp/list.txt | tr -d ' ' | tr -d "\n" > /tmp/complete_list.txt | |
# or remove leading characters (jenkins limit 300k) | |
cat /tmp/classes.txt | awk -F"/" '{ print "**/" $(NF-1) "/" $NF }' | |
# update property in database |
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
# corkscrew | |
ssh -i key user@host -o "ProxyCommand corkscrew proxy.host proxy.port host port" | |
# connect-proxy | |
ssh -i key user@host -o "ProxyCommand connect-proxy -H proxy.host:proxy.port host port" |
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
ifconfig eth1|grep 'inet addr:'|cut -d: -f2|cut -d' ' -f1|awk '{ print $1 }' |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.tar.gz
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
inventory_loc=/opt/oraInventory | |
inst_group= |
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
Failed StepArgumentException with 'requirement failed: No keystore provided' | |
########################### MANIFEST ################################ | |
version: "1.1" | |
header: {} | |
launch: | |
steps: | |
provisionMicroUbuntuAmazon: | |
action: provisionVms |