start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/python | |
import csv | |
import requests | |
csv_data_to_write = [['original url', 'destination url', | |
'final http status', 'redirect path']] | |
def redirect_history(history): | |
'''repack urls to a neat list''' |
/12083949 | /2009/04/06/missing-tracy-girls-body-found/ | |
---|---|---|
/12265897 | /2009/04/30/putting-longmire-on-bailey-case-was-a-mistake-jordan-admits/ | |
/12968339 | /2009/07/31/bakery-ceo-wanted-journalist-chauncey-baileys-source-killed/ | |
/12978932 | /2009/08/02/the-oakland-post-pushes-forward-despite-loss-of-prolific-editor/ | |
/13572201 | /2009/10/15/readers-forum-measure-i-bad-for-walnut-creek/ | |
/14127184 | /2010/01/05/my-word-oakland-city-council-should-see-ranked-choice-voting-is-the-right-idea-at-the-wrong-time/ | |
/15925657 | /2010/08/28/officer-shooting-suspect-arrested-just-feet-from-mexican-border/ | |
/18003975 | /2011/05/05/contra-costa-times-your-turn-abandoning-our-children-when-they-need-us-most/ | |
/18242609 | /2011/06/09/murder-convictions-cap-a-great-day-for-journalists/ | |
/18249805 | /2011/06/10/analysis-jurors-took-the-demon-over-the-devil-in-bailey-murder-trial/ |
/services | https://www.subscriberconcierge.com/bayareanewsgroup/ | |
---|---|---|
/agents | https://securetools.homescape.com/OAP/agent_search.jsp?affiliate_Name=oap_eastbaytimes | |
/agents | https://securetools.homescape.com/OAP/agent_search.jsp?affiliate_Name=oap_eastbaytimes | |
/subscribe | https://myaccount.eastbaytimes.com/dssSubscribe.aspx | |
/nominate | http://www.topworkplaces.com/frontend.php/regional-list/nominate/start/bayarea | |
/nominate/ | http://www.topworkplaces.com/frontend.php/regional-list/nominate/start/bayarea | |
/warriors | http://www.mercurynews.com/warriors#eastbaytimes | |
/warriors/ | http://www.mercurynews.com/warriors#eastbaytimes | |
/teens | http://www.mercurynews.com/teens#eastbaytimes | |
/superbowl | http://www.mercurynews.com/super-bowl |
/12083949 | /2009/04/06/missing-tracy-girls-body-found/ | |
---|---|---|
/12265897 | /2009/04/30/putting-longmire-on-bailey-case-was-a-mistake-jordan-admits/ | |
/12968339 | /2009/07/31/bakery-ceo-wanted-journalist-chauncey-baileys-source-killed/ | |
/12978932 | /2009/08/02/the-oakland-post-pushes-forward-despite-loss-of-prolific-editor/ | |
/13572201 | /2009/10/15/readers-forum-measure-i-bad-for-walnut-creek/ | |
/14127184 | /2010/01/05/my-word-oakland-city-council-should-see-ranked-choice-voting-is-the-right-idea-at-the-wrong-time/ |
/11819470 | /2009/03/02/review-berkeley-operas-retold-tales-of-hoffmann-captivates-2/ | |
---|---|---|
/11819670 | /2009/03/02/2009-10-s-f-symphony-season-looks-fat-in-a-lean-year-2/ | |
/11819802 | /2009/03/02/pat-down-lawsuit-against-49ers-can-proceed-2/ | |
/11819902 | /2009/03/02/john-bryant-named-wccs-player-of-the-year-2/ | |
/11819987 | /2009/03/02/pc-shipments-may-drop-12-2/ | |
/11819991 | /2009/03/02/storms-help-dont-end-drought-2/ | |
/11820030 | /2009/03/02/buffett-says-economy-in-shambles-promises-recovery-2/ | |
/11820031 | /2009/03/02/gold-silver-extend-their-slumps-2/ | |
/11820032 | /2009/03/02/housing-crisis-result-of-ignoring-history/ | |
/11820166 | /2009/03/02/amber-alert-cancelled-yreka-child-is-found-safe-2/ |
/11818766,/2009/03/02/oakland-weekend-shootings-2/ | |
/11820093,/2009/03/02/read-a-transcript-from-our-inside-the-raiders-live-chat-on-tuesday-2/ | |
/11820766,/2009/03/02/on-the-air-855/ | |
/11821995,/2009/03/02/clinton-calls-for-action-to-forge-mideast-peace-2/ | |
/11826197,/2009/03/03/police-allege-man-sold-meth-in-hollowed-out-walking-canes-2/ | |
/11826262,/2009/03/03/around-the-horn-1064/ | |
/11826264,/2009/03/03/whats-happening-1616/ | |
/11826557,/2009/03/03/foodwine-calendar-4/ | |
/11826839,/2009/03/03/eugene-robinson-obama-working-toward-a-reagan-like-political-shift-2/ | |
/11826847,/2009/03/03/john-m-crisp-other-problems-beyond-the-economy-2/ |
# WordPress single site rules. | |
# Designed to be included in any server {} block. | |
# This order might seem weird - this is attempted to match last if rules below fail. | |
# http://wiki.nginx.org/HttpCoreModule | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
# Add trailing slash to */wp-admin requests. |
#!/bin/bash | |
echo "*********VIP REPLACE SCRIPT STARTING**********" | |
zend_extension="/usr/lib/php5/20131226/xdebug.so" | |
xdebug.extended_info = 1 | |
xdebug.remote_autostart = 1 | |
xdebug.remote_enable = 1 | |
xdebug.remote_handler = dbgp | |
xdebug.remote_host = 127.0.0.1 | |
xdebug.remote_port = "9000" | |
xdebug.profiler_enable_trigger = 1 | |
xdebug.profiler_output_dir = /tmp |