Do chown / chmod wordpress folder:
$ sudo chown -R :_www wordpress
$ sudo chmod -R g+w wordpress
Add the following line into wp-config.php:
| /** | |
| Problem: | |
| You have a javascript array that likely has some duplicate values and you would like a count of those values. | |
| Solution: | |
| Try this schnippet out. | |
| */ |
| # source: http://macorios.com/blog/2013-2-28-sync-moom-between-two-or-more-macs | |
| # Copy this file to the new mac. | |
| ~/Library/Preferences/com.manytricks.Moom.plist.lockfile |
| 1. Open /Applications/XAMPP/etc/httpd.conf | |
| 2. Enable the following Modules by removing the # at the front of the line. | |
| - LoadModule rewrite_module modules/mod_rewrite.so | |
| - LoadModule proxy_module modules/mod_proxy.so | |
| - LoadModule proxy_http_module modules/mod_proxy_http.so | |
| 3. Copy and Paste below to the bottom of httpd.conf | |
| # Implements a proxy/gateway for Apache. |
| #!/bin/bash | |
| # Batch convert videos with HandBrake CLI | |
| # By Ralph Crisostomo - 2016.04.17 | |
| # | |
| # Usage : | |
| # 'sudo ./handbrake.sh /source /destination' | |
| # | |
| # Reference : | |
| # https://forum.handbrake.fr/viewtopic.php?f=6&t=19426 | |
| # https://gist.github.com/czj/1263872 |
| # Create an alias directory in XAMPP | |
| # Ref: http://www.mauriciomunera.com/?p=127 | |
| # Ref: https://gist.github.com/ralphcrisostomo/4974674/ | |
| # Open the file /Applications/xampp/etc/httpd.conf in a text editor. | |
| # Add these lines to the end of the files. (change the name of the alias for the web application that suits better for you) | |
| <IfModule alias_module> | |
| # | |
| # Redirect: Allows you to tell clients about documents that used to | |
| # exist in your server's namespace, but do not anymore. The client | |
| # will make a new request for the document at its new location. |
| [ | |
| { | |
| "zone": "Pacific/Midway", | |
| "gmt": "(GMT-11:00)", | |
| "name": "Midway Island" | |
| }, | |
| { | |
| "zone": "US/Samoa", | |
| "gmt": "(GMT-11:00)", | |
| "name": "Samoa" |
| set nocompatible | |
| call pathogen#infect() | |
| call pathogen#helptags() | |
| let mapleader = "," | |
| syntax enable | |
| " Mappings {{{ | |
| " Insert mode mappings {{{ |
| git rm -r --cached . | |
| git add . | |
| git commit -m "fixed untracked files" |