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
#!/usr/bin/env bash | |
## Automatically append jira issue ticket to every commit if found in the git branch name and not already in the commit message | |
## Ref: https://community.atlassian.com/t5/Bitbucket-questions/automatically-append-JIRA-issue-ID-into-commit-message/qaq-p/605991 | |
## https://stackoverflow.com/a/67647814/93966 | |
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) | |
# It will copy the commit string from ".git/COMMIT_EDITMSG" | |
COMMIT_MESSAGE=$1 |
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
#!/usr/bin/env bash | |
set -e | |
## https://confluence.atlassian.com/adminjiraserver/configuring-jira-application-options-938847824.html | |
## Project Key Length: Default: 10 | |
JIRA_REGEX='[A-Z]{2,10}-[0-9]{1,7}' | |
JIRA_TICKET=() | |
# Set the tags |
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
#!/usr/bin/env bash | |
set -e | |
# https://developer.atlassian.com/cloud/compass/rest/intro/#version | |
TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ') | |
COMPASS_CLOUD_INSTANCE=name-of-your-instance | |
COMPASS_REST_API_VERSION=v1 | |
## create api token for your user https://id.atlassian.com/manage-profile/security |
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
#!/usr/bin/env bash | |
## requires jq to be installed | |
set -e | |
# https://developer.atlassian.com/cloud/compass/rest/intro/#version | |
TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ') | |
COMPASS_CLOUD_INSTANCE=name-of-your-instance | |
COMPASS_REST_API_VERSION=v1 |
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 | |
set -e | |
OPENSSL_INSTALLED=false | |
if which openssl >/dev/null | |
then | |
OPENSSL_INSTALLED=true | |
fi |
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
#!/usr/bin/env bash | |
# | |
# list running docker containers | |
# https://coderwall.com/p/ewk0mq/stop-remove-all-docker-containers | |
echo ================== START DOCKER STOP AND REMOVE ALL CONTAINERS ================== | |
docker images | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) |
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 | |
## http://nginx.org/en/docs/control.html | |
## https://www.nginx.com/resources/wiki/start/topics/examples/logrotation/ | |
## idea is to run this cron job at 12:59 PM daily to move the existing access and error logs and reload nginx | |
DEBUG=true | |
CURRENT_DATE=$(date +"%Y-%m-%d") | |
PROJECT_NAME="test.project" |
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
#!/usr/bin/env bash | |
## | |
# check out latest semvar tag from git master repo | |
## | |
## exit if script fails | |
set -e | |
## get current branch checked out | |
CURRENT=`git rev-parse --abbrev-ref HEAD` |
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
{ | |
"logstash-2018.11": { | |
"mappings": { | |
"doc": { | |
"_meta": { | |
"version": "6.4.2" | |
}, | |
"dynamic_templates": [ | |
{ | |
"fields": { |
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://cruise.phparch.com/ | |
- https://tek.phparch.com/ | |
- https://world.phparch.com/ | |
- http://midwestphp.org/ | |
- https://skiphp.com/ | |
- http://lonestarphp.com/ | |
- http://pnwphp.com/ | |
- http://madisonphpconference.com/ | |
- http://sunshinephp.com/ |
NewerOlder