⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
/** | |
* Widgets Library | |
* @version 0.1 | |
* @author Alexey Karunos ([email protected]) | |
* @example | |
* var widgets = new Widgets('http://site.com/widgets/'); | |
* widgets.show('userinfo'); | |
*/ | |
; | |
function Widgets(urlPrefix, urlSuffix) { |
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
if ($cat == $cat1 || $parent == $cat1) $class = 'cat1'; | |
if ($cat == $cat2 || $parent == $cat2) $class = 'cat2'; | |
if ($cat == $cat3 || $parent == $cat3) $class = 'cat3'; | |
if ($cat == $cat4 || $parent == $cat4) $class = 'cat4'; | |
if ($cat == $cat5 || $parent == $cat5) $class = 'cat5'; | |
if ($cat == $cat6 || $parent == $cat6) $class = 'cat6'; | |
if ($cat == $cat7 || $parent == $cat7) $class = 'cat7'; |
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
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr | |
http://support.godaddy.com/help/article/3601/generating-a-certificate-signing-request-nginx | |
http://support.godaddy.com/help/article/4976/rekeying-an-ssl-certificate | |
# Be sure to remember to chain them! | |
cat gd_bundle-g2-g1.crt >> yourdomain.crt | |
# Move 'em | |
sudo mv yourdomain.crt /etc/ssl/certs/yourdomain.crt |