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
grammar Osinfo; | |
parse : line* EOF ; | |
line : COMMENT | EOL | os_record ; | |
COMMENT : '#' .*? EOL; | |
os_record : 'os' DOT UNIQUE_OS_NAME DOT attribute DOT key_value EOL; | |
attribute : ID | |
| NAME |
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 org.ovirt.engine.core.bll; | |
import javax.annotation.Resource; | |
import javax.enterprise.inject.Produces; | |
import javax.inject.Inject; | |
import javax.transaction.Transaction; | |
import javax.transaction.TransactionManager; | |
import org.infinispan.transaction.tm.DummyTransactionManager; | |
import org.jboss.arquillian.container.test.api.Deployment; |
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
// ==UserScript== | |
// @name Gerrit Rerun Hooks Comment Button | |
// @namespace http://www.ovirt.org/gmscripts | |
// @description Add a button that will add a comment with rerun-hooks message | |
// @grant none | |
// @include https://gerrit.ovirt.org/#/c/* | |
// @version 0.1 | |
// @run-at document-idle | |
// ==/UserScript== |
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 org.ovirt.engine.common; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.lang.reflect.Method; | |
import java.nio.file.FileSystems; | |
import java.util.Map; | |
import java.util.Properties; | |
import com.google.gwt.i18n.client.Constants; |
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
SELECT | |
relname, | |
n_tup_upd, | |
n_tup_del, | |
n_tup_hot_upd, | |
n_dead_tup, | |
last_vacuum, | |
last_autovacuum, | |
last_analyze, | |
last_autoanalyze, |
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
--- | |
- hosts: localhost | |
connection: local | |
vars: | |
#engine_prefix: / | |
engine_url: "http://example.com:8080/ovirt-engine/api" | |
engine_user: admin@internal | |
engine_password: PASSWORD | |
engine_insecure: true | |
#engine_cafile: /etc/pki/ovirt-engine/ca.pem |
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/sh | |
GERRIT_URL=https://gerrit.ovirt.org | |
function gerrit.change_id() { | |
git show --shortstat | grep Change-Id | gawk '{print $2}' | |
} | |
function gerrit.related.change_id() { | |
curl -s ${GERRIT_URL}/changes/$(gerrit.change_id)/revisions/current/related | sed '1d' | jq '.[][0] | .commit.commit' | tr -d '"' |
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/sh -x | |
function usage() { | |
echo " | |
USAGE | |
$0 [IN_FILE] | |
IN_FILE=/path/to/in_file $0 | |
ES_ADDRESS=elasticsearch.example.com IN_FILE=/path/to/in_file $0 | |
This is a loader from fluentd file into elastic-search |
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
-- extracted from pgcluu https://github.com/darold/pgcluu/blob/0366836dfcbf4285d08bdd36eab58f18b40d2255/pgcluu_collectd#L2473 | |
-- | |
-- dump_missing_indexes generate a ddl scirpt to create missing indexes on foreign keys | |
-- | |
SELECT | |
date_trunc('seconds', | |
now()), | |
current_database(), | |
relname, | |
'CREATE INDEX CONCURRENTLY idx_' || relname || '_' || array_to_string(column_name_list, |
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
apiVersion: v1 | |
data: | |
connection: | | |
url=https://ovirt-engine-fqdn/ovirt-engine/api | |
username=admin@internal | |
password=123 | |
insecure=True | |
cafile= | |
kind: ConfigMap | |
metadata: |
OlderNewer