Skip to content

Instantly share code, notes, and snippets.

@willerce
willerce / fontconfig.properties
Last active August 11, 2019 18:15
JAVA IDE 的字体配置
# %W% %E%
#
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
#
# Version
version=1
# Component Font Mappings
@rainly
rainly / gist:1991923
Created March 7, 2012 08:29
Install PostgreSQL from source
1、下载PostgreSQL源码包,放在任意目录
http://www.postgresql.org/ftp/source/v9.0.4/
2、解压文件
#tar zxvf postgresql-9.1.3.tar.gz
#cd postgresql-9.1.3
3.准备安装前需要确认的库(readline,zlib,openssl),如果没有安装,则运行下面命令进行安装:
#yum install readline-devel
#yum install zlib-devel
@didip
didip / tornado-nginx-example.conf
Created January 30, 2011 05:19
Nginx config example for Tornado
worker_processes 2;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
}
@carlosjac
carlosjac / InstallPostgresql9FromSourceOnUbuntu1004
Created September 27, 2010 16:50
InstallPostgresql9FromSourceOnUbuntu1004
#!/bin/bash
#
# Install Postgresql9 From Source On Ubuntu 10.04 (Slicehost)
# Execute as root
#
# Author : Carlos Jacobs
# Date : 27 Sep 2010
sudo aptitude install libreadline6 libreadline6-dev
sudo aptitude install zlib1g zlib1g-dev
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db