Edit your hosts file
sudo nano /etc/hosts
and add your domain
127.0.0.1 domain.com www.domain.com
Edit your hosts file
sudo nano /etc/hosts
and add your domain
127.0.0.1 domain.com www.domain.com
curl --ssl-reqd smtp://smtp.office365.com:587 \ | |
--mail-from [email protected] \ | |
--mail-rcpt [email protected] \ | |
--user '[email protected]:password' \ | |
-T <(echo -e 'From: [email protected]\nTo: [email protected]\nSubject: Curl Test\n\nHello') |
-- Delete all but posts and attachments
delete
from wp_posts
where post_type not ('post', 'attachment')
-- Select orphan post meta
select *
from wp_postmeta
left join wp_posts on wp_posts.ID = wp_postmeta.post_id
Since WordPress function naming is an absolute mess (and so the documentation is) and after +10 years I can't manage to remember any of them, here is a quick cheatsheet I hope makes things easier in the future:
the_post_thumbnail($size = 'post-thumbnail', $attr = '')
get_the_post_thumbnail($post = null, $size = 'post-thumbnail', $attr = '')
In recent versions of the WordPress plugin WPML you need to manually setup translators, otherwise non-admins will see the message You don't have the rights to translate from {lang} to {lang}
when attempting to edit any translation. You can bypass this by adding the following filter in your functions.php
add_filter('wpml_override_is_translator', '__return_true');
Cheers!
# List interest categories | |
curl -X GET \ | |
'https://{server}.api.mailchimp.com/3.0/lists/{list_id}/interest-categories' \ | |
--user 'apikey:API_KEY' | |
# List interests in category | |
curl -X GET \ | |
'https://{server}.api.mailchimp.com/3.0/lists/{list_id}/interest-categories/{interest_category_id}/interests' \ | |
--user 'apikey:API_KEY' |
(?:__|\@lang)\((?:'|\")(.*)(?:'|\")\) |
# Create Color Look Up Table | |
convert -size 1x1 xc:#008cff xc:#ffffff +append clut.gif | |
# Create gradient | |
convert -size 20x256 gradient: -rotate 90 clut.gif -interpolate bilinear -clut gradient.gif | |
# PNG to JPG | |
mogrify -format jpg *.png | |
# Convert to grayscale |