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
| version: "2" | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0 | |
| container_name: elasticsearch | |
| ports: | |
| - "9200:9200" | |
| - "9300:9300" | |
| volumes: | |
| - esdata:/usr/share/elasticsearch/data |
| using System; | |
| using ServiceStack; | |
| using ServiceStack.Text; | |
| using ServiceStack.OrmLite; | |
| using ServiceStack.OrmLite.Sqlite; | |
| using ServiceStack.DataAnnotations; | |
| var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider); | |
| var db = dbFactory.Open(); // Open ADO.NET DB Connection |
| // time and time end | |
| console.time("This"); | |
| let total = 0; | |
| for (let j = 0; j < 10000; j++) { | |
| total += j | |
| } | |
| console.log("Result", total); | |
| console.timeEnd("This"); | |
| // Memory |
| <!DOCTYPE HTML> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>test upload by chunk</title> | |
| </head> | |
| <body> | |
| <input type="file" id="f" /> | |
| <script src="script.js"></script> |
| // JS array equivalents to C# LINQ methods - by Dan B. | |
| // Here's a simple array of "person" objects | |
| var people = [ | |
| { name: "John", age: 20 }, | |
| { name: "Mary", age: 35 }, | |
| { name: "Arthur", age: 78 }, | |
| { name: "Mike", age: 27 }, | |
| { name: "Judy", age: 42 }, | |
| { name: "Tim", age: 8 } |
| ack | |
| azure-cli | |
| bison | |
| boost | |
| curl | |
| erlang | |
| erlang@20 | |
| gcc | |
| gdal | |
| glib |
| # Script correlating to tutorial at http://ebens.me/post/install-lamp-stack-ubuntu | |
| # Even though you probably could, don't run it all at once | |
| # new user | |
| adduser new_user | |
| usermod -a -G sudo new_user | |
| su - new_user | |
| # new repos |
| apt-get update -o Aquire::ForceIPv4=true |
| foo | bar | baz | |
|---|---|---|---|
| a | 1 | ||
| b | 2 | ||
| c | |||
| 4 | |||
| e | 5 |