Skip to content

Instantly share code, notes, and snippets.

View KennethScott's full-sized avatar

Kenneth Scott KennethScott

View GitHub Profile
@KennethScott
KennethScott / ChannelHelper.js
Last active April 14, 2024 19:26
Channel Management Helper for ChannelsDVR (Bookmarklet version)
/*
This code is intended to be used as a bookmarklet for use with ChannelsDVR. It provides simple functionality to
sort, update, and filter channel lineups.
It is expected that you are on a Manage Lineup popup for a given Channel Source within the Settings page when you
click the bookmarklet.
You may use any bookmarklet maker site you wish that is capable of handling ES6 (or newer) javascript.
There are no external dependencies.
Recommended instructions for creating the bookmarklet using https://caiorss.github.io/bookmarklet-maker/
@Braytiner
Braytiner / Windows Defender Exclusions VS 2022.ps1
Last active November 1, 2024 12:53
Adds Windows Defender exclusions for Visual Studio 2022
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\Downloads\HeidiSQL_11.3_64_Portable') > $null
$pathExclusions.Add($userPath + '\.dotnet') > $null
@ZacharyPatten
ZacharyPatten / readme.md
Last active February 3, 2023 15:58
GitHub Repository Checklist (C#)

GitHub Repository Checklist (C#)

Have a repository on GitHub? Planning on making a repository on GitHub? This checklist is intended to introduce you to various features that may help you make the most of your GitHub repository with specific recommendations for C# repositories.

Checklist

These are only suggestions.
They may not be appropriate for all repositories.
They are in no particular order.
Click each item to expand for more information.

@FWest98
FWest98 / CustomHtmlGenerator.cs
Last active November 16, 2022 14:00
.NET Core 3 Custom Validation Classnames
using System.Collections.Generic;
using System.Text.Encodings.Web;
using Microsoft.AspNetCore.Antiforgery;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.Routing;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.Extensions.Options;
@jamesramsay
jamesramsay / README.md
Last active August 14, 2024 18:26
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted
@davidfowl
davidfowl / gist:3173128
Created July 24, 2012 22:36 — forked from jmangelo/gist:3173109
MethodInfo.Invoke is slow... open instance delegate to the rescue
using System;
using System.Linq;
using System.Diagnostics;
using System.Linq.Expressions;
using System.Reflection;
using System.Collections.Generic;
namespace ConsoleApplication3
{
class Program