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
from sklearn.preprocessing import StandardScaler | |
def find_manually(data, mean, var): | |
""" | |
scale the data manually using mean(`mean`) and variance (`var`) | |
""" | |
return (data - mean) / var | |
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
# Use scp command to send from client to ssh server | |
# My os is windows and ssh server is linux | |
scp F:\myfile.txt root@[root ip]:/etc/myfolder/myfile.opt |
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
# you can run this commands for rooted devices | |
adb tcpip 5555 | |
adb connect 192.168.43.1 # mobile AP IP (Always it is this) | |
adb shell | |
cat /data/misc/dhcp/dnsmasq.leases # this command will show a list of connected devices with their ip and mac address |