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
| ##Ubuntu Reinstall progres | |
| 1. Install / and /home apart, so it's easier to make a reinstall | |
| 2. Backup all packages! | |
| 2.1. Create a REINSTALL directory in your Home. The type in Terminal in the directory: | |
| sudo apt-get update | |
| dpkg --get-selections > /REINSTALL/installed-programs.log | |
| 2.2. Save you GPG keys |
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
| UPDATE wp_options SET option_value = replace(option_value, 'http://localhost:8888/wordpress', 'http://www.YOUR_SITE_URL.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET guid = REPLACE (guid, 'http://localhost:8888/wordpress', 'http://www.YOUR_SITE_URL.com'); | |
| UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://localhost:8888/wordpress', 'http://www.YOUR_SITE_URL.com'); | |
| UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://localhost:8888/wordpress','http://www.YOUR_SITE_URL.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
| From: http://webdesign.tutsplus.com/tutorials/visuals/quick-tip-using-images-as-fullscreen-faux-gradient-backgrounds/ | |
| 1. Use a 300x300 img | |
| 2. Apply a gaussian blur with a radious of 40 or more | |
| 3. Apply the CSS | |
| body{ | |
| margin: 0; | |
| background: url('img/bg.jpg'); | |
| background-size: 100% 100%; | |
| background-attachment: fixed; |
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
| /* show the taxonomies per post */ | |
| <?php echo get_the_term_list($post->ID, 'people', 'People: ', ', ', ''); ?> |
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
| /* IE8+ */ | |
| .flag{ | |
| display:table; | |
| width:100%; | |
| } | |
| .flag__image, | |
| .flag__body{ | |
| display:table-cell; |
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
| // Based on https://github.com/james2doyle/saltjs | |
| window.$ = function(s) { | |
| return document[{ | |
| '#': 'getElementById', | |
| '.': 'getElementsByClassName', | |
| '@': 'getElementsByName', | |
| '=': 'getElementsByTagName'}[s[0]] | |
| || 'querySelectorAll'](s.slice(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
| Main – site.com/feed | |
| Main comments – site.com/comments/feed | |
| Post comments – site.com/post-name/feed | |
| Categories & tags – site.com/category/categoryname/feed or site.com/tag/tagname/feed | |
| You can also include / exclude categories like this – site.com/?cat=42,25,17&feed=rss2 or this site.com/?cat=-123&feed=rss2 | |
| Author – site.com/author/authorname/feed/ |
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
| function featured_image_in_feed( $content ) { | |
| global $post; | |
| if( is_feed() ) { | |
| if ( has_post_thumbnail( $post->ID ) ){ | |
| $output = get_the_post_thumbnail( $post->ID, 'medium', array( 'style' => 'float:right; margin:0 0 10px 10px;' ) ); |
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
| #Gzip | |
| <ifmodule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript | |
| </ifmodule> | |
| #End Gzip |
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
| Paramos el servidor MySQL: | |
| sudo /etc/init.d/mysql stop | |
| Arrancamos la configuración de mysqld: | |
| sudo mysqld --skip-grant-tables & | |
| Login en MySQL como root: | |
| mysql -u root mysql | |
| Cambiamos la contraseña por nuestra NuevaContraseña: |