Skip to content

Instantly share code, notes, and snippets.

View NaveenKharwar's full-sized avatar
☀️
committing changes since 1999.

Naveen Kharwar NaveenKharwar

☀️
committing changes since 1999.
View GitHub Profile
@NaveenKharwar
NaveenKharwar / Install update WordPress puglins directly.md
Created April 10, 2020 10:14 — forked from dianjuar/Install update WordPress puglins directly.md
Install update WordPress plugins without providing ftp access

Install WordPress plugins directly (without FTP)

Put this on your wp-config.php

/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
#!/bin/sh
sudo apt update # Updating repo
sudo apt install wget git zsh -y # installing zsh, git and wget
chsh -s $(which zsh) # Make ZSH default shell
zsh
sudo wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
sudo wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/templates/zshrc.zsh-template -O ~/.zshrc
sudo apt install fonts-powerline
# Install Plugins -> Add more if you want
@NaveenKharwar
NaveenKharwar / docker-compose.yml
Last active November 10, 2022 15:56
Docker Compose File:- WordPress + PhpMyAdmin + WP-CLI
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
### FOR UBUNTU
### PHPCS
composer global require "squizlabs/php_codesniffer=*"
# Add to your .bash_profile
export PATH=$PATH:~/.composer/vendor/bin
#### WordPress Coding Standards
composer global require "wp-coding-standards/wpcs"