drush @none dl utf8mb4_convert-7.x
drush cache-clear drush
drush vset maintenance_mode 1
drush utf8mb4-convert-databases
drush cc all
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
$databases['default']['default'] = array( | |
'driver' => 'mysql', | |
'database' => 'databasename', | |
'username' => 'username', | |
'password' => 'password', | |
'host' => 'localhost', | |
'charset' => 'utf8mb4', | |
'collation' => 'utf8mb4_general_ci', | |
); |
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
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
*or sudo n latest for latest version* |
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
echo '#!/bin/bash' > restore.sh | |
echo sudo apt-get install `grep Remove /var/log/apt/history.log | tail -1 | sed -e 's|Remove: ||g' -e 's|([^)]*)||g' -e 's|:[^ ]* ||g' -e 's|,||g'` >> restore | |
chmod +x restore | |
./restore.sh |
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
#!/bin/bash | |
# Delete all containers | |
docker container rm $(docker container ps -a -q) | |
# Delete all containers even running ones | |
docker container rm -f $(docker container ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
- Shows what port is exposed to the container
- Shows the IP address of the container which by default is different from the host IP
- Using Windows shell you need to replace the single quotes with double quotes
- i.e.
"{{.NetworkSettings.IPAddress}}"
- i.e.
docker container inspect --format "{{.NetworkSettings.IPAddress}}" container_name
- Publishing ports is always in HOST:CONTAINER format
$('.aClass').click( function(e) {
event.preventDefault();
});
- aClass is the class on the accordion anchor link
- Link resource: https://stackoverflow.com/questions/28977499/bootstrap-accordion-how-to-avoid-page-scroll-when-collapse-or-expand-elements
OlderNewer