Skip to content

Instantly share code, notes, and snippets.

@denzuko
Created July 6, 2020 01:34
Show Gist options
  • Select an option

  • Save denzuko/61505c38d96aee8ee6e793a6ae917996 to your computer and use it in GitHub Desktop.

Select an option

Save denzuko/61505c38d96aee8ee6e793a6ae917996 to your computer and use it in GitHub Desktop.
windows-fixed
function Invoke-Editor {
[cmdletbinding()]
[alias("edit")]
param(
[ValidateNotNullOrEmpty()]
[string] $Path = $(throw "-Path is required"),
[string] $Editor = "notepad"
)
Invoke-Expression "$($Editor) $($Path)"
}
function Edit-Profile {
Invoke-Editor -Path $PROFILE.CurrentUserAllHosts
}
function Get-Banner {
[cmdletbinding()]
[alias("greet")]
[outputtype([System.String])]
param(
[ValidateNotNullOrEmpty()]
[string] $text = $(throw "-text is required"),
[string] $font = "banner",
[string] $url = "https://artii.herokuapp.com/make",
[string] $FgColour = "White"
)
$Text = Invoke-RestMethod -uri "$($url)?text=$([uri]::EscapeDataString($text))&font=$($font)"
Write-Host "$($Text)" -ForegroundColor $FgColour
}
function Get-Banner-Fonts {
[cmdletbinding()]
[alias("greetfonts")]
[outputtype([System.String])]
param(
[ValidateNotNullOrEmpty()]
[string] $url = "http://artii.herokuapp.com/fonts_list"
)
Invoke-RestMethod -uri "$($url)"
}
function Prompt
{
$env:COMPUTERNAME + "\" + (Get-Location) + "> "
}
greet "greetings, 2600 Hacker Quarterly" "standard"
greet -Text "Shall we play a game?" -Font "computer" -FgColour "gray"
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{6ed94b56-232c-4f03-be6e-e94efbb2930d}",
"copyOnSelect": true,
"copyFormatting": false,
"useAcrylic": true,
"profiles": {
"defaults": {},
"list": [
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"colorScheme": "C64",
"fontFace": "PxPlus VGA SquarePX",
"fontSize": 18,
"name": "Windows PowerShell",
"commandline": "powershell.exe -nologo",
"hidden": false
},
{
"guid": "{f057b651-45b9-48a6-a4a4-d38f1577280b}",
"name": "Windows PowerShell (admin)",
"commandline": "sudo powershell.exe -nologo",
"hidden": false
},
{
"colorScheme": "MonaLisa",
"fontFace": "PxPlus VGA SquarePX",
"fontSize": 18,
"name": "Git Bash",
"guid": "{6ed94b56-232c-4f03-be6e-e94efbb2930d}",
"startingDirectory": "%USERPROFILE%",
"commandline": "C:\\Program Files\\Git\\bin\\bash.exe --login",
"hidden": false
},
{
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "Command Prompt",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell",
"source": "Windows.Terminal.PowershellCore"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
},
{
"guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
"hidden": false,
"name": "Ubuntu-20.04",
"source": "Windows.Terminal.Wsl"
},
{
"colorScheme": "MonaLisa",
"fontFace": "PxPlus VGA SquarePX",
"fontSize": 18,
"guid": "{871fac2f-9120-4f81-9d9b-ea72d5b10852}",
"hidden": false,
"name": "XM Core",
"commandline": "telnet bbs.dapla.net"
},
{
"colorScheme": "C64",
"fontFace": "PxPlus VGA SquarePX",
"fontSize": 18,
"guid": "{d4c01f92-ce13-4435-a940-702aad58c174}",
"hidden": false,
"name": "python notebook",
"commandline": "C:\\Python38\\Scripts\\ipython.exe"
},
{
"guid": "{f91afd45-0a2c-400d-ae90-bedd94b2ea01}",
"hidden": false,
"name": "Dallas Makerspace",
"commandline": "C:\\Program Files\\Git\\usr\\bin\\ssh dms"
},
{
"guid": "{75f59899-bd0b-4629-b0b0-9580f2e95fe5}",
"hidden": false,
"name": "DOS Box",
"commandline": "C:\\Program Files (x86)\\DOSBox-0.74-3\\DOSBox.exe -userconf"
},
{
"guid": "{75f59899-bd0b-4629-b0b0-9580f2e95fe5}",
"hidden": false,
"name": "ansible-shell",
"startingDirectory": "%USERPROFILE%",
"commandline": "docker run -ti -P ansible/centos7-ansible:stable"
}
]
},
"schemes": [
{
"name": "MonaLisa",
"black": "#351b0e",
"red": "#9b291c",
"green": "#636232",
"yellow": "#c36e28",
"blue": "#515c5d",
"purple": "#9b1d29",
"cyan": "#588056",
"white": "#f7d75c",
"brightBlack": "#874228",
"brightRed": "#ff4331",
"brightGreen": "#b4b264",
"brightYellow": "#ff9566",
"brightBlue": "#9eb2b4",
"brightPurple": "#ff5b6a",
"brightCyan": "#8acd8f",
"brightWhite": "#ffe598",
"background": "#120b0d",
"foreground": "#f7d66a"
},
{
"name": "Borland",
"black": "#4f4f4f",
"red": "#ff6c60",
"green": "#a8ff60",
"yellow": "#ffffb6",
"blue": "#96cbfe",
"purple": "#ff73fd",
"cyan": "#c6c5fe",
"white": "#eeeeee",
"brightBlack": "#7c7c7c",
"brightRed": "#ffb6b0",
"brightGreen": "#ceffac",
"brightYellow": "#ffffcc",
"brightBlue": "#b5dcff",
"brightPurple": "#ff9cfe",
"brightCyan": "#dfdffe",
"brightWhite": "#ffffff",
"background": "#0000a4",
"foreground": "#ffff4e"
},
{
"name": "C64",
"black": "#090300",
"red": "#883932",
"green": "#55a049",
"yellow": "#bfce72",
"blue": "#40318d",
"purple": "#8b3f96",
"cyan": "#67b6bd",
"white": "#ffffff",
"brightBlack": "#000000",
"brightRed": "#883932",
"brightGreen": "#55a049",
"brightYellow": "#bfce72",
"brightBlue": "#40318d",
"brightPurple": "#8b3f96",
"brightCyan": "#67b6bd",
"brightWhite": "#f7f7f7",
"background": "#40318d",
"foreground": "#7869c4"
}
],
"keybindings": [
{
"command": {
"action": "copy",
"singleLine": false
},
"keys": "ctrl+c"
},
{
"command": "paste",
"keys": "ctrl+v"
},
{
"command": "find",
"keys": "ctrl+shift+f"
},
{
"command": {
"action": "splitPane",
"split": "auto",
"splitMode": "duplicate"
},
"keys": "alt+shift+d"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment