#Edit MySQL config:
sudo rvim /etc/mysql/my.cnf
80% RAM to innodb_buffer_pool_size -> https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/
#XMLRPC issues Search for XMLRPC POST logs
| for CHAR in (ls phrase/locales/phrase.* | cut -d "." -f2) | |
| grep firstdata_lv phrase/locales/phrase.$CHAR.yml | grep code | sed -e 's/firstdata_lv/cps_lv/g' > ~/Documents/cps_translations/$CHAR.yml | |
| end |
| openssl req -new -newkey rsa:2048 -nodes -keyout app.swisslanguages.com.key -out app.swisslanguages.com.csr |
| (ActiveRecord::Base.connection.tables.map { |model| model.capitalize.singularize.camelize }).sort_by{|word| word.downcase}.reject {|r| r == "SchemaMigration" || r == "Session" } |
| INSTRUCTIONS: | |
| sudo apt-get install vim git curl |
| curl get.pow.cx/uninstall.sh | sh | |
| curl get.pow.cx | sh | |
| scutil --dns | |
| sudo touch /etc/resolver/dev | |
| sudo pfctl -f /etc/pf.conf | |
| sudo pfctl -e |
| openssl req -new -newkey rsa:2048 -nodes -keyout www.domain.com.key -out www.domain.com.com.csr |
| Staging: | |
| 1. $ openssl req -sha256 -newkey rsa:2048 -keyout <MerchantID>_key.pem -out <MerchantID>_req.pem -subj "/C=LV/O=www.stockholmhealth.com/OU=Everyday Content International/CN=<MerchantID>" -outform PEM | |
| 2. Ielogojamies IBIS un self-sign | |
| 3. Iemetam no šiem saņemtos failus (viņi atsūta sertifikātu pirms atbildes, ka atsūtīs sertifikātu) tai pašā mapē, kur key un: | |
| 4. $ openssl pkcs12 -export -in <MerchantID>.pem -out <MerchantID>.p12 -certfile ECOMM-test.pem -inkey <MerchantID>_key.pem | |
| 5. $ openssl pkcs12 -in <MerchantID>.p12 -out <MerchantID>_keystore.pem | |
| Production: |
| git branch --merged master | grep -v 'master$' | xargs git branch -d |
| Artist.where(id: Album.select(:artist_id)) |
#Edit MySQL config:
sudo rvim /etc/mysql/my.cnf
80% RAM to innodb_buffer_pool_size -> https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/
#XMLRPC issues Search for XMLRPC POST logs