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
| var alphabetCities = { | |
| init: function(regions, startLetter) { | |
| this.addLetters(regions); | |
| this.addLetterPicker(regions); | |
| this.selectLetter(startLetter, regions)(); | |
| }, | |
| letters: [ | |
| 'a', 'b', 'c', 'd', 'e', | |
| 'f', 'g', 'h', 'i', 'j', |
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
| #!/bin/bash | |
| # Run as root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" | |
| exit 1 | |
| fi | |
| apt-get update && \ | |
| apt-get install -y nano && \ |
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
| # Unknown collation: 'utf8mb4_unicode_520_ci' | |
| sed -i'.bak' "s/utf8mb4_unicode_520_ci/utf8mb4_unicode_ci/g;" file.sql | |
| # COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'utf8mb4' | |
| sed -i'.bak' "s/utf8_general_ci/utf8mb4_unicode_ci/g;" file.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
| grep processor /proc/cpuinfo |
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
| <?php | |
| add_action('registered_post_type', 'make_posts_hierarchical', 99, 2); | |
| /** | |
| * Ensure posts post type is hierarchal and allows page attributes | |
| * | |
| * Initial Setup - Runs after each post type is registered | |
| */ | |
| function make_posts_hierarchical($post_type, $pto) |
OlderNewer