Posts

Composer unable to update due to expired cert

  [Composer\Downloader\TransportException] Peer's Certificate issuer is not recognized. hmmm, can you try this? https://stackoverflow.com/questions/35608248/composer-does-not-download  

Cross Domain Issues

If we are setting cookie from api.runxiflute.com to runxiflute.com. We need the following changes In Request: mark withCredentials to true In Response: Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: https://runxiflute.com

MYSQL Chaining

This describes setting up a new chain with mysql replication. This is the basic layout. (M master, S1 slave of master, S2 slave of S1) M <- S1 <- S2 Creating a chain: On S1: stop slave; systemctl disable mysqld; show slave status\G # COPY THIS TO TEXT FILE show mater status\G # COPY THIS TO TEXT FILE service mysqld stop; Create an image of S1, this will be S2. In GCP go to the VM instance of S1, click on its disk, click create Image. ======================================== Log into your new image, S2: edit /etc/my.cnf, add a way to skip the start of a slave. [mysqld] skip-slave-start Remove the old UUID, this needs to be unique, so delete it, rm -f /var/lib/mysql/auto.cnf change the server-id to anything unique vi /etc/my.cnf, find "server-id" change it to something unique EG ** server-id=1552009061 systemctl enable mysqld; #ensure mysql will start on boot service mysqld start; reset slave; Set the new master position. These shou

vim + tmux

https://www.youtube.com/watch?v=5r6yzFEXajQ

Laravel Service Providers, Facades, Contracts

read https://laravel.com/docs/5.8/providers https://laravel.com/docs/5.8/facades https://laravel.com/docs/5.8/contracts

Geospatial Databases and GeoHash