Skip to content

Instantly share code, notes, and snippets.

View bdollerup's full-sized avatar

Bjarne B. Dollerup bdollerup

View GitHub Profile
@bdollerup
bdollerup / settings.json
Last active November 27, 2022 12:11
Debian setup for Windows Terminal
{
"backgroundImage": "%USERPROFILE%\\OneDrive\\Teknik ting\\Windows Terminal\\debian-bg.jpg",
"backgroundImageOpacity": 0.2,
"backgroundImageStretchMode": "uniformToFill",
"closeOnExit": "graceful",
"colorScheme": "Ubuntu",
"font":
{
"face": "CaskaydiaCove Nerd Font"
},
@bdollerup
bdollerup / ohmyposh.sh
Created October 16, 2021 13:04
WSL - Installing oh-my-posh on Ubuntu
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh
mkdir ~/.poshthemes
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip
unzip ~/.poshthemes/themes.zip -d ~/.poshthemes
chmod u+rw ~/.poshthemes/*.json
rm ~/.poshthemes/themes.zip
@bdollerup
bdollerup / .bashrc
Created October 16, 2021 13:03
Adding ohmyposh theme to WSL Ubuntu bash shell
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/M365Princess.omp.json)"
@bdollerup
bdollerup / settings.json
Created October 15, 2021 13:47
Windows Terminal - RPI host
{
"backgroundImage": "%USERPROFILE%\\OneDrive\\Teknik ting\\Windows Terminal\\raspbian-bg.png",
"backgroundImageOpacity": 0.20000000000000001,
"backgroundImageStretchMode": "uniformToFill",
"colorScheme": "Raspberry",
"commandline": "wsl ssh pi@raspberrypi",
"guid": "{b7558d41-59b4-4bcb-ab22-7c2201cc4000}",
"hidden": false,
"icon": "%USERPROFILE%\\OneDrive\\Teknik ting\\Windows Terminal\\icons8-raspberry-pi-32.png",
"name": "Pi",
@bdollerup
bdollerup / settings.json
Last active November 10, 2021 06:31
Windows Terminal - PowerShell 7 (Store)
{
"name": "PowerShell Core",
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"font":
{
"face": "CaskaydiaCove Nerd Font"
},
"hidden": false,
"source": "Windows.Terminal.PowershellCore",
@bdollerup
bdollerup / settings.json
Created October 15, 2021 08:04
Windows Terminal - CMD
{
"acrylicOpacity": 0.80000000000000004,
"colorScheme": "VS Code",
"commandline": "cmd.exe",
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"hidden": false,
"name": "Command",
"useAcrylic": true,
"experimental.retroTerminalEffect": true
},
@bdollerup
bdollerup / docker.sh
Last active October 15, 2021 07:58
Docker PS Command
docker ps --format 'table {{.ID}}\\t{{.Image}}\\t{{.Status}}\\t{{.Names}}'
@bdollerup
bdollerup / Startup.cs
Created December 18, 2017 18:23 — forked from nzpcmad/Startup.cs
.NET Core MVC application to ADFS on Windows Server 2016
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseBrowserLink();
}