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
/** | |
* Check confluence jmx status | |
*/ | |
'use strict'; | |
const exec = require('child_process').exec; | |
module.exports = function (robot) { |
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
'use strict'; | |
var splunkjs = require('splunk-sdk'); | |
module.exports = function (robot) { | |
var service = new splunkjs.Service({ | |
username: process.env.SPLUNK_USERNAME, | |
password: process.env.SPLUNK_PASSWORD, | |
scheme:"https", |
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
{workflow:name=Data Classification Workflow} | |
{description} | |
Description here | |
{description} | |
{state:Public|colour=Green} | |
{state} | |
{state:Internal|colour=Blue} | |
{state} | |
{state:Protected|colour=Orange} | |
{state} |
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
<form class="aui"> | |
<script> | |
AJS.toInit(function() { | |
AJS.$("#check-key").click(function() { | |
var validate = /^[0-9a-zA-Z]+$/; | |
var spacekey = AJS.$("#space-key").val(); | |
if (spacekey.match(validate)) { | |
AJS.$.ajax({ | |
url: "/rest/api/space/" + spacekey, | |
type: "GET", |
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
# http://nginx.org/en/docs/ | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/log/nginx/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
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 SUM(a.bytes) as UNDO_SIZE | |
FROM v$datafile a, | |
v$tablespace b, | |
dba_tablespaces c | |
WHERE c.contents = 'UNDO' | |
AND c.status = 'ONLINE' | |
AND b.name = c.tablespace_name | |
AND a.ts# = b.ts#; |
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
/** | |
* Confluence CQL sample | |
* Find all spaces (including archived ones) that are in Cloud category | |
*/ | |
const request = require('request') | |
const options = { | |
headers: { "Content-Type": "application/json" }, | |
auth: { |
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
/* | |
* Jira sprint query sample | |
* Find out current sprint and next sprint | |
*/ | |
'use strict' | |
const Promise = require('promise') | |
const request = require('request') | |
const lodash = require('lodash') |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "s3:GetObject", | |
"Resource": [ | |
"arn:aws:s3:::aws-ssm-<region>/*", | |
"arn:aws:s3:::aws-windows-downloads-<region>/*", | |
"arn:aws:s3:::amazon-ssm-<region>/*", |
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/bash | |
# Define your ECR | |
MY_ECR='<account>.dkr.ecr.<region>.amazonaws.com' | |
# Sample for scanning atlassian/jira-software:8.3 | |
aws ecr get-login --no-include-email | bash - | |
aws ecr create-repository --repository-name jira --image-tag-mutability IMMUTABLE --image-scanning-configuration scanOnPush=true | |
docker pull atlassian/jira-software:8.3 | |
docker tag atlassian/jira-software:8.3 ${MY_ECR}/jira:8.3 |
OlderNewer