Last active
October 28, 2022 15:44
-
-
Save AVStarikovich/c3e06f6c53f71beb4006707aa4d9fdb4 to your computer and use it in GitHub Desktop.
Всякие полезности
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
Как узнать какие сейчас приложения какими портами пользуются? | |
netstat -anp | |
или | |
sudo lsof -i :10000 | |
и потом | |
kill -9 <pid> | |
Если ssh агент не хочет работать | |
eval `ssh-agent -s` | |
Сбросить dns кэш на маке | |
`sudo killall -HUP mDNSResponder` | |
Как распарсить логи setrace | |
``` | |
var log = JSON.parse($0.textContent); | |
var showView = log.Message.response.directives.find(({ name }) => name === 'show_view') | |
var body = JSON.parse(showView.payload.div2_card.string_body) | |
body | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment