Skip to content

Instantly share code, notes, and snippets.


Rory McDaniel rorymcdaniel

  • Frederick, MD
View GitHub Profile
rorymcdaniel / downloadpdf.conf
Created Feb 24, 2017 — forked from JPry/nginx.conf
Nginx - Force PDFs to download
View downloadpdf.conf
location ~* /(.*\.pdf) {
types { application/octet-stream .pdf; }
default_type application/octet-stream;
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 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 / 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