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
<?php | |
if ( ! class_exists( 'GP_Locale' ) ) : | |
class GP_Locale { | |
public $english_name; | |
public $native_name; | |
public $text_direction = 'ltr'; | |
public $lang_code_iso_639_1 = null; | |
public $lang_code_iso_639_2 = null; | |
public $lang_code_iso_639_3 = null; |
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/env bash | |
# Constants. Update it as you need | |
GLOTPRESS_BASE_DIR=/Users/amieiro/code/wordpress/wp/wp-content/plugins/GlotPress-WP | |
WP_TEST_INSTALL_BASE_DIR=/Users/amieiro/code/wordpress/tests | |
DB_NAME=wp_test | |
DB_USER=wp_test | |
DB_PASSWORD=password | |
DB_HOST=localhost | |
WP_VERSION=latest |
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/env bash | |
# wp-create.sh | |
# This script creates: | |
# 1. A user in the system with his own directory | |
# 2. Create the database, the user and grant access to this user to this database | |
# 3. Download WordPress, create the config file and install WordPress | |
# This script doesn't configure the webserver neither the PHP-FPM |
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
INSERT INTO `mi_base_de_datos`.`provincias` (`id`, `nombre`, `created_at`, `updated_at`) VALUES (NULL, 'Araba/Álava', CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP()); | |
INSERT INTO `mi_base_de_datos`.`provincias` (`id`, `nombre`, `created_at`, `updated_at`) VALUES (NULL, 'Albacete', CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP()); | |
INSERT INTO `mi_base_de_datos`.`provincias` (`id`, `nombre`, `created_at`, `updated_at`) VALUES (NULL, 'Alicante/Alacant', CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP()); | |
INSERT INTO `mi_base_de_datos`.`provincias` (`id`, `nombre`, `created_at`, `updated_at`) VALUES (NULL, 'Almería', CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP()); | |
INSERT INTO `mi_base_de_datos`.`provincias` (`id`, `nombre`, `created_at`, `updated_at`) VALUES (NULL, 'Ávila', CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP()); | |
INSERT INTO `mi_base_de_datos`.`provincias` (`id`, `nombre`, `created_at`, `updated_at`) VALUES (NULL, 'Badajoz', CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP()); | |
INSERT INTO `mi_base_de_datos`.`provincias` (`id`, `nombre`, `created_ |
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
<?php | |
/* | |
(2014) Main source -> http://lancenewman.me/posting-a-photo-to-instagram-without-a-phone/ | |
I just managed to sniff Instagram traffic and fixed the code | |
-- Have fun - batuhan.org - Batuhan Katırcı | |
--- for your questions, comment @ http://batuhan.org/instagram-photo-upload-with-php/ | |