Skip to content

Instantly share code, notes, and snippets.

View theking2's full-sized avatar
🎯
contemplating the odds

Johannes kingma theking2

🎯
contemplating the odds
View GitHub Profile
const style = document.createElement('style');
document.haad.appendChild(style);
const styleSheet = style.sheet;
styleSheet.insertRule('h1{font-size:123px;}');
/* DEVSENSE */
"[php]": {
"editor.defaultFormatter": "DEVSENSE.phptools-vscode"
},
"php.format.codeStyle": "PSR-2",
"php.format.rules.arrayInitializersNewLineAfterLastElement": true,
"php.format.rules.callParametersNewLineBeforeRightParen": true,
"php.format.rules.spaceBeforeColonInControlStatements": true,
@theking2
theking2 / gist:f12f45afb40209e8262ac583032ebdea
Created April 3, 2023 11:37
wordpress-mariadb-phpmyadmin
version: "3"
# Defines which compose version to use
services:
# Services line define which Docker images to run. In this case, it will be MySQL server and WordPress image.
db:
image: mariadb:10.4
restart: always
environment:
MARIADB_ROOT_PASSWORD: MyR00tMySQLPa$$5w0rD
MYSQL_DATABASE: wordpress
@theking2
theking2 / docker-compose.yaml
Created March 25, 2023 15:49
Wordpress mit mariadb latest
version: "3"
# Defines which compose version to use
services:
# Services line define which Docker images to run. In this case, it will be MySQL server and WordPress image.
db:
image: mariadb:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: MyR00tMySQLPa$$5w0rD
MYSQL_DATABASE: MyWordPressDatabaseName
@theking2
theking2 / docker-compose.yaml
Created March 25, 2023 09:13
Wordpress on mysql 5.6
version: "3"
# Defines which compose version to use
services:
# Services line define which Docker images to run. In this case, it will be MySQL server and WordPress image.
db:
image: mysql:5.7
# image: mysql:5.7 indicates the MySQL database container image from Docker Hub used in this installation.
restart: always
environment:
MYSQL_ROOT_PASSWORD: MyR00tMySQLPa$$5w0rD
@theking2
theking2 / array-replace.json
Created March 25, 2023 09:02
replace array() wih []
[{
"command": "array.replace",
"args": {
"info": "replace array() with []",
"find": "([\s\r\n])array\(([\s\r\n]*[^()\s](?:[^()]*[^()\s])?[\s\r\n]*)\)",
"replace": "$1[$2]",
"all": true,
"reg": true,
"flag": "gm"
}