Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Todd Morrison toddpi314

💭
I may be slow to respond.
Block or report user

Report or block toddpi314

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
@toddpi314
toddpi314 / wildcard-ssl-cert-for-testing-nginx-conf.md
Created Jan 31, 2019 — forked from sr75/wildcard-ssl-cert-for-testing-nginx-conf.md
create a self signed wildcard ssl cert for testing with nginx.conf example
View wildcard-ssl-cert-for-testing-nginx-conf.md

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 Oct 22, 2015 — forked from matijs/README.md
Instructions and example configuration to install BitTorrent Sync on a Raspberry Pi running Arch Linux.
View README.md

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 Nov 4, 2012
Backbone-Relational - AutoFetch support
View gist:4009725
/**
* 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) {
/**
View Lightning_LogOnView.html
@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 Jul 30, 2012
Lightning_AuthenticationController
View Lightning_AuthenticationController.cs
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 Jul 30, 2012
Lightning_CustomRazorViewEngine
View Lightning_CustomRazorViewEngine.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace LightningMVC.Code
{
public class MVVMRazorViewEngine : RazorViewEngine
{
View Lightning_DependencyResolver.cs
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
View Lightning_ViewModelLocator.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LightningMVC.Common.Container;
using Views;
namespace LightningMVC.Views
{
public class ViewModelLocator
View Lightning_BaseController.cs
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
View Lightning_CoreViewModel.cs
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
You can’t perform that action at this time.