Skip to content

Instantly share code, notes, and snippets.

View amnweb's full-sized avatar
🏠
Working from home

AmN amnweb

🏠
Working from home
View GitHub Profile
@Ian-FR
Ian-FR / Fix WSL DNS
Last active July 21, 2024 00:11
WSL as Web Server
# /etc/wsl.conf
[network]
generateResolvConf = false
# /etc/resolv.conf
nameserver 8.8.8.8
nameserver 1.1.1.1
@michaeltlombardi
michaeltlombardi / profile_helpers.ps1
Last active August 29, 2024 19:12
Cross Platform theming and prompt built on FiraCode, Monokai, and Starship
#region Custom Function Definitions
Function Test-Administrator {
$CurrentUser = [Security.Principal.WindowsIdentity]::GetCurrent()
$AdministratorRole = [Security.Principal.WindowsBuiltInRole] "Administrator"
([Security.Principal.WindowsPrincipal]$CurrentUser).IsInRole($AdministratorRole)
}
#endregion
#region Prompt Prep
# Set ENV for elevated status
@javifm86
javifm86 / vscode-default-color-theme.json
Last active July 22, 2024 08:05
Default colors used in VSCode, useful if you want to create your own theme using your color palette and want to provide similar colors to the defaults ones.
{
"name": "Default colors dark",
"type": "dark",
"colors": {
// Base colors
"focusBorder": "#007fd4",
"foreground": "#cccccc",
"widget.shadow": "#0000005c",
// "selection.background": // null