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
# Add execute permission to script | |
~/mipc> chmod +x script.sh | |
# Copy script in directory that your system. | |
# there are two directories to copy the executable script | |
# 1 - Only available for the user of the system - /usr/bin or /usr/local/bin | |
# 2 - For share in all users of the system - /usr/local/bin | |
#1 ~/mipc> sudo cp script.sh /usr/bin/script | |
#2 ~/mipc> sudo cp script.sh /usr/local/bin |
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
sudo apt-get install nautilus-image-converter | |
#After finish the installation restart nautilus | |
killall nautilus |
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
#Generating table backup: | |
mysqldump databaseName tableName > backup.sql -u user -p | |
#Restore table backup: | |
mysql -u root -p databaseName < backup.sql |
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
INSERT INTO table2 SELECT * FROM table_origin; | |
INSERT INTO table2 (field1, field2) SELECT table_origin.field1, table_origin.field2 FROM table_origin |
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
sudo apt-get update | |
sudo apt-get install phpmyadmin php-mbstring php-gettext |
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
#Change permissions recursively only to directories: | |
find . -type d -exec chmod -R 0755 {} \; | |
#Change permissions recursively only to files: | |
find . -type f -exec chmod -R 0644 {} \; | |
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
cd ~ | |
$ wget --quiet -O - http://ftp.drupal.org/files/projects/drush-7.x-5.9.tar.gz | |
$ tar -zxf drush-7.x-5.9.tar.gz | |
$ ln -s ~/drush/drush /usr/local/bin/drush | |
$ drush |
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
#jQuery | |
jQuery("thead tr th:not(:nth-child(3n+2))").css("display", "none"); | |
jQuery("tbody tr td:not(:nth-child(3n+2))").css("display", "none"); | |
#css | |
thead tr th:not(:nth-child(3n+2)), | |
tbody tr td:not(:nth-child(3n+2)) { | |
display: none; | |
} |
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
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe' | |
sudo apt-get update | |
sudo apt install mysql-server-5.6 * see note below if you get an error | |
sudo apt install mysql-client-5.6 | |
#### | |
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe' | |
sudo apt-get update | |
sudo apt-get install mysql-server-5.6 mysql-client-5.6 |
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
lspci -knn | grep Net -A2 | |
sudo apt-get install bcmwl-kernel-source | |
sudo apt-get install --reinstall bcmwl-kernel-source |