Skip to content

Instantly share code, notes, and snippets.

View charlesdevandiere's full-sized avatar
🐧

Charles de Vandière charlesdevandiere

🐧
View GitHub Profile
@charlesdevandiere
charlesdevandiere / 401.html
Created April 24, 2025 13:26
nginx error page
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css"
rel="stylesheet"
# status bar
set -g status-position top
set -g status-style 'bg=blue'
set -g status-right '%Y-%m-%d %H:%M '
set -g window-status-current-style 'bg=orange fg=black'
set -g window-status-current-format ' #I #W '
set -g window-status-last-style 'italics'
set -g window-status-style 'bg=lightblue fg=black'
set -g window-status-format ' #I #W '
@charlesdevandiere
charlesdevandiere / .git-prompt.sh
Last active March 31, 2025 12:33
Prompt Show Git Branch In Prompt
#!/bin/bash
# Prompt Show Git Branch In Prompt
# source: https://www.warp.dev/terminus/show-git-branch-prompt
GREEN='\033[32m'
RED='\033[31m'
MAGENTA='\033[35m'
YELLOW='\033[33m'
BLANK='\033[0m'
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "lightGreen",
"style": "plain",
"template": "{{ .UserName }}@{{ .HostName }}",
@charlesdevandiere
charlesdevandiere / RequiredArgument.cs
Last active April 28, 2022 11:31
RequiredArgument
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
internal static class RequiredArgument
{
/// <summary>Verifies argument is not null.</summary>
/// <param name="param">The parameter.</param>
/// <param name="paramName">The parameter name.</param>