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 / 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
@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 / 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 / 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 / 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 / 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 / main.js
Last active September 24, 2021 00:20
collapse plugin with tag support
/*
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
if you want to view the source visit the plugins github repository
*/
'use strict';
var obsidian = require('obsidian');
/*! *****************************************************************************
@nathonius
nathonius / strahd.css
Last active November 2, 2021 12:29
Curse of Strahd button CSS
/* Curse of Strahd Button */
.strahd .block-language-button .button-default {
/* This is a google font */
font-family: "Vollkorn SC", serif;
text-transform: uppercase;
letter-spacing: 1px;
color: #d2c8ae;
border-width: 44px 132px;
border-style: solid;
border-color: #000;
@nathonius
nathonius / Session Notes - DM.md
Last active November 24, 2021 23:47
TTRPG Templates
metatable title campaign session session_date tags
true
Untitled
CampaignName
1
<% tp.date.now("MM.DD.YYYY") %>
RPG/CampaignName, RPG/SessionNotes/DM

= this.title

@nathonius
nathonius / minimal.js
Last active July 13, 2023 17:51
QuickAdd + Minimal CSS Helpers
const iframeChoices = [
{ value: "iframe-100", label: "Iframes fill 100% of the pane width" },
{ value: "iframe-max", label: "Iframes fill the max line width" },
{ value: "iframe-wide", label: "Iframes fill the wide line width" },
];
const embedChoices = [
{
value: "embed-strict",
label: "Transclusions appear seamlessly in the flow of text",
},