Skip to content

Instantly share code, notes, and snippets.

View toddpi314's full-sized avatar
💻
Movies, Music & Microcode

Todd Morrison toddpi314

💻
Movies, Music & Microcode
View GitHub Profile
@toddpi314
toddpi314 / wildcard-ssl-cert-for-testing-nginx-conf.md
Created January 31, 2019 16:33 — forked from sr75/wildcard-ssl-cert-for-testing-nginx-conf.md
create a self signed wildcard ssl cert for testing with nginx.conf example

just change out app_name for your purposes

openssl genrsa 2048 > app_name-wildcard.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert

# Common Name (eg, your name or your server's hostname) []:*.app_name.com

openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info
@toddpi314
toddpi314 / README.md
Created October 22, 2015 15:35 — forked from matijs/README.md
Instructions and example configuration to install BitTorrent Sync on a Raspberry Pi running Arch Linux.

Installing BitTorrent Sync on a Raspberry Pi running Arch Linux

The commands below assume you're using a user that can use sudo, you're not logged in as root are you!?

First create a btsync user:

sudo useradd -M --shell /bin/false --home /var/lib/btsync
@toddpi314
toddpi314 / gist:4009725
Created November 4, 2012 01:28
Backbone-Relational - AutoFetch support
/**
* Backbone-relational.js 0.5.0
* (c) 2011 Paul Uithol
*
* Backbone-relational may be freely distributed under the MIT license.
* For details and documentation: https://github.com/PaulUithol/Backbone-relational.
* Depends on (as in, compeletely useless without) Backbone: https://github.com/documentcloud/backbone.
*/
(function(undefined) {
/**
@toddpi314
toddpi314 / Lightning_LogOnView.html
Created July 30, 2012 00:49
Lightning_LogOnView
@model LightningMVC.Views.LogOn.LogOnViewModel
@{
Layout = "~/Views/Shared/MasterLayout/MasterLayoutView.cshtml";
}
@using (Html.BeginForm("Logon", "Authentication", FormMethod.Post))
{
<h2>Login</h2>
<table>
<tr>
<td>Username: </td>
@toddpi314
toddpi314 / Lightning_AuthenticationController.cs
Created July 30, 2012 00:23
Lightning_AuthenticationController
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using LightningMVC.Views.LogOn;
namespace LightningMVC.Controllers
{
@toddpi314
toddpi314 / Lightning_CustomRazorViewEngine.cs
Created July 30, 2012 00:04
Lightning_CustomRazorViewEngine
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace LightningMVC.Code
{
public class MVVMRazorViewEngine : RazorViewEngine
{
@toddpi314
toddpi314 / Lightning_DependencyResolver.cs
Created July 30, 2012 00:02
Lightning_DependencyResolver
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;
using LightningMVC.Common.Container;
using LightningMVC.Services;
namespace LightningMVC.Code
@toddpi314
toddpi314 / Lightning_ViewModelLocator.cs
Created July 30, 2012 00:02
Lightning_ViewModelLocator
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LightningMVC.Common.Container;
using Views;
namespace LightningMVC.Views
{
public class ViewModelLocator
@toddpi314
toddpi314 / Lightning_BaseController.cs
Created July 30, 2012 00:01
Lightning_BaseController
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using LightningMVC.Views;
using Views;
namespace LightningMVC.Controllers
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using LightningMVC.Views;
namespace Views
{
public abstract class CoreViewModel