Skip to content

Instantly share code, notes, and snippets.

View david-poindexter's full-sized avatar
🎯
Focusing on cool stuff for the @DNNCommunity and @dnnsoftware

David Poindexter david-poindexter

🎯
Focusing on cool stuff for the @DNNCommunity and @dnnsoftware
View GitHub Profile
@david-poindexter
david-poindexter / README.md
Last active April 28, 2023 22:48 — forked from valadas/backup-databases.md
SQL Server Backup (all databases) using CLI or Windows Scheduler (with cleanup)

Line 1

This will connect to SQL Server and backup all databases with the Full option.

Line 2

This will delete any existing backup in the folder that is more than 5 days old (you can change the value 5 to whatever suites your needs).

@david-poindexter
david-poindexter / readme.md
Created March 27, 2023 21:40 — forked from valadas/readme.md
Force IIS redirection to https for all urls

Forces all urls to use HTTPS in IIS

web.config

<configuration>
  ...
  ...
  <system.webServer>
 ...
@david-poindexter
david-poindexter / README.md
Created February 24, 2023 03:45 — forked from valadas/README.md
DDR Menu to export pages

This is a DDR Menu template to export a text format of a DNN site pages to reuse in the "Create Multiple Pages" feature on another site.

@david-poindexter
david-poindexter / YouTubeTranscriptReplace.md
Last active February 12, 2023 19:39
RegEx Parsing for YouTube Transcript in VS Code

FIND:

(\d{0,2}:?\d{1,2}:\d\d)(\n)(.*)(\n)

REPLACE:

<strong>$1</strong>$3\n

@david-poindexter
david-poindexter / dotnet-ubuntu-runner.md
Created March 12, 2022 21:08 — forked from valadas/dotnet-ubuntu-runner.md
Setup Ubuntu github runner for .Net

Install Ubuntu

  • Install Ubuntu 18.04 server

Setup runner

  • Follow github instructions to add a runner by going to a repository settings and creating a new self-hosted runner

Make it run on the runner

  • Edit the yml file to start a first run on it (which will probably fail due to lacking build tools)

Install .Net

@david-poindexter
david-poindexter / _template.cshtml
Created October 30, 2021 23:09
2sxc: Pull data from another REST API
@inherits ToSic.Sxc.Dnn.RazorComponent
@using System.Net.Http;
@{
var client = new HttpClient();
HttpResponseMessage response = client.GetAsync("<API_URL>").Result;
response.EnsureSuccessStatusCode();
var result = response.Content.ReadAsStringAsync().Result;
var items = AsDynamic(result);
}