Skip to content

Instantly share code, notes, and snippets.

View mohamadaliakbari's full-sized avatar
💭
Coding new project

Mohammad Ali Akbari mohamadaliakbari

💭
Coding new project
View GitHub Profile
@mohamadaliakbari
mohamadaliakbari / wordpress-find-block-delete-spammers.md
Last active December 9, 2021 08:25
Find, Block and Delete spammers in wordpress

Find spammer IPs (IP with more than 1 unapproved comment)

select comment_author_IP from wp_comments where comment_approved = '0' group by comment_author_IP, comment_approved having count(*) > 1;

Convert to simple ip list using text-editor and REGX

Bulk check ip locations using https://app.ipapi.co/bulk/

Convert to propper format and insert into /etc/nginx/conf.d/blacklist.conf

@mohamadaliakbari
mohamadaliakbari / tailwindcss-with-plugin-standalone.md
Last active December 13, 2021 21:16
How to install Tailwind CSS standalone with plugins

Setup

enviroment with tailwindcss + plugins

Source: https://tailwindcss.com/docs/installation#using-tailwind-cli

Install and init

  • Install core utilities: npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
  • Init project: npx tailwindcss init this will create tailwind.config.js

Create stylesheets