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
CREATE TABLE users ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
username VARCHAR(255) NOT NULL UNIQUE, | |
password VARCHAR(255) NOT NULL | |
); | |
CREATE TABLE conversations ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
name VARCHAR(255) NOT NULL, | |
created_at DATETIME DEFAULT CURRENT_TIMESTAMP |
<?php | |
class UserRepository | |
{ } | |
class UserController { | |
private $userRepository; | |
public function __construct(UserRepository $repository) | |
{ |
import sys | |
from PyQt5.QtCore import QUrl, QSize | |
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineScript, QWebEnginePage, QWebEngineProfile | |
from PyQt5.QtWidgets import QToolBar, QAction, QLineEdit, QLabel, QMainWindow, QTabWidget, QApplication | |
from PyQt5.QtNetwork import QNetworkCookie | |
import http.cookiejar | |
def create_script(name, src, injection_point = QWebEngineScript.DocumentCreation, world = QWebEngineScript.MainWorld, on_subframes = True): | |
script = QWebEngineScript() | |
script.setSourceCode(src) |
<html> | |
<head> | |
<script src="qrc:///qtwebchannel/qwebchannel.js"></script> | |
<style> | |
::selection { | |
background: transparent; | |
} | |
</style> | |
</head> |
"""create a remote connection to a webapp.""" | |
import sys | |
import json | |
from PySide6.QtWidgets import QApplication, QMainWindow | |
from PySide6.QtNetwork import QHostAddress, QSslSocket | |
from PySide6.QtWebChannel import QWebChannel, QWebChannelAbstractTransport | |
from PySide6.QtWebSockets import QWebSocketServer | |
from PySide6.QtWebEngineWidgets import QWebEngineView |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>QWebChannel Client</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script type="text/javascript" src="qwebchannel.js"></script> |
mysql -u root -p | |
CREATE DATABASE testing; | |
GRANT ALL PRIVILEGES ON testing.* TO test_user@localhost IDENTIFIED BY 'test_pass'; | |
FLUSH PRIVILEGES; |
mix.browserSync({
proxy: 'localhost:8080',
files: [
'index.html',
]
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |