Доклад про Chatops в Github: https://speakerdeck.com/jnewland/chatops-at-github
Бот Lita: https://github.com/litaio/lita
Наше расширение для Lita: https://github.com/Shopify/lita-external
Бот Hubot:
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Доклад про Chatops в Github: https://speakerdeck.com/jnewland/chatops-at-github
Бот Lita: https://github.com/litaio/lita
Наше расширение для Lita: https://github.com/Shopify/lita-external
Бот Hubot:
ps ax | grep PROCESS_NAME | awk '{print "kill -9 " $1}' |
lsof -Pn -i4 | grep LISTEN |
# Hash in params | |
def product_params | |
properties_keys = params[:product].try(:fetch, :properties, {}).keys | |
params.require(:product).permit(:title, :description, properties: properties_keys) | |
end | |
# Nested hash in params | |
def item_params | |
params.require(:item).permit(values: permit_recursive_params(params[:item][:values])) | |
end |
echo "puts User.count" | heroku run console --app=my-heroku-app --no-tty | |
cat some_script.rb | heroku run console --app=my-heroku-app --no-tty | |
heroku run bundle exec rails runner ./scripts/script.rb -a my-heroku-app | |
heroku run bash |
bundle config --global jobs 3 # Number of cores - 1 |
checkout: | |
post: | |
# Work around some silly configuration added by Circle that doesn't actually even do what they want it to. | |
- git config --global --unset url.ssh://[email protected]:.insteadof |
cat /etc/postgresql/9.6/main/postgresql.conf | grep log_min_duration_statement | |
#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements | |
log_min_duration_statement = 100 | |
sudo tail -f /var/log/postgresql/postgresql-9.6-main.log |
# 1) Create your private key (any password will do, we remove it below) | |
$ cd ~/.ssh | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |