Skip to content

Instantly share code, notes, and snippets.

View boogah's full-sized avatar
🎡

Jason Cosper boogah

🎡
View GitHub Profile
@boogah
boogah / gist:4981842
Created February 18, 2013 23:54
Here's a command you can use to grab a copy of Twenty Thirteen for WordPress before its "official" release.
svn co https://wpcom-themes.svn.automattic.com/twentythirteen/ && zip -rv twentythirteen twentythirteen
@boogah
boogah / wp_mysql_optimizations.sql
Last active April 20, 2017 20:32
Common database optimizations for WordPress sites.
/* Delete revisions */
DELETE FROM wp_posts WHERE post_type = "revision";
/* Only use this if you no longer care about any of your current revisions! */
/* Delete trashed posts */
DELETE FROM wp_posts WHERE post_type = "trash";
/* Delete Jetpack Feedback Spam */
SELECT * FROM wp_posts WHERE wp_posts.post_type = "feedback" AND wp_posts.post_status= "spam";
@boogah
boogah / .htaccess
Created April 12, 2013 16:49
A list of bad IPs responsible for a number of brute force attacks on WordPress, prepared as an .htaccess deny list. Just add it to your site's .htaccess rules and feel a tiny bit safer. List culled from this post by Sucuri: http://blog.sucuri.net/2013/04/mass-wordpress-brute-force-attacks-myth-or-reality.html
# BEGIN wp-login.php blocks
<Files wp-login.php>
order allow,deny
deny from 31.184.238.38
deny from 178.151.216.53
deny from 91.224.160.143
deny from 195.128.126.6
deny from 85.114.133.118
deny from 177.125.184.8
deny from 89.233.216.203
@boogah
boogah / podcasts.md
Last active December 16, 2015 07:19
A list of podcasts that I am currently listening to.
@boogah
boogah / Favorite Alfred Workflows.md
Last active December 29, 2017 19:41
My Favorite Alfred Searches & Workflows
@boogah
boogah / javascript_blacklist.txt
Last active September 20, 2017 00:27
As of September 19th, 2017, this list is now a full fledged GitHub project: https://github.com/boogah/javascript-blacklist
2leep.com, 2mdn.net, 3lift.com, AdGardener.com, adclick.g.doubleclick.net, addthis.com, adgardener.com, adnxs.com, adroll.com, ads.pointroll.com, ads.shorttail.net, adsmws.cloudapp.net, adultadworld.com, ap.lijit.com, api.bounceexchange.com, apture.com, bluekai.com, bop.fm, bounceexchange.com, casalemedia.com, cdn.taboolasyndication.com, cdn.wibiya.com, chartbeat.com, chartbeat.net, coin-hive.com, connatix.com, criteo.com, criteo.net, d1.openx.org, doubleclick.net, doubleverify.com, exitjunction.com, fyre.co, getconnected.southwestwi-fi.com, googleadservices.com, gravity.com, grvcdn.com, imrworldwide.com, intellitxt.com, intentmedia.net, jetpackdigital.com, kargo.com, kontera.com, livefyre.com, liverail.com, luminate.com, meebo.com, moovmanage.com, o.aolcdn.com, olark.com, openx.net, outbrain.com, parsely.com, po.st, pointroll.com, pubmatic.com, quantserve.com, s.ppjol.net, scmplayer.net, scorecardresearch.com, scorecardsresearch.com, serving-sys.com, sharethis.com, sharethrough.com, skimresources.com, snap.c
@boogah
boogah / wp_nexgen_cleanup.sql
Created January 27, 2014 21:58
Scrub NextGEN Gallery cruft from database.
/* Delete NextGEN Gallery Transients */
DELETE FROM wp_options WHERE option_name LIKE ('displayed_galleries%');
DELETE FROM wp_options WHERE option_name LIKE ('displayed_gallery_rendering%');
@boogah
boogah / nginx.conf
Created April 8, 2014 16:26
Semalt nginx block
if ($http_referer ~* "semalt\.com") {
return 444;
}
@boogah
boogah / hipsum_neat.csv
Last active June 29, 2023 20:20
A full dump of hipster centric words courtesy of the http://hipsum.co database. Build fun shit with this!
131 +1
79 3 wolf moon
65 8-bit
200 90's
214 actually
127 aesthetic
70 American Apparel
130 art party
112 artisan
224 asymmetrical
@boogah
boogah / herb_rubbed_pork_loin.md
Last active August 29, 2015 14:03
Herb Rubbed Pork Loin

Meat

3 pounds worth of pork loin, preferably two 1.5 pound pork loins.

Herb Rub

  • 2 tablespoons brown sugar
  • 1 teaspoon paprika
  • 1 dash cayenne
  • 1 tablespoon yellow mustard