git commit --amend
###TAG
- git tag v1.4 ou git tag -a v1.4 -m 'my version 1.4'
- git push origin v1.5 ou git push origin --tags
curl -XPUT "http://localhost:9200/*/_settings" -d '{ "index" : {"number_of_replicas": 0 } }'
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
curl -XGET http://localhost:9200/_cat/shards
| #!/bin/bash | |
| # PARAM | |
| mysql_master=<%= @DBMY_MASTER_HOST %> | |
| user_mysql=root | |
| password_user_mysql=<%= @USER_ROOT_DBMY_SLAVE_PASSWORD %> | |
| replication_user=<%= @REP_USER %> | |
| replication_password=<%= @REP_PASSWORD %> | |
| read -p "Etes vous sur de vouloir installer la replication ? [Y/N]" -n 1 -r |
| #/bin/bash | |
| exclude="log\|other" | |
| for directory in `find * -maxdepth 0 -type d` | |
| do | |
| if [[ "`echo $directory | grep \"$exclude\"`" == "" ]] | |
| then | |
| echo "### repo $directory =>" | |
| cd $directory | |
| git "$@" |