Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Dmitriy Kagarlickij kagarlickij

🏠
Working from home
Block or report user

Report or block kagarlickij

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kagarlickij
kagarlickij / openapi.json
Last active Mar 26, 2019
AWS API Gateway PetStore sample
View openapi.json
{
"swagger": "2.0",
"info": {
"description": "Your first API with Amazon API Gateway. This is a sample API that integrates via HTTP with our demo Pet Store endpoints",
"title": "PetStore"
},
"schemes": [
"https"
],
"paths": {
View EC2WindowsCloudWatch.json
{
"schemaVersion": "1.0",
"description": "CloudWatch for Windows Instances",
"runtimeConfig": {
"aws:cloudWatch": {
"properties": {
"EngineConfiguration": {
"PollInterval": "00:00:15",
"Components": [
{
@kagarlickij
kagarlickij / .zshrc
Last active Aug 12, 2019
This is ZSH config file located in ~/
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/kagarlickij/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel9k/powerlevel9k"
View db_restore_from_sftp.ps1
<#
.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
@kagarlickij
kagarlickij / Jenkinsfile
Created Jun 7, 2018
Jenkins scripted pipeline parallel execution
View Jenkinsfile
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') {
@kagarlickij
kagarlickij / Jenkinsfile
Created Mar 30, 2018
This is demo pipeline to check IF conditions in declarative way
View Jenkinsfile
pipeline {
agent any
stages {
stage ('First') {
steps {
echo "First"
}
}
if (env.BRANCH_NAME == 'master') {
View create-FabricMagmtCert.ps1
<#
.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
#>
View tableau-single-server.template
{
"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"
},
View install-sqlcmd.sh
#!/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
@kagarlickij
kagarlickij / .gitignore_global
Last active Mar 19, 2019
This is my Git ignore config
View .gitignore_global
# Visual Studio Code
.vscode/
# PyCharm
#.idea/
# Vagrant
.vagrant/
# Packer
You can’t perform that action at this time.