Github will be the main account and bitbucket the secondary.
ssh-keygen -t rsa -C "github email"
Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.
| [ req ] | |
| default_bits = 2048 | |
| default_keyfile = server-key.pem | |
| distinguished_name = subject | |
| req_extensions = req_ext | |
| x509_extensions = x509_ext | |
| string_mask = utf8only | |
| [ subject ] |
helpers.php file in your app directorycomposer.json manifest file to auloload this file: "autoload": {
"files": [
"app/helpers.php"
],
// ...
| /**************************\ | |
| Basic Modal Styles | |
| \**************************/ | |
| .modal { | |
| font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
| } | |
| .modal__overlay { | |
| position: fixed; |
| // long version | |
| function loadExt(files, after) { | |
| var _this=this; | |
| _this.files = files; | |
| _this.js = []; | |
| _this.head = document.getElementsByTagName("head")[0]; | |
| _this.after = after || function(){}; | |
| _this.loadStyle = function(file) { | |
| var link = document.createElement("link"); | |
| link.rel = "stylesheet"; |
| #include "stdio.h" | |
| #include "sys/socket.h" | |
| #include "errno.h" | |
| #include "netdb.h" | |
| #include "string.h" | |
| #include "stdlib.h" | |
| int main(int argc , char **argv) | |
| { | |
| struct hostent *host; |
mongodump -h xxx11.mlab.com:11 -u user -p password --authenticationDatabase release-db -d release-db -o /home/dumps
**Options** `-h`: mlab host:port, `-u`: db user, `-p`: db user password, `--authenticationDatabase` `-d`: mlab dbname, `-o`: path to store backupfiles
restore command, to restore locally
mongorestore --db dname /home/dumps
Otherwise to restore in mlab, create a new db and replace the options
| <?php | |
| require 'vendor/autoload.php'; | |
| use GuzzleHttp\Client; | |
| $client = new Client([ | |
| 'base_uri' => 'http://example.com', | |
| ]); |