This file contains hidden or 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
| $ProjectDir = "." | |
| $PackagesDir = "$ProjectDir\packages" | |
| $OutDir = "$ProjectDir\bin\Debug" | |
| # Install NUnit Test Runner | |
| $nuget = "$ProjectDir\.nuget\nuget.exe" | |
| & $nuget install NUnit.Runners -ExcludeVersion -o $PackagesDir | |
| # Set nunit path test runner | |
| $nunit = "$ProjectDir\packages\NUnit.ConsoleRunner\tools\nunit3-console.exe" |
This file contains hidden or 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: '2' | |
| volumes: | |
| pgdata: {} | |
| services: | |
| db: | |
| image: postgres:latest | |
| ports: |
This file contains hidden or 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
| export default function transformer(file, api) { | |
| const j = api.jscodeshift; | |
| return j(file.source) | |
| .find(j.ImportDeclaration, { | |
| source: { | |
| value: 'es6-promise' | |
| } | |
| }) | |
| .filter(({node}) => node.specifiers.filter(value => value.local.name === 'Promise').length > 0) |
This file contains hidden or 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
| const google = require('googleapis'); | |
| const sheets = google.sheets('v4') | |
| const key = require('./google-key.json'); | |
| const scope = [ | |
| 'https://www.googleapis.com/auth/spreadsheets' | |
| ]; | |
| const spreadsheetId = 'spreadsheetId'; | |
| const auth = new google.auth.JWT(key.client_email, null, key.private_key, scope, null); | |
| auth.authorize(function(err, tokens) { |
This file contains hidden or 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
| aws logs describe-log-groups --query logGroups --output json | ConvertFrom-Json | | |
| ForEach-Object {$_.logGroupName} | ForEach-Object { aws logs delete-log-group --log-group-name $_ } |
This file contains hidden or 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 | |
| PROJECT_NAME="PROJECT_NAME" | |
| COMMIT_MSG=$1 | |
| IS_EXISTS=$(cat $COMMIT_MSG |grep -i "$PROJECT_NAME"|wc -l) | |
| FULL_BRANCH_NAME=$(git branch | grep '*' | sed 's/* //') | |
| BRANCH_NAME=${FULL_BRANCH_NAME##*/} | |
| addBranchName() { | |
| echo "$BRANCH_NAME" "$(cat $COMMIT_MSG)" > $COMMIT_MSG | |
| } |
This file contains hidden or 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
| --- | |
| - name: Creates directory | |
| file: path=/var/projects/teamcity state=directory | |
| - name: Copy configs | |
| copy: src="{{item}}" dest="/var/projects/teamcity/{{item}}" | |
| with_items: | |
| - nginx.conf | |
| - docker-compose.yml |
This file contains hidden or 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
| docker-compose stop | |
| docker-compose pull | |
| docker-compose up -d |
This file contains hidden or 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
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| trim_trailing_whitespace = true | |
| [*.js] | |
| indent_style = tab | |
| indent_size = 2 |
This file contains hidden or 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
| rotate-backups --monthly=4 --include="backup-*.tar.gz" --dry-run -v . |