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
Import-Module -Name AWSPowerShell | |
$sns = "arn:aws:sns:eu-west-1:851073832283:Monitoring-ops" | |
$instance_id = (Invoke-Restmethod -uri http://169.254.169.254/latest/meta-data/instance-id) | |
$volume_id = (@(get-ec2volume) | Where-Object { $_.Attachments.InstanceId -eq $instance_id}).VolumeId | |
$DimensionInstance = New-Object 'Amazon.CloudWatch.Model.Dimension' | |
$DimensionInstance.Name = 'instance_id' | |
$DimensionInstance.Value = $instance_id |
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 | |
# This one is to be executed once to figure out rapidBoardId | |
#curl -u kagarlickij:Password -X GET -H "Content-Type: application/json" 'https://kagarlickij.atlassian.net/rest/greenhopper/1.0/rapidviews/list' | |
curl -u USER:PASSWORD -X GET -H "Content-Type: application/json" \ | |
'https://JIRA.DOMAIN.NAME/rest/greenhopper/1.0/sprintquery/17?includeFutureSprints=true&includeHistoricSprints=false' \ | |
| /usr/local/bin/jq '.sprints[] | select(.name | contains("PROJECTNAME")) | select(.state == "ACTIVE") | .name' | sed 's/[^0-9]*//g' > currentSprint.txt | |
echo "Current Sprint number in Jira is $(cat currentSprint.txt)" |
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
# vim:ft=zsh ts=2 sw=2 sts=2 et fenc=utf-8 | |
################################################################ | |
# powerlevel9k Theme | |
# https://github.com/bhilburn/powerlevel9k | |
# | |
# This theme was inspired by agnoster's Theme: | |
# https://gist.github.com/3712874 | |
################################################################ | |
################################################################ |
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
# Visual Studio Code | |
.vscode/ | |
# PyCharm | |
#.idea/ | |
# Vagrant | |
.vagrant/ | |
# Packer |
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 | |
echo "Installing SqlCmd.." | |
if [[ $(sqlcmd | grep Version) != *"13."* ]]; then { | |
repoPrConf="/etc/yum/pluginconf.d/priorities.conf" | |
rm -f ${repoPrConf} | |
cat >> ${repoPrConf} << EOF | |
[main] | |
enabled = 0 |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "AWS QuickStart Template for Tableau Server instance running on Windows QS(0040)", | |
"Parameters": { | |
"ContentAdminPassword": { | |
"Description": "The password for the initial Admin user for Tableau server", | |
"MinLength": "1", | |
"NoEcho": "true", | |
"Type": "String" | |
}, |
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
<# | |
.NOTES | |
=========================================================================== | |
Created on: Jul 2017 | |
Created by: Dmitriy Kagarlickij | |
Contact: dmitriy@kagarlickij.com | |
=========================================================================== | |
.DESCRIPTION | |
ServiceFabricRPHelpers module is from: https://github.com/ChackDan/Service-Fabric/tree/master/Scripts/ServiceFabricRPHelpers | |
#> |
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
pipeline { | |
agent any | |
stages { | |
stage ('First') { | |
steps { | |
echo "First" | |
} | |
} | |
if (env.BRANCH_NAME == 'master') { |
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
node { | |
stage ('clean') { | |
cleanWs() | |
} | |
stage ('checkout') { | |
git credentialsId: 'bla-bla-bla', | |
url: 'git@bitbucket.org:kagarlickij/myapp-pipeline.git' | |
} | |
parallel admin: { | |
stage ('myapp-admin-pipeline') { |
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
<# | |
.NOTES | |
=========================================================================== | |
Created on: Apr 2016 | |
Created by: Dmitriy Kagarlickij | |
Contact: dmitriy@kagarlickij.com | |
Description: http://kagarlickij.com/download-restore-ms-sql-database-backup/ | |
=========================================================================== | |
.DESCRIPTION | |
This script should be executing with Administrator-level permissions |