Skip to content

Instantly share code, notes, and snippets.

View NurdinDev's full-sized avatar
🎯
Focusing

Nureddin Badawi NurdinDev

🎯
Focusing
View GitHub Profile
@NurdinDev
NurdinDev / Copy_WordPress_With_CLI.md
Last active November 19, 2020 08:25
Moving WordPress from place to place using WP-CLI

First Place

  • Go inside your wordpress directory and do:
    1. zip -r wp-content.zip wp-content/
    2. wp db export wp.sql

Move your backups

cp wp.sql wp-content.zip second

Second Place

  • Note: Make sure you have installed wordpress and add your config if not follow this:
@NurdinDev
NurdinDev / clean_code.md
Created January 5, 2020 21:48 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

####### FIREST
mkdir $HOME/Dropbox/sublime-text-3/
mv "$HOME/Library/Application Support/Sublime Text 3/Packages" "$HOME/Dropbox/sublime-text-3/"
mv "$HOME/Library/Application Support/Sublime Text 3/Installed Packages" "$HOME/Dropbox/sublime-text-3/"
######## Then
run this command in Terminal in every other computer you want synchronized with