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
| # see https://github.com/cmaessen/docker-php-sendmail for more information | |
| FROM php:5-fpm | |
| RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/* | |
| RUN docker-php-ext-install mysql mysqli sysvsem | |
| RUN pecl install xdebug-2.5.5 \ | |
| && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ |
| FROM php:7.1.2-apache | |
| RUN docker-php-ext-install mysqli |
| #!/usr/bin/env python3 | |
| import ipaddress | |
| import tkinter | |
| import tkinter.ttk | |
| import tkinter.messagebox | |
| import sys | |
| def bin2dec(value): |
| import tkinter | |
| import random | |
| class PWGenGui(tkinter.Frame): | |
| def __init__(self, master=None): | |
| self.consonants = "bcdfghjklmnpqrstvwxz" | |
| self.vowels = "aeuoiy" | |
| self.numbers = "0123456789" | |
| self.symbols = "§$%&?#+" |
| from multiprocessing import Process, Queue | |
| import uavcan | |
| from contextlib import closing | |
| import tkinter | |
| def node_status_callback(event): | |
| print('#',event.transfer.source_node_id,': ', event.message.uptime_sec) | |
| # Messages, service requests, service responses, and entire events |
| from PyQt5 import QtWidgets, QtGui, QtCore | |
| font_but = QtGui.QFont() | |
| font_but.setFamily("Segoe UI Symbol") | |
| font_but.setPointSize(10) | |
| font_but.setWeight(95) | |
| class PushBut1(QtWidgets.QPushButton): | |
| def __init__(self, parent=None): |
| """Example of how to convert an xlsx file to JSON. | |
| Requirements: | |
| - Python 3.7 or higher | |
| - openpyxl (pip install openpyxl) | |
| Assumptions: | |
| - the active worksheet contains a rectangular array of data, | |
| with column names in the first row | |
| - the data fits in memory (makes the code below a bit simpler) |
| """Requires pypiwin32 - see installation instructions at https://github.com/mhammond/pywin32 | |
| """ | |
| import random | |
| import win32com.client | |
| # for other shape types, see MsoAutoShapeTypeEnumeration: | |
| # https://msdn.microsoft.com/en-us/vba/office-shared-vba/articles/msoautoshapetype-enumeration-office | |
| SHAPE_OVAL = 9 | |
| # for other layout options, see PpSlideLayout Enumeration: |