Skip to content

Instantly share code, notes, and snippets.

View ttamnedlog's full-sized avatar

Matt ttamnedlog

View GitHub Profile
@ttamnedlog
ttamnedlog / search_and_replace.sh
Last active April 7, 2018 21:15 — forked from kates/search_and_replace.sh
bulk search and replace with the silver searcher, awk, sed and xargs
ag $1 --files-with-matches | xargs -I {} sed -i '.back' -e "s/$1/$2/g" {}
@ttamnedlog
ttamnedlog / wp-query-ref.php
Created May 9, 2017 14:08 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(