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 | |
| #inside docker container | |
| HOST_IP=$(/sbin/ip route|awk '/default/ { print $3 }') | |
| CONTAINER_IP=$(curl "$HOST_IP:8000" 2>/dev/null) | |
| echo "container ip is $CONTAINER_IP" |
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
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = pavan.sss1991@gmail.com | |
| username = pksunkara | |
| [core] | |
| editor = vim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| excludesfile = ~/.gitignore | |
| [sendemail] | |
| smtpencryption = tls |
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
| function Prompt(){ | |
| $W = Split-Path -leaf -path (Get-Location) | |
| $prompt = Write-Prompt "$($env:UserName)@$($env:ComputerName):" -ForegroundColor Green | |
| $prompt += Write-Prompt $W -ForegroundColor DarkCyan | |
| $prompt += Write-Prompt '>' | |
| return ' ' | |
| } | |
| function Remove-StoppedContainers { | |
| docker container rm $(docker container ls -q) |
OlderNewer