Skip to content

Instantly share code, notes, and snippets.

@sander1
sander1 / wp_kses_post_tags.php
Created August 20, 2017 19:02 — forked from bjorn2404/wp_kses_post_tags.php
WordPress allow iFrames with wp_kses_post filter
<?php
/**
* Add iFrame to allowed wp_kses_post tags
*
* @param string $tags Allowed tags, attributes, and/or entities.
* @param string $context Context to judge allowed tags by. Allowed values are 'post',
*
* @return mixed
*/
@sander1
sander1 / notify_newip_short.py
Last active February 15, 2017 13:47 — forked from blacktwin/notify_newip_short.py
If IP address is new use Pushover Agent (agent_id =7)
# 1. Install the requests module for python.
# pip install requests
# 2. Add script arguments in PlexPy.
# {user} {user_id} {ip_address}
import requests
import sys
user = sys.argv[1]
user_id = sys.argv[2]
@sander1
sander1 / README.txt
Created December 5, 2010 17:41 — forked from rmm5t/README.md
You can represent time statements in most western languages where
a prefix and/or suffix is used.
The default case is to use suffix only (as in English), which you
do by providing the `suffixAgo` and `suffixFromNow` settings in
the strings hash (earlier versions of timeago used the deprecated
`ago` and `fromNow` options). If present, they are used.
2 minutes [suffixAgo]
2 minutes [suffixFromNow]