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
https://docs.atlassian.com/jira/REST/latest/ | |
var files = [], | |
tickets =[]; | |
var finishrun = false; | |
var request = require('request'); | |
while(!finishrun){ | |
var result; | |
request('https://jira.atlassian.com/rest/api/2/search/',function (error, response, body) { | |
if (!error && response.statusCode == 200) { |
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
INFO global: Vagrant version: 1.4.0 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/box/plugin.rb | |
INFO manager: Registered plugin: box command | |
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/destroy/plugin.rb | |
INFO manager: Registered plugin: destroy command | |
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/halt/plugin.rb | |
INFO manager: Registered plugin: halt command | |
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/help/plugin.rb |
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
# bourne shell functions below take 1 argument, the file_to_hash. | |
# prints hex digest on stdout | |
md5() { | |
perl -MDigest::MD5=md5_hex -le'print md5_hex(<> or die)' "$1" | |
# ruby -rdigest/md5 -e"puts Digest::MD5.file'/dev/null'" | |
# python -sBc "import hashlib;print hashlib.md5(open('$1','rb').read()).hexdigest()" | |
# md5 "$1"|cut -d' ' -f4 # mac/bsd | |
# md5sum "$1"|cut -d' ' -f1 # linux | |
} |
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 process carbon-cache | |
matching "carbon-cache" | |
start program = "/usr/sbin/service carbon-cache restart" | |
stop program = "/usr/sbin/service carbon-cache stop" | |
if 5 restarts within 5 cycles then alert |
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
"""Azure Test SQL Module""" | |
import json | |
import argparse | |
import sys | |
import logging | |
import pymssql | |
def connect(server, database_name): | |
try: |
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
require "optparse" | |
require "CGI" | |
require 'openssl' | |
require "base64" | |
require "Faraday" | |
require 'Digest' | |
def generateToken(url,keyname,keyvalue) | |
encoded = CGI::escape(url) | |
ttl = (Time.now + 60*5).to_i |
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
VIRTUALENV=$1 | |
SCRIPT=$2 | |
PARAMS="${@:3}" | |
source $VIRTUALENV/bin/activate | |
if [ -f $(dirname $SCRIPT)/requirements.txt ] | |
then | |
pip install -r $(dirname $SCRIPT)/requirements.txt | |
fi | |
python $SCRIPT $PARAMS |
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
@ECHO OFF | |
PowerShell.exe -NoProfile -NonInteractive -ExecutionPolicy unrestricted -Command "& %~d0%~p0%~n0.ps1" %* | |
EXIT /B %errorlevel% |
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
""" simple azure uploader script """ | |
import sys | |
import argparse | |
import os | |
from azure.storage.blob import BlockBlobService | |
import logging | |
LOG_LEVEL = 'WARNING' |
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
""" <replace with string description> """ | |
import json | |
import argparse | |
import sys | |
import logging | |
CONFIG = None | |
def setup(args): | |
log_level = 'WARNING' |