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
Function GetChangelog { | |
param($from, $to, $baseurl, $project) | |
$cred = (Get-Credential) | |
$username = $cred.GetNetworkCredential().username | |
$password = $cred.GetNetworkCredential().password | |
$auth = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("$($username):$($password)")) |
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
# Windows %USERPROFILE%\.vscode\extensions | |
# Mac ~/.vscode/extensions | |
# Windows %APPDATA%\Code\User\settings.json | |
# Mac $HOME/Library/Application Support/Code/User/settings.json | |
# code --list-extensions | |
$gist = "https://gist.github.com/jincod/93d2bddb32cab3b72b23657cc8e69255/raw" |
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
Invoke-WebRequest https://api.github.com/gists/b40b003fd360823c8890 | ConvertFrom-Json | ForEach-Object { $_.file | |
s.psobject.properties.Value.raw_url } | ForEach-Object {Invoke-WebRequest $_ -OutFile $(Split-Path -Path $_ -Leaf) } | |
. { iwr -useb https://gist.github.com/jincod/4f183172e46a64179a12/raw/d28d76d8186d8e10b5dee0ee60ca1dcdb341b663/default.ps1 } | iex; |
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
rotate-backups --monthly=4 --include="backup-*.tar.gz" --dry-run -v . |
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
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
trim_trailing_whitespace = true | |
[*.js] | |
indent_style = tab | |
indent_size = 2 |
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
docker-compose stop | |
docker-compose pull | |
docker-compose up -d |
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
--- | |
- 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 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 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 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) { |