Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
# redis Startup script for Redis Server
#
# chkconfig: - 90 10
# description: Redis is an open source, advanced key-value store.
#
# processname: redis-server
# config: /etc/redis.conf
# pidfile: /var/run/redis.pid
// db.js (just the User model)
var UserSchema = new Schema({
// _id: String,
username: String,
name: String,
gravatar: String,
email: String,
provider: String,
services: String,
{
"slug": "dhl"
}
{
"meta": {
"code": 200
},
"data": {
"limit": 1,
"count": 10,
"page": 1,
"slug": "",
"tag": "",
{
"tracking": {
"slug": "dhl",
"tracking_number": "123456789",
"title": "Title Name",
"smses": [
"+18555072509",
"+18555072501"
],
"emails": [
{
"meta": {
"code": 201
},
"data": {
"tracking": {
"active": true,
"created_at": "2014-02-28T08:33:42+00:00",
"custom_fields": {
"product_price": "19.99",
{
"limit": 100,
"page": 1,
"slug": "",
"tag": "",
"created_at_min": "2013-03-15T16:41:56+08:00",
"created_at_max": "2013-04-15T16:41:56+08:00",
"trackings": [
{
"active": false,
{
"meta": {
"code": 200
},
"data": {
"tracking": {
"created_at": "2013-12-09T05:44:35+00:00",
"updated_at": "2014-03-05T07:14:29+00:00",
"tracking_number": "1ZA00Y516890756087",
"slug": "ups",
{
"meta": {
"code": 200
},
"data": {
"total": 127,
"couriers": [
{
"slug": "dhl",
"name": "DHL",
{
tos: ""
}