Skip to content

Instantly share code, notes, and snippets.

View jsheely's full-sized avatar

Jonathan Sheely jsheely

View GitHub Profile
@jsheely
jsheely / UnlockDNN.aspx
Created July 27, 2014 23:43
Unlock DNN through password resets or creation of super users.
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="Newtonsoft.Json" %>
<script runat="server">
public string ResultJson { get; set; }
public class Result
{
public string Status { get; set; }
var models = [{
name: 'Jonathan',
location: 'Earth'
}, {
name: 'Joe',
location: 'Mars'
}]
models.forEach(function(model) {
var people = [{
name: 'Jon',
location: 'New York, NY'
}, {
name: 'Joe',
location: null
}, {
name: 'Tom',
location: 'San Francisco, CA'
}];
@jsheely
jsheely / gist:3d49cb87dd57cfbf28d6
Created November 12, 2015 23:51 — forked from sl4m/gist:5091803
create self-signed certificate for localhost
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
var gulp = require('gulp');
var useref = require('gulp-useref');
var gulpif = require('gulp-if');
var less = require('gulp-less');
var clean = require('gulp-clean');
var watch = require('gulp-watch');
var plumber = require('gulp-plumber');
var seq = require('run-sequence');
/* Reto Egeter, fullparam.wordpress.com */
DECLARE @SearchStrTableName nvarchar(255), @SearchStrColumnName nvarchar(255), @SearchStrColumnValue nvarchar(255), @SearchStrInXML bit, @FullRowResult bit, @FullRowResultRows int
SET @SearchStrColumnValue = '%thirtytech%' /* use LIKE syntax */
SET @FullRowResult = 1
SET @FullRowResultRows = 3
SET @SearchStrTableName = NULL /* NULL for all tables, uses LIKE syntax */
SET @SearchStrColumnName = NULL /* NULL for all columns, uses LIKE syntax */
SET @SearchStrInXML = 0 /* Searching XML data may be slow */