Skip to content

Instantly share code, notes, and snippets.

View itsmikita's full-sized avatar

It's Mikita itsmikita

View GitHub Profile
@itsmikita
itsmikita / gist:d2566516a4a5310d7447
Last active August 29, 2015 14:26 — forked from morganwilde/gist:5574439
CATransform3D matrix with values explained
CATransform3D transformation = CATransform3DIdentity;
// x line
transformation.m11 = 1; // 20% less wide wall
transformation.m12 = 0; //-1 / 10.0; // skews left up, right down if >0
transformation.m13 = 0; // extends sideways for a short time
transformation.m14 = 0;// // 1 / 5000 = left side towards viewer, right side away from viewer
// y line
transformation.m21 = 0; //-1 / 2.0; // skews bottom left, top right if <0
transformation.m22 = 1; // .8 - 20% less tall
transformation.m23 = 0; // extends upward for a short time
@itsmikita
itsmikita / podman-wordpress-mariadb.sh
Created June 18, 2024 15:25 — forked from sbe-arg/podman-wordpress-mariadb.sh
Wordpress + MariadDB with podman local development
podman pod create --publish 8080:80 --name demo.wp.1
podman run -d --name wp.db --pod demo.wp.1 \
-e MARIADB_USER=mariadb \
-e MARIADB_PASSWORD=mariadb \
-e MARIADB_ROOT_PASSWORD=mariadb \
docker.io/library/mariadb
podman exec -it wp.db \
mysql -e "CREATE DATABASE wordpress;" --user=root --password=mariadb