This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www-data; | |
| worker_processes 1; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| # multi_accept on; | |
| } | |
| http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| postgres 17541 0.0 0.2 5552 1452 pts/0 S Aug11 0:00 su postgres | |
| postgres 17542 0.0 0.3 5568 1912 pts/0 S Aug11 0:00 bash | |
| postgres 17693 0.0 0.2 5208 1188 pts/0 R+ 00:20 0:00 ps aux | |
| postgres 17694 0.0 0.1 4392 824 pts/0 S+ 00:20 0:00 grep postgres |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { [Function: model] | |
| base: | |
| { connections: [ [Object] ], | |
| plugins: [], | |
| models: { Person: [Circular], Post: [Object] }, | |
| modelSchemas: { Person: [Object], Post: [Object] }, | |
| options: {} }, | |
| modelName: 'Person', | |
| model: [Function: model], | |
| db: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Article | |
| * | |
| * @module :: Model | |
| * @description :: A short summary of how this model works and what it represents. | |
| * | |
| */ | |
| module.exports = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ~/.osx — http://mths.be/osx | |
| # Ask for the administrator password upfront | |
| sudo -v | |
| # Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
| while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| debug: -------------------------------------------------------- | |
| debug: :: Tue Jul 23 2013 16:15:08 GMT+0530 (IST) | |
| debug: | |
| debug: Environment : development | |
| debug: Port : 1337 | |
| debug: -------------------------------------------------------- | |
| *************************************** you are in create action *********************************************************** | |
| # this is req.params | |
| [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { domain: null, | |
| _events: { data: [Function], end: [Function] }, | |
| _maxListeners: 10, | |
| socket: | |
| { domain: null, | |
| _events: | |
| { drain: [Function: ondrain], | |
| timeout: [Object], | |
| error: [Function], | |
| close: [Object] }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ck - Regular | |
| txtred='\e[0;31m' # Red | |
| txtgrn='\e[0;32m' # Green | |
| txtylw='\e[0;33m' # Yellow | |
| txtblu='\e[0;34m' # Blue | |
| txtpur='\e[0;35m' # Purple | |
| txtcyn='\e[0;36m' # Cyan | |
| txtwht='\e[0;37m' # White | |
| bldblk='\e[1;30m' # Black - Bold | |
| bldred='\e[1;31m' # Red |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| User: | |
| { [Function: ModelConstructor] | |
| validatesPresenceOf: [Function], | |
| validatesLengthOf: [Function], | |
| validatesNumericalityOf: [Function], | |
| validatesInclusionOf: [Function], | |
| validatesExclusionOf: [Function], | |
| validatesFormatOf: [Function], | |
| validate: [Function], | |
| validateAsync: [Function], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # These are my notes from the PragProg book on CoffeeScript of things that either | |
| # aren't in the main CS language reference or I didn't pick them up there. I wrote | |
| # them down before I forgot, and put it here for others but mainly as a reference for | |
| # myself. | |
| # assign arguments in constructor to properties of the same name: | |
| class Thingie | |
| constructor: (@name, @url) -> | |
| # is the same as: |