Skip to content

Instantly share code, notes, and snippets.

@keg
keg / new_gist_file
Created May 9, 2013 14:36
Saxo Post Save Error
Could not execute script on story save. Please try to save again.:
Script Errors: Error on line 8 position 1: include(\\sxatl.loc\mn1\assets\\OWSScript\settings.php): failed to open stream: No such file or directory
Error on line 8 position 1: include(): Failed opening '\\sxatl.loc\mn1\assets\\OWSScript\settings.php' for inclusion (include_path='.;C:\php5\pear')
Error on line 100 position 1: Use of undefined constant DEBUG_PATH - assumed 'DEBUG_PATH'
Error on line 101 position 1: Use of undefined constant PUBTAXONOMY - assumed 'PUBTAXONOMY'
Error on line 104 position 1: Use of undefined constant LOG_DEBUGINFO - assumed 'LOG_DEBUGINFO'
#!/bin/bash
awk '{
if(FNR==NR){
a[$1,$2]=$2;
next
}
for (b in a){
split(b,c,SUBSEP);
if(c[1] == $1 && a[b] >= $4 && a[b] <= $5){
realestate.dailyfreeman.com,
realestate.oneidadispatch.com,
realestate.saratogian.com,
realestate.troyrecord.com,
Redirect to www.midhudsondoorways.com
realestate.news-herald.com,
realestate.morningjournal.com
Redirect to www.myhomeoh.com
function thatKindofDay(headlineLinkPrepend,subhedDayPrepend,linkDayHash,topHeaderDayPrepend) {
// Rewrite the links on the page, adding the hash to article urls.
dfm.$('a.complexListingLink, a.listingItemTitle, h1.articleTitle, #mc-widget-container-large a').prepend(headlineLinkPrepend);
if ( dfm.$('#articleSubTitle').length ) dfm.$('#articleSubTitle').prepend(subhedDayPrepend);
// Rewrite the links on the page, adding the hash to article urls.
dfm.$('a').attr('href', function()
{
return this + 'linkDayHash';
});
dfm.$('.topic-header, .complexListingTitle').prepend(topHeaderDayPrepend);
[{"id":1837,"label":"3D Glasses","parent":1836},{"id":4870,"label":"3D Modeling Software","parent":4869},{"id":1396,"label":"3D Printers","parent":1395},{"id":4962,"label":"Abdominal Equipment","parent":4961},{"id":3883,"label":"Absinthe Fountains","parent":3882},{"id":1528,"label":"Accelerometers","parent":1527},{"id":2587,"label":"Accent Tables","parent":2586},{"id":3246,"label":"Accessibility Equipment","parent":3245},{"id":3252,"label":"Accessibility Equipment Accessories","parent":3245},{"id":3253,"label":"Accessibility Furniture & Fixtures","parent":3245},{"id":905,"label":"Accordions & Concertinas","parent":904},{"id":2652,"label":"Acid Neutralizers","parent":2651},{"id":3353,"label":"Acne Treatments & Kits","parent":3352},{"id":795,"label":"Acoustic Guitar Pickups","parent":794},{"id":957,"label":"Acoustic Guitars","parent":956},{"id":5779,"label":"Action Figures","parent":5778},{"id":5778,"label":"Action & Toy Figures","parent":5777},{"id":117,"label":"Active Dresses","parent":116},{"id":118,"label":
@keg
keg / xdebug.ini
Created February 4, 2016 02:21
xdebug config
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
@keg
keg / vip_replace.sh
Last active November 10, 2016 23:05
#!/bin/bash
echo "*********VIP REPLACE SCRIPT STARTING**********"
@keg
keg / wordpress.conf
Last active May 2, 2016 00:19
wordpress.conf
# 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.
/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/
@keg
keg / ebt_redirects.csv
Created August 29, 2016 18:06
more-ebt-redirects
/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/