This file contains hidden or 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
| # Run below two commands first and add rest of file in your power shell profile $PROFILE | |
| # $CLAUDE_HOME = "$env:USERPROFILE\.claude" | |
| # New-Item -ItemType Directory -Force -Path $CLAUDE_HOME, "$CLAUDE_HOME\sessions" | Out-Null | |
| function claude { | |
| $CLAUDE_HOME = "$env:USERPROFILE\.claude" | |
| $timestamp = Get-Date -Format "yyyy-MM-dd_HH-mm-ss" | |
| $sessionDir = Join-Path $CLAUDE_HOME "sessions\$timestamp" | |
| New-Item -ItemType Directory -Force -Path $sessionDir | Out-Null |
This file contains hidden or 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
| <# | |
| .SYNOPSIS | |
| Push an SSH public key to a remote Linux host using PuTTY plink. | |
| .DESCRIPTION | |
| - Adds the given public key to ~/.ssh/authorized_keys | |
| - Avoids duplicates | |
| - Creates ~/.ssh if missing | |
| - Uses base64 encoding to safely transmit the key |
This file contains hidden or 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
| # Put below in $PROFILE file | |
| Set-PSReadLineKeyHandler -Key Ctrl+d -Function ViExit | |
| Set-PSReadLineKeyHandler -Key Tab -Function AcceptSuggestion | |
| Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward | |
| Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward | |
| '@ |
This file contains hidden or 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
| # ===================================================== | |
| # Basic Shell Safety | |
| # ===================================================== | |
| set -o noclobber # prevent accidental file overwrite with > | |
| set -o pipefail # pipeline fails if any command fails | |
| # ===================================================== | |
| # History Configuration (High ROI) | |
| # ===================================================== |
This file contains hidden or 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
| # ===================================================== | |
| # Basic Shell Safety | |
| # ===================================================== | |
| set -o noclobber # prevent accidental file overwrite with > | |
| set -o pipefail # pipeline fails if any command fails | |
| # ===================================================== | |
| # History Configuration (High ROI) | |
| # ===================================================== |
This file contains hidden or 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
| # GNU Screen - main configuration file | |
| # All other .screenrc files will source this file to inherit settings. | |
| # Author: Christian Wills - cwills.sys@gmail.com | |
| # Allow bold colors - necessary for some reason | |
| attrcolor b ".I" | |
| # Tell screen how to set colors. AB = background, AF=foreground | |
| termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
This file contains hidden or 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/env bash | |
| set -e | |
| # install yq if not installed | |
| if ! yq --version >/dev/null 2>&1; then | |
| echo "Installing yq..." | |
| sudo curl -fsSL https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 \ | |
| -o /usr/local/bin/yq | |
| sudo chmod +x /usr/local/bin/yq | |
| fi |
This file contains hidden or 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
| alias k='kubectl' | |
| alias kdn='k describe node' | |
| alias kdp='k describe pod' | |
| alias kgn='k get nodes -owide' | |
| alias kgp='k get pod -owide' | |
| alias kdelp='k delete pod' | |
| alias kn='kubectl -n oc-amd-network' | |
| alias kg='kubectl -n openshift-amd-gpu' | |
| alias kggp='kubectl -n openshift-amd-gpu get pod -owide' | |
| alias kgdp='kubectl -n openshift-amd-gpu describe pod' |
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: pytorch-gpu-deployment | |
| namespace: default | |
| labels: | |
| purpose: demo-pytorch-amdgpu | |
| spec: | |
| replicas: 1 | |
| selector: |
This file contains hidden or 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
| { | |
| "meta": { "theme": "stackoverflow" }, | |
| "basics": { | |
| "name": "Ankit Gaur", | |
| "label": "", | |
| "picture": "", | |
| "website": "https://www.linkedin.com/in/ankitgaur/", | |
| "summary": "SDET/QA engineer with over 12 years' experience in Networking, Web Security, Network Security and Media Streaming domain. B.E (Hons.) Electronics and Instrumentation, BITS Pilani, 2008. CCNA (2011) Certified. AWS Solution Architect Associate (2019) Certified", | |
| "location": { |
NewerOlder