Skip to content

Instantly share code, notes, and snippets.

View priscillamc's full-sized avatar

Priscilla Chapman priscillamc

View GitHub Profile

Convert line endings

Convert to Unix: :set ff=unix Convert to Windows: :set ff=dos

Save and close

:wq

Edit file

i

@priscillamc
priscillamc / wp-theme-checklist.md
Last active June 29, 2017 13:01
Theme update checklist

Code

-[ ] Removed debugging code (error_log, console.log, var_dump, dbgx_trace_var)

@priscillamc
priscillamc / Git.md
Last active February 6, 2021 20:17
Helpful git commands

Git Commands

Merging branches

Merge specific files from another branch into current branch

git checkout branchname filename filename

git checkout branchname dir1/ dir2/

iThemes Security Banned Users Apache Fix

Enables custom IP and Basic Auth restrictions with iThemes Banned Users module enabled.

The 'Require all granted' directive gives access to any host not banned in the list, ignoring any other restrictions in the .htaccess file. This results in basic authentication and other rules not working.