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
| define('WP_HOME','http://' . $_SERVER['SERVER_NAME']); | |
| define('WP_SITEURL','http://' . $_SERVER['SERVER_NAME']); |
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 | |
| git clone git://github.com/sstephenson/rbenv.git .rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
| exec $SHELL | |
| git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc | |
| exec $SHELL |
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
| // http://www.codesynthesis.co.uk/code-snippets/code-to-backup-a-wordpress-database | |
| <?php | |
| global $wpdb; | |
| // Get a list of the tables | |
| $tables = $wpdb->get_results('SHOW TABLES'); | |
| $upload_dir = wp_upload_dir(); |
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
| define('WP_HOME','http://' . $_SERVER['SERVER_NAME']); | |
| define('WP_SITEURL','http://' . $_SERVER['SERVER_NAME']); |
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
| <div class="arrow-down"> | |
| <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/pulse-arrow.png" /> | |
| </div> | |
| <style type="text/css"> | |
| .arrow-down { | |
| position: absolute; | |
| bottom: 50px; | |
| width: 30px; | |
| left: 50%; |
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
| wp search-replace http://yoursite.dev http://yoursite.com |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Neota Tech | Home</title> | |
| <link rel="icon" type="image/png" href="/assets/images/favicon.png"> | |
| <link rel="stylesheet" type="text/css" href="//cloud.typography.com/7834852/678784/css/fonts.css" /> | |
| <link rel="stylesheet" href="css/screen.css" media="screen"> | |
| </head> |
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 -> | |
| $('#login-button').on 'click', (e) => | |
| e.preventDefault() | |
| alert( 'hey' ) |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule (.*) $1.php [L] | |
| </IfModule> |