Skip to content

Instantly share code, notes, and snippets.

View HYDPublic's full-sized avatar

HYD Public HYDPublic

View GitHub Profile
@HYDPublic
HYDPublic / FunctionalTests.cs
Created June 4, 2019 03:41 — forked from jongalloway/FunctionalTests.cs
ASP.NET Core 2.1 Functional Testing
using Microsoft.AspNetCore.Mvc.Testing;
using System;
using System.Threading.Tasks;
using Xunit;
namespace WebApp.Tests
{
public class BasicTests
: IClassFixture<WebApplicationFactory<Startup>>
{
@HYDPublic
HYDPublic / PcRepave.cmd
Created June 3, 2019 04:23 — forked from jongalloway/PcRepave.cmd
Chocolatey list generated using: choco list --localonly --idonly
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco feature enable -n allowGlobalConfirmation
choco install 7zip /y
choco install 7zip.install /y
choco install ARMClient /y
choco install audacity /y
choco install audacity-lame /y
choco install autohotkey /y
choco install autohotkey.install /y
@HYDPublic
HYDPublic / skullLampRGBLED
Created June 30, 2018 11:58 — forked from Quietfire/skullLampRGBLED
Skull Lamp RGB LED Controller
/*
This sketch is to control the functions of 2 RGB LEDs utilizing all of the PWM pins
on an Arduino
*/
// Pinouts for NANO
int lledRed = 11;
int lledBlue = 10;
int lledGreen = 9;
@HYDPublic
HYDPublic / skullLampRGBLED
Created June 30, 2018 11:58 — forked from Quietfire/skullLampRGBLED
Skull Lamp RGB LED Controller
/*
This sketch is to control the functions of 2 RGB LEDs utilizing all of the PWM pins
on an Arduino
*/
// Pinouts for NANO
int lledRed = 11;
int lledBlue = 10;
int lledGreen = 9;
@HYDPublic
HYDPublic / color-change.gcode
Created June 10, 2018 21:21 — forked from theturtle32/color-change.gcode
Color Change GCode Script
G1 Z70 F360 ; move up above object
G1 X150 Y200 F3600 ; move to center of build area
G1 E-40 F1800 ; eject filament from extruder
M84 ; disable motors
M0 Change Color...
M17 ; enable motors
G92 E0 ; reset extruder coordinates
G1 E50 F60 ; prime new filament
G92 E0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
using IdentityServer3.Core.Models;
using IdentityServer3.Core.Services;
@HYDPublic
HYDPublic / ngrok-installation.md
Created October 13, 2017 03:38 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

#Installing ngrok on OSX

  1. Download ngrok
  2. Unzip it to your Applications directory
  3. Create a symlink (instructions below)

Creating a symlink to ngrok

Run the following two commands in Terminal to create the symlink.

# cd into your local bin directory
@HYDPublic
HYDPublic / Channel9Downloader.ps1
Created September 28, 2017 20:36 — forked from jongalloway/Channel9Downloader.ps1
PowerShell Scripts for Downloading Channel 9 Videos
<#PSScriptInfo
.VERSION 1.2
.AUTHOR [email protected]
.GUID da220b4e-e889-42dc-85cd-91e0f91a965e
.PROJECTURI https://gist.github.com/jongalloway/935780
.RELEASENOTES 1.2 adds regular expression title match (thanks, @meavk)
#>
<#
.DESCRIPTION
@HYDPublic
HYDPublic / Page.xaml
Created August 11, 2017 23:03 — forked from darenm/Page.xaml
Create Arbitrary Reveal Borders in UWP Insider Builds
<Page
x:Class="TestingExtendedTemplate.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:TestingExtendedTemplate"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
RequestedTheme="Dark"
mc:Ignorable="d">
<Page.Resources>