This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// delete-old-tweets.php - https://github.com/timdp | |
// | |
// -- Instructions -- | |
// 1. Save this script somewhere as delete-old-tweets.php | |
// 2. Get your Twitter archive and extract it to the same folder | |
// 3. Clone https://github.com/themattharris/tmhOAuth to the same folder | |
// 4. Register an app at dev.twitter.com and enter its credentials below |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .gitignore file for WordPress that ignores everything except: | |
# | |
# - .gitignore | |
# - favicon.ico | |
# - wp-config.php | |
# - everything in mu-plugins | |
# - my-plugin | |
# - my-theme (except for .sass-cache) | |
# | |
# based on https://gist.github.com/jdbartlett/444295 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.gravityhelp.com/documentation/page/Web_API#Security | |
import time | |
import base64 | |
import urllib | |
import requests | |
import json | |
import hmac | |
from hashlib import sha1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add Estimated Post Reading Time in Genesis Framework using Estimated Post Reading Time plugin | |
add_filter( 'genesis_post_info', 'afn_post_info_filter' ); | |
function afn_post_info_filter($post_info) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit] Estimated reading time: [est_time]'; | |
return $post_info; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Welcome to Public WiFi</title> | |
</head> | |
<body> | |
<h1>Welcome to Public WiFi</h1> | |
<?php | |
$base_grant_url = urldecode($_GET['base_grant_url']); | |
$user_continue_url = urldecode($_GET['user_continue_url']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="selected-filters" class="selected-filters"> | |
<h4><?php _e('Selected filters','rc'); ?>:</h4> | |
<?php echo facetwp_display('selections'); ?> | |
<span class="facetwp-reset" onclick="FWP.reset()"><?php _e('reset all filters','rc'); ?></span> | |
</div> |