Skip to content

Instantly share code, notes, and snippets.

View nathonius's full-sized avatar
🤖
beep boop

Nathan nathonius

🤖
beep boop
View GitHub Profile
@nathonius
nathonius / Startup.cs
Last active May 15, 2020 14:32
UseWebpackDevMiddleware
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
if (Dependencies.DevOptions.UseWebpackDevMiddleware) // comes from appsettings
{
#pragma warning disable CS0618 // Type or member is obsolete
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
{
@nathonius
nathonius / profiles.json
Last active February 27, 2020 14:58
Full windows terminal config
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"profiles": [
{
@nathonius
nathonius / AlloyWindowsTerminal.json
Created October 14, 2019 16:10
Alloy for Windows Terminal
{
"background": "#282828",
"black": "#333333",
"blue": "#919CC6",
"brightBlack": "#666666",
"brightBlue": "#B5C3FF",
"brightCyan": "#97E0EF",
"brightGreen": "#B5E25A",
"brightPurple": "#CEB5FF",
"brightRed": "#F95793",
@nathonius
nathonius / Aliases.cmd
Last active December 25, 2018 01:09
Cmder Aliases
e.=explorer .
gl=git log --oneline --all --graph --decorate $*
ls=ls --show-control-chars -F --color $*
pwd=cd
clear=cls
history=cat "%CMDER_ROOT%\config\.history"
unalias=alias /d $1
vi=vim $*
cmderr=cd /d "%CMDER_ROOT%"
cd=cd $*$Tautojump -i $Gnul
@nathonius
nathonius / user-ConEmu.xml
Created December 22, 2018 23:47
Alloy Cmder Theme
<key name="Palette1" modified="2018-09-24 12:56:30" build="180528">
<value name="Name" type="string" data="Alloy"/>
<value name="ExtendColors" type="hex" data="00"/>
<value name="ExtendColorIdx" type="hex" data="0e"/>
<value name="TextColorIdx" type="hex" data="10"/>
<value name="BackColorIdx" type="hex" data="10"/>
<value name="PopTextColorIdx" type="hex" data="10"/>
<value name="PopBackColorIdx" type="hex" data="10"/>
<value name="ColorTable00" type="dword" data="00333333"/>
<value name="ColorTable01" type="dword" data="00c69c91"/>
@nathonius
nathonius / thefuckcmder.bat
Last active August 29, 2024 11:13
thefuck for Cmder
@echo off
REM **************************
REM * RUN THIS FIRST *
REM * clink set history_io 1 *
REM **************************
set PYTHONIOENCODING=utf-8
set PYTHONLEGACYWINDOWSSTDIO=yes
tail -n 2 %CMDER_ROOT%\config\.history | head -n 1 > %CMDER_ROOT%\config\fucked_cmd.txt
set /p fucked_cmd=<%CMDER_ROOT%\config\fucked_cmd.txt
thefuck %fucked_cmd% > %CMDER_ROOT%\config\unfucked.cmd