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
# You should enable xDebug remotely then create the Tunnel | |
ssh -R <remote xDebug port>:127.0.0.1:<local xDebug configured port> username@remote_host -N -v -v | |
# * sudo netstat -lptu|grep -i <local xDebug configured port> | |
# Example output: | |
tcp 0 0 *:9001 *:* LISTEN 11902/java |
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
# search recursively showing filename and line | |
grep -Hrn --exclude-dir=.git 'search term' path/to/files | |
# with support color | |
grep -Hrn search . | less -r |
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
# Use those commands to check for duplicate lines in <file> | |
# The more verbose --count flag with the GNU version: | |
sort <file> | uniq -c | |
# The more verbose --count flag with the GNU version: | |
sort <file> | uniq --count | |
# Show only print duplicate lines | |
sort <file> | uniq -d |
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
Verifying I am +ratebbenmoussa on my passcard. https://onename.com/ratebbenmoussa |
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
# Drop all tables from YOUR_DBSCHEMA_NAME | |
mysql --user=YOUR_USERNAME --password=YOUR_PASSWORD -BNe "show tables" YOUR_DBSCHEMA_NAME | tr '\n' ',' | sed -e 's/,$//' | awk '{print "SET FOREIGN_KEY_CHECKS = 0;DROP TABLE IF EXISTS " $1 ";SET FOREIGN_KEY_CHECKS = 1;"}' | mysql --user=YOUR_USERNAME --password=YOUR_PASSWORD YOUR_DBSCHEMA_NAME |
NewerOlder