create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| server { | |
| # Redirect yoursite.com to www.yoursite.com | |
| server_name yoursite.com; | |
| rewrite ^(.*) http://www.yoursite.com$1 permanent; | |
| } | |
| server { | |
| # Tell nginx to handle requests for the www.yoursite.com domain | |
| server_name www.yoursite.com; |
| /* | |
| * This work is free. You can redistribute it and/or modify it under the | |
| * terms of the Do What The Fuck You Want To Public License, Version 2, | |
| * as published by Sam Hocevar. See the COPYING file for more details. | |
| */ | |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { |
| // Plain text URL to anchor tags Handlebars Helper | |
| (function(){ | |
| // defines markup enhancement regex | |
| var protocol = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim | |
| , scheme = /(^|[^\/])(www\.[\S]+(\b|$))/gim; | |
| /* | |
| * Registers a Helper method with handlebars which, given a string of | |
| * plain text or existing markup, provides enhancements of plain text |
| Create separate SSH key for your personal account and your company. Named them with different extensions in your .ssh folder. Upload them to your github account and finally create a config file for your SSH | |
| Create a config file in ~/.ssh/ | |
| vim config: | |
| # PERSONAL ACCOUNT Github | |
| Host github.com-COOL | |
| HostName github.com | |
| User git | |
| IdentityFile ~/.ssh/id_rsa_COOL |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| // Add to functions.php | |
| /*=================================================== | |
| Created by sk from Renegade Empire with help | |
| from these sources: | |
| http://docs.woothemes.com/document/editing-product-data-tabs/ | |
| http://www.sean-barton.co.uk/2013/03/remove-woocommerce-20-reviews-tab/#.UYnWe7XfB6N | |
| http://www.sean-barton.co.uk/2013/03/sb-add-woocommerce-tabs-wordpress-plugin/#.UYrYL7XfB6M |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
| <?php | |
| wp_nav_menu( array( | |
| 'menu' => 'Menu Name', | |
| 'sub_menu' => true, | |
| 'direct_parent' => true | |
| ) ); |