This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
["Life isn’t about getting and having, it’s about giving and being.", "Kevin Kruse"] | |
["Whatever the mind of man can conceive and believe, it can achieve.", "Napoleon Hill"] | |
["Strive not to be a success, but rather to be of value.", "Albert Einstein"] | |
["Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", "Robert Frost"] | |
["I attribute my success to this: I never gave or took any excuse.", "Florence Nightingale"] | |
["You miss 100% of the shots you don’t take.", "Wayne Gretzky"] | |
["I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.", "Michael Jordan"] | |
["The most difficult thing is the decision to act, the rest is merely tenacity.", "Amelia Earhart"] | |
["Every strike brings me closer to the next home run.", "Babe Ruth"] | |
["Definiteness of purpose is the starting point of all achievement.", "W. |
<?php | |
//HTTP STATUS RESPONSES | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', | |
103 => 'Early Hints', | |
200 => 'OK', | |
201 => 'Created', | |
202 => 'Accepted', |
#! /usr/bin/env python | |
# This programm will create paths from root nodes to leafnodes along with values from any json file or structure. | |
import json | |
import pprint | |
json_data = open('sample_json_file.json', 'r').read() | |
json_dict = json.loads(json_data) |
import java.io.*; | |
public class TestProcessIO { | |
public static boolean isAlive(Process p) { | |
try { | |
p.exitValue(); | |
return false; | |
} | |
catch (IllegalThreadStateException e) { |
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
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
In this list, I will be typically be talking SEO as it relates to Google because Google will likely account for the vast majority of your inbound search traffic. Additionally, if you rank highly on Google, you will probably do well on other search engines anyway. Just like in football if you could play in the Major league you would most likely kill it in the minor league I would begin by explaining why SEO is important talk a little bit about what SEO is about and talk about how those concepts relate to the world wide web. Then talk about some of the things you could do to optimize your site from top to bottom of a typical webpage.