This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------------------------------------------------------- | |
# Fzf | |
# ----------------------------------------------------------------------------- | |
function fzf-select-history() { | |
BUFFER=$(history -n -r 1 | fzf --no-sort --query="$LBUFFER") | |
CURSOR=$#BUFFER | |
zle reset-prompt | |
} | |
zle -N fzf-select-history | |
bindkey '^r' fzf-select-history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wezterm = require 'wezterm' | |
local act = wezterm.action | |
return { | |
-- default_program = { 'powershell.exe', '-NoLogo' }, | |
color_scheme = 'NightOwl (Gogh)', | |
window_background_opacity = 0.9, | |
keys = { | |
-- { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// | |
// Editor | |
// | |
"editor.fontFamily": "MesloLGS NF", | |
"editor.fontSize": 15, | |
"editor.smoothScrolling": true, | |
"editor.cursorSmoothCaretAnimation": "on", | |
"editor.minimap.enabled": false, | |
"editor.formatOnSave": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------------------------------------------------------- | |
# SSH | |
# ----------------------------------------------------------------------------- | |
if [ -f ~/.ssh-agent ]; then | |
. ~/.ssh-agent | |
fi | |
if [ -z "$SSH_AGENT_PID" ] || ! kill -0 $SSH_AGENT_PID; then | |
ssh-agent > ~/.ssh-agent | |
. ~/.ssh-agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true" | |
keybinds { | |
normal { | |
// uncomment this and adjust key if using copy_on_select=false | |
// bind "Alt c" { Copy; } | |
} | |
locked { | |
bind "Ctrl g" { SwitchToMode "Normal"; } | |
} | |
resize { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
// SideBar | |
{ | |
"key": "shift+alt+b", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, | |
{ | |
"key": "ctrl+b", | |
"command": "-workbench.action.toggleSidebarVisibility" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
// Workbench | |
{ | |
"key": "ctrl+p", | |
"command": "workbench.action.quickOpen" | |
}, | |
// SideBar | |
{ | |
"key": "shift+alt+b", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/pwsh | |
param( | |
[parameter(mandatory = $true)][string]$Server, | |
[parameter(mandatory = $true)][string]$User, | |
[parameter(mandatory = $true)][string]$Password, | |
[parameter(mandatory = $true)][string]$Datacenter | |
) | |
function Connect-Vcenter() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/go | |
{ | |
"name": "Go", | |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | |
"image": "mcr.microsoft.com/devcontainers/go:1-1.21-bullseye", | |
// Features to add to the dev container. More info: https://containers.dev/features. | |
// "features": {}, | |
// Use 'forwardPorts' to make a list of ports inside the container available locally. | |
// "forwardPorts": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vm_spec = [ | |
{ | |
name: "rancher-step-01", | |
cpu: 4, | |
memory: 8192, | |
private_ip: "192.168.3.11", | |
storage: "100GB" | |
}, | |
{ | |
name: "rancher-server-01", |