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
#!/bin/bash | |
#Yes I know about jq | |
curlcommand() { | |
curl -s "https://build.opnfv.org/ci/computer/api/json?tree=computer\[displayName,offline\]" \ | |
| awk -v k=":" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' \ | |
| grep -v "_class" \ | |
| awk 'NR%2{printf "%s ",$0;next;}1' \ | |
| awk -F":" '{print $2,$3}' \ |
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
#!/bin/bash | |
ref="$(awk -F'newrev' '{print $2}' <<< "$@" | xargs)" | |
log="$(git log --format=%s%b -n 1 "$ref")" | |
if grep -iq "JIRA:*[0-9]*" <<< "$log" | |
then | |
: | |
else | |
echo "Commit rejected, please provide a jira issue in the format JIRA: ISSUE_NUMBER in the commit message" | |
exit 1 |
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
INFO: Project [bifrost-upstream-verify-ubuntu] triggered by Gerrit: [[ManualPatchsetCreated Change: Change-Id for #367608: I37fe286c76cab6c0b34ff496e7188bff09222f5c PatchSet: PatchSet: 3]] | |
Sep 08, 2016 9:53:55 PM com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.EventListener schedule | |
INFO: Project bifrost-upstream-verify-ubuntu Build Scheduled: true By event: 367608/3 | |
Sep 08, 2016 9:53:55 PM com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ToGerritRunListener onStarted | |
INFO: Gerrit build [bifrost-upstream-verify-ubuntu #3] Started for cause: [GerritCause: [ManualPatchsetCreated Change: Change-Id for #367608: I37fe286c76cab6c0b34ff496e7188bff09222f5c PatchSet: PatchSet: 3] silent: false]. | |
Sep 08, 2016 9:53:55 PM com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ToGerritRunListener onStarted | |
INFO: MemoryStatus: | |
Project/Build: [bifrost-upstream-verify-ubuntu]: [#3: null] Completed: false | |
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
[opnfv@lf_pod2 ~]$ cat /proc/cpuinfo | |
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 63 | |
model name : Intel(R) Xeon(R) CPU E5-2637 v3 @ 3.50GHz | |
stepping : 2 | |
microcode : 0x29 | |
cpu MHz : 1200.117 | |
cache size : 15360 KB |
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
#!/bin/bash | |
ref="$(awk -F'newrev' '{print $2}' <<< "$@" | xargs)" | |
log="$(git log --format=%s%b -n 1 "$ref")" | |
if grep -iq "JIRA:*[0-9]*" <<< "$log" | |
then | |
: | |
else | |
echo "Commit rejected, please provide a jira issue in the format JIRA: ISSUE_NUMBER in the commit message" | |
exit 1 |
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
#!/bin/bash | |
help () { | |
echo "====================================" | |
echo "$0" | |
echo "Option:-" | |
echo " -w : PDU Usage warning " | |
echo " -c : PDU Usage critical " |
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
Gerrit version 2.8 | |
Replication plugin extracted from gerrit.war and installed over ssh | |
Installation method -> | |
a) Relevant configs: | |
/var/lib/gerrit/etc/replication.config | |
[remote "aricg-compliance"] | |
url = [email protected]:somerepo/${name}.git |
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
for x in 0 1 4 5 7 8; do for i in `seq 30 37`; do for a in `seq 40 47`; do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; done; echo; done; done; echo ""; |
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
set -g default-terminal "screen-256color" | |
setw -g mode-keys vi | |
set -g prefix C-d | |
unbind C-b | |
bind C-d send-prefix | |
unbind ^A | |
bind ^A select-pane -t :.+ | |
# Setup 'v' to begin selection as in Vim | |
bind-key -t vi-copy v begin-selection | |
bind-key -t vi-copy y copy-pipe "xsel --clipboard -i" |
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
(Configuring buck not included) | |
git clone --recursive -b stable-2.9 https://gerrit.googlesource.com/gerrit | |
buck build api | |
buck build api_install | |
cd buck-out/gen/gerrit-plugin-api/ | |
mvn install:install-file \ | |
-DgroupId=com.google.gerrit \ |