This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EndpointConfigurationBuilder | |
{ | |
private EndpointConfiguration _endpointConfiguration; | |
public EndpointConfigurationBuilder(string endpointName) | |
{ | |
_endpointConfiguration = new EndpointConfiguration(endpointName); | |
} | |
public EndpointConfigurationBuilder UseTransport<TTransport>( | |
TTransport transportDefinition, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://retropie.org.uk/forum/topic/29996/issue-connecting-bluetooth-8bitdo-sn30-pro-controller/5 | |
THE FIX: | |
You need to exit RetroPie settings (go back to the Emulation Station menu) and the exit Emulation Station by pressing F4. This will take you back to the console. | |
From there, run this command to edit a file: | |
sudo nano /lib/systemd/system/bluetooth.service | |
Replace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.RazorPages; | |
namespace RazorPagesDemo.Pages | |
{ | |
[IgnoreAntiforgeryToken] //this will allow post without Antiforgery tokens. Good for Ajax style requests | |
public class Clicked : PageModel | |
{ | |
public void OnGet() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dear BOSS, | |
Please accept this letter as formal notification that I am resigning from my position as JOB TITLE with COMPANY. My last day will be DATE OF LAST DAY. | |
Thank you so much for the opportunity to work in this position for the past DURATION. I’ve greatly enjoyed and appreciated the opportunities I’ve had to WTF DID YOU DO, and I’ve learned many things, all of which I will take with me throughout my career. | |
During my last two weeks, I’ll do everything possible to wrap up my duties and train other team members. Please let me know if there’s anything else I can do to aid during the transition. | |
I wish COMPANY continued success, and I hope to stay in touch in the future. | |
Sincerely, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Office.Interop.Word; | |
namespace Word2Pdf | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Application appWord = new Application(); | |
var wordDocument = appWord.Documents.Open(@"c:\users\awright2\desktop\imaword.docx",ReadOnly:true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module posh-git | |
Import-Module oh-my-posh | |
Import-Module MSTerminalSettings | |
Set-Theme Paradox | |
function Restore-CleanAndBuildSln | |
{ | |
gci *.sln | nuget.exe restore | |
gci *.sln | Invoke-MsBuild -MsBuildParameters "/target:EnsureNuGetPackageBuildImports;Clean;Build" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<location path="." inheritInChildApplications="false"> | |
<system.webServer> | |
<handlers> | |
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> | |
</handlers> | |
<aspNetCore processPath="dotnet" arguments=".\dn3.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" /> | |
</system.webServer> | |
</location> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function CleanLocalGitRepo | |
{ | |
git checkout master; git remote update origin --prune; git branch -vv | | |
Select-String -Pattern ": gone]" | | |
% { $_.toString().Trim().Split(" ")[0]} | | |
% {git branch -d $_ } | |
} | |
Set-Alias Get-GitClean CleanLocalGitRepo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Program | |
{ | |
public IConfiguration Configuration = | |
new ConfigurationBuilder() | |
.AddJsonFile("appSettings.json") | |
.AddEnvironmentVariables() | |
.AddUserSecrets<StartUp>(); | |
public static Task<int> Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AppSettings> | |
<Add Name="Foo" Value="Bar" /> | |
</AppSettings> |
NewerOlder