Skip to content

Instantly share code, notes, and snippets.

View thamaraiselvam's full-sized avatar
🐼
Inner Peace

Thamaraiselvam (aka) Tham thamaraiselvam

🐼
Inner Peace
View GitHub Profile
@thamaraiselvam
thamaraiselvam / Bash.sh
Created February 12, 2018 12:46
Fix WP Time Capsule , Cannot copy bridge issue
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
We rule the world. …
Nothing happens in our society without software. Nothing….
Without software: Phones don't ring. Cars don't start. Planes don't fly. Bombs don't explode. Ships don't sail. Ovens don't bake. Garage doors don't open. Money doesn't change hands. Electricity doesn't get generated. And we can't find our way to the store. …
I will not produce harmful code.
The code that I produce will always be my best work. I will not knowingly release code that is defective either in behavior or structure.
@thamaraiselvam
thamaraiselvam / CLI.sh
Created September 22, 2017 12:55 — forked from rezzz-dev/CLI.sh
PHP Code Sniffer with WordPress Coding Standards and Atom
#Install PHP CodeSniffer
brew install homebrew/php/php-code-sniffer #if using Homebrew
git clone https://github.com/squizlabs/PHP_CodeSniffer.git phpcs #if you want to do it directly
#Install WordPress Coding Standards
git clone -b master https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git wpcs
#Add WordPress standards to PHPCS config
phpcs -i #shows the libraries installed
phpcs --config-set installed_paths <path to dir that you cloned>/wpcs