Skip to content

Instantly share code, notes, and snippets.

Rory McDaniel rorymcdaniel

  • Frederick, MD
Block or report user

Report or block rorymcdaniel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rorymcdaniel / BlogController.php
Last active Nov 23, 2016 — forked from tobysteward/BlogController.php
Laravel AJAX Pagination with JQuery
View BlogController.php
class BlogController extends Controller
* Posts
* @return void
public function showPosts()
rorymcdaniel /
Last active May 1, 2017
Generate a self signed certificate for development and make Chrome trust it
# Usage:
# Generates a key and self signed certificate, then requires Linux Chrome to trust the certificate
# Dependency: libnss3-tools (sudo apt install libnss3-tools)
if (( $EUID != 0 )); then
echo "Please run again with sudo"
View wpApiGetUsers.php
$wp = new GuzzleHttp\Client();
$request = $wp->get('');
$statusCode = $request->getStatusCode();
if($statusCode >= 200 && $statusCode < 300 ) {
$users = json_decode($request->getBody());
foreach($users as $user) {
rorymcdaniel /
Last active Feb 7, 2016 — forked from brpowell/
Dropbox rom syncing script for retropie console
#!/usb/bin/env python
import os
import dropbox
import shutil
import zipfile
# Create a dropbox app and obtain App Key and Secret Key. Specify a folder
# Create a folder called romsync in your specified Dropbox app folder
# Store Dropbox App Key and Secret Key in system environment variables
rorymcdaniel /
Created Dec 16, 2015
Bash script that will regenerate all images for all sites in a WordPress multisite network
for site in `wp site list --field=url`; do
wp media regenerate --yes --url=$site
rorymcdaniel / precommit
Created Sep 1, 2015
A git precommit hook that looks for things like console.log, var_dump, etc and prevents the commit if found
View precommit
#!/usr/bin/env bash
rorymcdaniel / 0_reuse_code.js
Created Jul 1, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.