Find where container's logs are:
docker inspect --format='{{.LogPath}}' <container_name>
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $1 |
route -n get default | grep interface | awk '{ print $2 }' | xargs ipconfig getifaddr |
git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' |
@echo off | |
for /f "delims=" %%a in ('git describe --tags --abbrev^=0') do @set latesttag=%%a | |
git log %latesttag%..HEAD --graph --oneline |
{ | |
"window.zoomLevel": 0, | |
"editor.tabSize": 2, | |
"editor.detectIndentation": false, | |
"editor.insertSpaces": true, | |
"editor.renderWhitespace": "boundary", | |
"workbench.panel.defaultLocation": "bottom", | |
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
// "editor.formatOnSave": true, |
function dotenv() { | |
file=${1-".env"} | |
set -a; source $file; set +a | |
} |
Find where container's logs are:
docker inspect --format='{{.LogPath}}' <container_name>
REM usage: killport.bat <port> | |
@echo off | |
setlocal | |
echo Killing port %1 | |
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":%1"') do taskkill /f /pid %%a |