Skip to content

Instantly share code, notes, and snippets.

@witzawitz
witzawitz / gist:9001e253053dce88c5e5f1d7f054e426
Created September 1, 2020 21:18
Публикация плеера в npm
#!/bin/bash
# У нас есть релизная ветка с названием «release/x.y.z»
# В качестве параметра скрипту надо указать «x.y.z»
if [[ "$1" == "" ]]; then
read -p "Enter release to merge: " release
else
release="$1"
fi
branch="release/$release"
@witzawitz
witzawitz / config.sh
Last active June 27, 2017 16:29
Sample configuration for install.sh
#!/bin/bash
# Which parts of install script should be run. Possible values are:
# requirements, php-version, php-extensions, php-ini, composer, db, sphinx, directories, symlinks, migrations, assets.
# Any other values will be ignored.
config=(requirements php-version php-extensions php-ini composer db sphinx directories symlinks migrations assets)
# These extensions should be installed in the system.
req_command=(
mysql
@witzawitz
witzawitz / install.sh
Last active June 27, 2017 16:18
VPS install script
#!/bin/bash
source config.sh
function error {
echo -e "\033[0;31m$1\033[0m"
}
function info {
echo -e "\033[0;36m$1\033[0m"
}