Skip to content

Instantly share code, notes, and snippets.

View akost's full-sized avatar
🏠
Working from home

Andrei K akost

🏠
Working from home
View GitHub Profile
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
@akost
akost / gist:4501571
Created January 10, 2013 12:10 — forked from Dimox/gist:4501510
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';
@akost
akost / gist:3871322
Created October 11, 2012 09:49 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@akost
akost / widgets.js
Created February 7, 2012 09:55 — forked from alkaruno/widgets.js
Widgets Library
/**
* Widgets Library
* @version 0.1
* @author Alexey Karunos (alkaruno@gmail.com)
* @example
* var widgets = new Widgets('http://site.com/widgets/');
* widgets.show('userinfo');
*/
;
function Widgets(urlPrefix, urlSuffix) {