Skip to content

Instantly share code, notes, and snippets.

View rorymcdaniel's full-sized avatar

Rory McDaniel rorymcdaniel

View GitHub Profile
@rorymcdaniel
rorymcdaniel / downloadpdf.conf
Created February 24, 2017 14:09 — forked from JPry/nginx.conf
Nginx - Force PDFs to download
location ~* /(.*\.pdf) {
types { application/octet-stream .pdf; }
default_type application/octet-stream;
}
@rorymcdaniel
rorymcdaniel / BlogController.php
Last active November 23, 2016 18:27 — forked from tobysteward/BlogController.php
Laravel AJAX Pagination with JQuery
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()
@rorymcdaniel
rorymcdaniel / romsync.py
Last active February 7, 2016 15:13 — forked from brpowell/romsync.py
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
rorymcdaniel / 0_reuse_code.js
Created July 1, 2014 02:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console