Skip to content

Instantly share code, notes, and snippets.

View miltonbolonha's full-sized avatar

Milton Bolonha miltonbolonha

View GitHub Profile
@miltonbolonha
miltonbolonha / docker-ini.ini
Created April 7, 2021 02:04
docker ini for wordpress
max_execution_time = 60
memory_limit = 128M
post_max_size = 8M
upload_max_filesize = 8M
max_input_time = 60
file_uploads = On
safe_mode = Off
@miltonbolonha
miltonbolonha / plugins-install.sh
Created April 7, 2021 02:04
bash plugins install for wordpress
sudo chmod -R 775 /home/milton/www/projects/system* && mkdir wp-content/plugins
curl -L https://downloads.wordpress.org/plugin/wp-super-cache.1.7.2.zip -o /tmp/wp-super-cache.1.7.2.zip
curl -L https://downloads.wordpress.org/plugin/advanced-custom-fields.5.9.5.zip -o /tmp/advanced-custom-fields.5.9.5.zip && unzip /tmp/advanced-custom-fields.5.9.5.zip -d ./wp-content/plugins
curl -L https://downloads.wordpress.org/plugin/custom-post-type-ui.1.8.2.zip -o /tmp/custom-post-type-ui.1.8.2.zip && unzip /tmp/custom-post-type-ui.1.8.2.zip -d ./wp-content/plugins
curl -L https://downloads.wordpress.org/plugin/learnpress.zip -o /tmp/learnpress.zip && unzip /tmp/learnpress.zip -d ./wp-content/plugins
curl -L https://downloads.wordpress.org/plugin/shins-pageload-magic.zip -o /tmp/shins-pageload-magic.zip && unzip /tmp/shins-pageload-magic.zip -d ./wp-content/plugins
curl -L https://downloads.wordpress.org/plugin/wordpress-seo.16.0.0.zip -o /tmp/wordpress-seo.16.0.0.zip && unzip /tmp/wordpress-seo.16.0.0.zip -d ./wp-conten
@miltonbolonha
miltonbolonha / composer.json
Created April 7, 2021 02:03
Timber + Plugins for Wordpress init boilerplate
{
"name": "bolonhadev/room",
"type": "wordpress-plugin",
"license": "MIT",
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure",
"keywords": [
"composer",
"wordpress",
"wp",
"wp-config"
@miltonbolonha
miltonbolonha / docker-compose.yml
Created April 7, 2021 02:02
Wordpress + MariaDB / docker installation
version: "3.9"
services:
db:
image: mariadb:latest
volumes:
- /data/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
@miltonbolonha
miltonbolonha / settings.json
Created April 7, 2021 01:54
WSL user profile settings
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"profiles": {
"defaults": {
// Put settings here that you want to apply to all profiles
},
"list": [
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/milton/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes