Skip to content

Instantly share code, notes, and snippets.

View cjmosure's full-sized avatar
:octocat:
Github Developer Program

CJ Mosure cjmosure

:octocat:
Github Developer Program
View GitHub Profile
#!/bin/bash
#Download the latest copy of WordPress into a directory, grab all the files in the new /wordpress folder
#Put all the files in the current directory, remove the now empty /wordpress directory
#Remove the tarball
#download latest wordpress with wget
wget http://wordpress.org/latest.tar.gz
#OR using CURL
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/query.php
*/
$args = array(
@cjmosure
cjmosure / header.php
Created November 5, 2015 14:50 — forked from retlehs/header.php
Sage header template for Bootstrap top navbar component
<?php
// This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker
// somewhere in your theme.
?>
<header class="banner navbar navbar-default navbar-static-top" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span>
@cjmosure
cjmosure / twitter-unfollow.js
Created November 25, 2015 17:30 — forked from peterdemin/twitter-unfollow.js
Web browser console command to unfollow everyone on https://twitter.com/following page by issuing onclick() on all "Unfollow" buttons.
$('button span.unfollow-text').parent().each(function(i, a) {a.click();})
@cjmosure
cjmosure / wp-permissions-script
Created June 28, 2016 22:50 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro
#
WP_OWNER=changeme # &lt;-- wordpress owner
WP_GROUP=changeme # &lt;-- wordpress group
WP_ROOT=/home/changeme # &lt;-- wordpress root directory