Skip to content

Instantly share code, notes, and snippets.

// Assume the files of specified locations aren't modified in any circumstances
git update-index --assume-unchanged "FILE LOCATIONS"
// Basically return keep tracking of any file that was assumed to be unchanged
git update-index --assume-changed "FILES"
1 - Connect the device via USB and make sure debugging is working;
2 - adb tcpip 5555. This makes the device to start listening for connections on port 5555;
3 - Look up the device IP address with adb shell netcfg or adb shell ifconfig with 6.0 and higher; If it doesn't work, go to your wi-fi router and find the ip of the device
4 - You can disconnect the USB now;
5 - adb connect <DEVICE_IP_ADDRESS>:5555. This connects to the server we set up on the device on step 2;
Now you have a device over the network with which you can debug as usual.
From php 7.2 and above it is necessary to reload the php after any changes:
sudo systemctl start php-fpm
sudo systemctl stop php-fpm
sudo systemctl reload php-fpm
sudo systemctl restart php-fpm
$ sudo service php-fpm start # <- start it
$ sudo service php-fpm stop # <- stop it
$ sudo service php-fpm restart # <- restart it
@FellipePeixoto
FellipePeixoto / sshd_config
Last active December 29, 2018 03:36
SSH authoring
#In /etc/ssh/sshd_config
#change the lines with PasswordAuthentication and ChallengeResponseAuthentication to yes
PasswordAuthentication yes
ChallengeResponseAuthentication yes