Skip to content

Instantly share code, notes, and snippets.

View skynet's full-sized avatar
🤖
I'm Skynet

Ionel Roiban skynet

🤖
I'm Skynet
View GitHub Profile
@skynet
skynet / Touch-carousel-with-hammer.js.markdown
Created January 17, 2015 15:43
Touch carousel with hammer.js
@skynet
skynet / TheaterJS.markdown
Created January 17, 2015 04:07
TheaterJS
@skynet
skynet / A-mobile-carousel-based-on-Hammer.js.markdown
Created January 13, 2015 13:35
A mobile carousel based on Hammer.js
@skynet
skynet / 1) Install
Last active August 29, 2015 14:12 — forked from nghuuphuoc/1) Install
// --- Compiling ---
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install
// --- or using yum ---
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
@skynet
skynet / config.yml
Last active August 29, 2015 14:12 — forked from pkuczynski/LICENSE
development:
adapter: mysql2
encoding: utf8
database: my_database
username: root
password:

NOTE: You can check, if your config here:
http://www.sslshopper.com/ssl-checker.html

Decrypt the private key using the password you entered when you created your key:
openssl rsa -in ssl.key -out /etc/nginx/conf/ssl.key

Protect your key from prying eyes:
chmod 600 /etc/nginx/conf/ssl.key

@skynet
skynet / gist:b7e580178c502e1445a6
Created December 11, 2014 01:29
StartSSL.com

A free Class 1 certificate from StartSSL can be obtained and used with pump.io. However, an extra step is needed to prevent issues behind the scenes. This step is similar to using a StartSSL cert with Nginx.

  • Obtain StartSSL cert at http://www.startssl.com/
  • Fetch the Class 1 intermediate Server CA certificate
    • wget http://www.startssl.com/certs/sub.class1.server.ca.pem
  • Concatenate your certificate with the Class 1 certificate into a "unified" certificate
    • cat pumpio.crt sub.class1.server.ca.pem > pumpio-unified.crt
  • Use the "unified" certificate in your pump.io config, pump.io.json
    • "cert": "/path/to/pumpio-unified.crt",
  • (Re)Start the pump
env GIT_SSL_NO_VERIFY=true git clone https://github...
.eot - application/vnd.ms-fontobject
.woff - application/font-woff
.ttf - application/x-font-truetype
.svg - image/svg+xml
.otf - application/x-font-opentype
IIS (Web.Config)
<remove fileExtension=".eot" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<remove fileExtension=".ttf" />