Skip to content

Instantly share code, notes, and snippets.

@grasp
grasp / gist:5d459d37e8262d02e701996e8ac67dbb
Created November 20, 2017 00:14 — forked from jessedearing/gist:2351836
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
@grasp
grasp / SEO优化
Created May 9, 2012 08:50
seo research
百度
google
@grasp
grasp / gist:2432504
Created April 20, 2012 23:01
sublime text2 使用笔记
@grasp
grasp / Rspec学习笔记.markdown
Created April 13, 2012 04:52
Rspec学习笔记.markdown
@grasp
grasp / gist:2348562
Created April 10, 2012 05:54
挂接所有的应用程序--mountable

##bson_ext 为何加入gem dependency,仍然没有安装上呢? 因为Gem名字和require的文件名不一致所致 require 'bson_ext/cbson' require "redis/objects" require 'daemon_spawn'

##site_config.rb 利用了元编程技术,利用method_missing截获方法,自动生成cache

##/quiet_assets.rb作用

@grasp
grasp / git clone speed
Created May 5, 2011 13:11
git clone speed is very slow those day in china
There must have issue for git clone, those days, git clone get quite slow,1-5k bit/second download.
I am using china telecom, ADSL.