Skip to content

Instantly share code, notes, and snippets.

View calogxro's full-sized avatar

calogxro

View GitHub Profile
@benheu
benheu / custom-shortcode-wp-user.php
Last active June 6, 2017 01:40
MailPoet 2.X - Custom shortcodes - How to retrieve normal WP user data?
<?php
/**
*
* @param string $tag_value
* @param int $user_id mailpoet's subscriber id
* @return type
*/
function mailpoet_shortcodes_custom_filter( $tag_value , $user_id ) {
@willurd
willurd / web-servers.md
Last active May 18, 2025 17:06
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000