Skip to content

Instantly share code, notes, and snippets.

Andrej B. andrejIka

Block or report user

Report or block andrejIka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
andrejIka / package.json
Created Mar 30, 2020
Webpack & package.json
View package.json
"private": true,
"scripts": {
"dev": "npm run watch & ./ & open http://ipropertymanagement.loc/ ",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
andrejIka /
Last active Mar 26, 2020 — forked from tomysmile/
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
andrejIka /
Last active Mar 27, 2020
Best wordpress project ever


  • custom class for queue
  • custom written wp-object class for caching, use redis
  • OOP
  • mariadb
  • purge redis cache on post save
  • PSR-4
  • timber
  • maximum symfony packages
andrejIka /
Created Mar 23, 2020 — forked from rosswd/
PHP Resources



  • Modern PHP: New features and good practices (1491905018)
  • Programming PHP (1449392776)
  • PHP for the Web (0134291255)
  • PHP Advanced and Object Oriented Programming (0321832183)
  • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide 5e (0134301846)
  • Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5 (1491918667)
  • Laravel - Up and Running (1491936088)
andrejIka /
Created Mar 7, 2020 — forked from schlessera/
Siteground webinar - Learn How WP-CLI Can Make Your Life Easier

Siteground webinar - Learn How WP-CLI Can Make Your Life Easier

Webinar description

WP-CLI, the command-line interface for WordPress, is one of the most popular tools among WordPress developers. However, it can be extremely helpful for anyone managing a WordPress site. In this webinar, the main person behind WP-CLI project: Alain Schlesser will show us the ins and outs of the tool. He will give us great examples on how it can be used to improve your workflow, for beginners to experienced developers and for projects big and small. We will give you invaluable examples on how to perform different tasks with WP-CLI automatically, saving you time and preventing you from making manual errors, like:

  • Keep forgetting to backup? Automate the process with WP-CLI.
  • Site not working? Get tips for easy troubleshoot with WP-CLI.
  • Too many spam comments? Learn how to clean them in no time.
  • Can’t log into your site? Reset your password with WP-CLI.
View wp-cli commands for new client projects
wp core download
wp core config --dbname=sample --dbuser=root --dbpass=root
wp core install --url= --title="WordPress Sample Site" --admin_user=nishikawa --admin_password=pass
wp plugin install show-current-template wp-basic-auth theme-check plugin-check wp-multibyte-patch --activate
wp plugin install wordpress-beta-tester jetpack contact-form-7 vk-all-in-one-expansion-unit
wp plugin delete hello
wp option update blogdescription "This is a new project!!"
wp option update posts_per_page 5
wp option update thread_comments 1
wp option update thread_comments_depth 3
View gist:b48f1a88766de12fb68f1aa127913bac

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

andrejIka /
Created Jan 11, 2020 — forked from jaredatch/
Install MailHog with MAMP Pro

Install MailHog with MAMP Pro, using HomeBrew.


First let's make sure HB is updated. Open up terminal for the following steps.

$ brew update
andrejIka / functions.php
Created Dec 26, 2019 — forked from jaredatch/functions.php
WordPress Search Autocomplete using admin-ajax.php
View functions.php
* Enqueue scripts and styles.
* @since 1.0.0
function ja_global_enqueues() {
andrejIka / gutenberg.txt
Created Dec 15, 2019 — forked from chrismccoy/gutenberg.txt
Gutenberg Resources
View gutenberg.txt
Extending Gutenberg With SlotFill and Filters
Block Comments swaps out the comment form for a block editor based input
How To Remove wp-block-library
Add a custom sidebar panel to Gutenberg
You can’t perform that action at this time.