This file contains 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 | |
$strUrl = 'https://public-api.wordpress.com/rest/v1/sites/uwemergency.wordpress.com/posts/?number=1&type=post&status=publish'; | |
$objCH = curl_init($strUrl); | |
curl_setopt($objCH, CURLOPT_HEADER, false); | |
curl_setopt($objCH, CURLOPT_SSL_VERIFYPEER, false); | |
curl_exec($objCH); | |
curl_close($objCH); |
This file contains 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
#!/usr/bin/env python | |
""" | |
CGI include for grabbing the json from wordpress.com | |
""" | |
import cgi | |
import urllib2 | |
######################## DEBUG ############################# | |
## import pdb | |
## import cgitb |
This file contains 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
#!/bin/bash | |
######################################################################## | |
#### Script to smartly pull a range of events from the UW Calendar #### | |
#### #### | |
#### Usage: setup in crontab of user #### | |
#### #### | |
#### Author: Chris Heiland, cheiland@uw.edu 6/14/2010 #### | |
######################################################################## |
This file contains 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
# Only use in extreme cases where email is broken | |
# Please branch first | |
OLDEMAIL='' | |
NEWEMAIL='' | |
git filter-branch --env-filter 'if [ $GIT_COMMITTER_EMAIL = $OLDEMAIL ]; then GIT_COMMITTER_EMAIL=$NEWEMAIL; fi; export GIT_COMMITTER_EMAIL' | |
git filter-branch --env-filter 'if [ $GIT_AUTHOR_EMAIL = $OLDEMAIL ]; then GIT_AUTHOR_EMAIL=$NEWEMAIL; fi; export GIT_AUTHOR_EMAIL' |