Skip to content

Instantly share code, notes, and snippets.

View Likivik's full-sized avatar

Likivik

View GitHub Profile
@Likivik
Likivik / logcat_02-04-2021_11-03-35.txt
Created February 4, 2021 13:51
Logs of apps loosing network access
<<< log_count = 692 >>>
[02-04 11:02:53.531 24494:24494 I/DetoxDroid]
package=com.dp.logcatapp, class=com.dp.logcatapp.activities.MainActivity, event=32
[02-04 11:02:53.531 24494:24494 I/DetoxDroid]
skip...
[02-04 11:02:53.562 22988:29941 D/OpenGLRenderer]
endAllActiveAnimators on 0x7239d84f10 (MenuPopupWindow$MenuDropDownListView) with handle 0x7159bdb9a0
#!/bin/bash
# 0. Update the system
sudo apt update
sudo apt upgrade -y
# 1. Install ansible's python requirements
sudo apt-get install -y python-pip # to install ansible requirements
sudo -H pip install setuptools
###Prompt color and configuration
export PS1="\[$(tput bold)\]\[\033[38;5;35m\]▶ [\[\033[38;5;197m\]\W\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;35m\]]\[$(tput sgr0)\] "
export LS_OPTIONS='--color=auto'
eval $(dircolors -b $HOME/.dircolors)
##########################
# Aliases #
##########################
### Makes ls colorful=)
alias ls='ls $LS_OPTIONS'
sudo service mongod stop
sudo mongod
Use this code to kill current port process
sudo lsof -i :8080
sudo kill -9 PID
Or in my case:
killall -9 node