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 | |
| /* | |
| * Creating a function to create our CPT | |
| */ | |
| function custom_post_type() { | |
| // Set UI labels for Custom Post Type | |
| $labels = array( | |
| 'name' => _x( 'Movies', 'Post Type General Name', 'twentythirteen' ), |
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
| # Unison preferences file | |
| # roots | |
| root=/Users/rnb/Sync/SITES | |
| root=/Volumes/SITES | |
| # for mirroring | |
| force=/Users/rnb/Sync/SITES | |
| # to sync fat32 |
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
| config.vm.synced_folder "./", "/vagrant", id: "vagrant-root", | |
| owner: "vagrant", | |
| group: "www-data", | |
| mount_options: ["dmode=775,fmode=664"] |
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
| #!/usr/bin/env bash | |
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| export LC_ALL=C | |
| #esenciales | |
| sudo apt-get install -y build-essential | |
| sudo apt-get -y install nano vim htop | |
| sudo locale-gen en_US.UTF-8 |
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 | |
| function favicons_site($folder='/img/icons'){ | |
| $location=get_template_directory_uri().$folder; | |
| $rend="<link rel=\"shortcut icon\" href=\"{$location}/favicon.ico\" type=\"image/x-icon\"/> | |
| <link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"{$location}/apple-touch-icon-57x57.png\"> | |
| <link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"{$location}/apple-touch-icon-60x60.png\"> | |
| <link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"{$location}/apple-touch-icon-72x72.png\"> | |
| <link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"{$location}/apple-touch-icon-76x76.png\"> |
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 | |
| $archivoLog = __DIR__ . "/php-error.log"; | |
| ini_set( "log_errors",1 ); | |
| ini_set( "error_log",$archivoLog ); | |
| error_reporting( - 1 ); |
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
| wget -q -O – https://example.com/wp-cron.php >/dev/null 2>&1 |
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
| s3cmd put * s3://rnb/SITIOS/ --recursive --acl-public |
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
| mysql-ctl install | |
| phpmyadmin-ctl install | |
| sudo add-apt-repository ppa:ondrej/php -y | |
| sudo apt-get update -y | |
| sudo apt-get install php7.0-curl php7.0-cli php7.0-dev php7.0-gd php7.0-intl php7.0-mcrypt php7.0-json php7.0-mysql php7.0-opcache php7.0-bcmath php7.0-mbstring php7.0-soap php7.0-xml php7.0-zip -y | |
| sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak | |
| sudo apt-get remove libapache2-mod-php5 -y |
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
| ORM::configure([ | |
| 'connection_string' => 'mysql:host=localhost;dbname=tester', | |
| 'username' => 'root', | |
| 'password' => '1234' | |
| ]); | |
| ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8')); |