-
write config file make a config.admin.js, config couchAuth for couch login, and registryCouch to couchdb; update =npm= change the registry address;
-
start redis install redis, run:
redis-server dev/redis/redis.conf
-
start elasticsearch install elasticsearch, run:
This file contains 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
Show hidden characters
[ | |
{ "keys": ["alt+q"], "command": "wrap_lines" }, | |
{ "keys": ["ctrl+o"], "command": "sbp_open_line" }, | |
// Emacs style go to indentation, alt+e can be complicated on Macs | |
{ "keys": ["alt+a"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["alt+e"], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
{ "keys": ["alt+e"], "command": "move_to", "args": {"to": "eol", "extend": true}, "context": | |
[ | |
{ "key": "sbp_emacs_has_mark", "operator": "equal", "operand": true } |
This file contains 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 ruby | |
# A quick and dirty implementation of an HTTP proxy server in Ruby | |
# because I did not want to install anything. | |
# | |
# Copyright (C) 2009 Torsten Becker <torsten.becker@gmail.com> | |
require 'socket' | |
require 'uri' | |
This file contains 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
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 20, // Maximum errors before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. | |
"node" : false, |
This file contains 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
var pool = mysql.createPool({ | |
host: '127.0.0.1', | |
port: '3306', | |
user: 'root', | |
password: '123456', | |
database: 'test', | |
debug: process.env.NODE_ENV == 'debug' | |
}); | |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
compdef
complete
compctl
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
- proxy server
- agent configuration - install software on the web server
The following steps occur when a user tries to access a protected resource on a web server configured to use SiteMinder authentication:
This file contains 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
USERNAME [a-zA-Z0-9._-]+ | |
USER %{USERNAME} | |
INT (?:[+-]?(?:[0-9]+)) | |
BASE10NUM (?<![0-9.+-])(?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))) | |
NUMBER (?:%{BASE10NUM}) | |
BASE16NUM (?<![0-9A-Fa-f])(?:[+-]?(?:0x)?(?:[0-9A-Fa-f]+)) | |
BASE16FLOAT \b(?<![0-9A-Fa-f.])(?:[+-]?(?:0x)?(?:(?:[0-9A-Fa-f]+(?:\.[0-9A-Fa-f]*)?)|(?:\.[0-9A-Fa-f]+)))\b | |
POSINT \b(?:[1-9][0-9]*)\b | |
NONNEGINT \b(?:[0-9]+)\b |